pub struct CachedTaskType {
pub native_fn: &'static NativeFunction,
pub this: Option<RawVc>,
pub arg: Box<dyn MagicAny>,
}Expand description
A normal task execution containing a native (rust) function. This type is passed into the backend either to execute a function or to look up a cached result.
Fields§
§native_fn: &'static NativeFunction§this: Option<RawVc>§arg: Box<dyn MagicAny>Implementations§
Trait Implementations§
Source§impl<'de, __Context> BorrowDecode<'de, __Context> for CachedTaskType
impl<'de, __Context> BorrowDecode<'de, __Context> for CachedTaskType
Source§fn borrow_decode<D: BorrowDecoder<'de, Context = __Context>>(
decoder: &mut D,
) -> Result<Self, DecodeError>
fn borrow_decode<D: BorrowDecoder<'de, Context = __Context>>( decoder: &mut D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Debug for CachedTaskType
impl Debug for CachedTaskType
Source§impl<Context> Decode<Context> for CachedTaskType
impl<Context> Decode<Context> for CachedTaskType
Source§impl Display for CachedTaskType
impl Display for CachedTaskType
Source§impl Encode for CachedTaskType
impl Encode for CachedTaskType
Source§impl Hash for CachedTaskType
impl Hash for CachedTaskType
Source§impl PartialEq for CachedTaskType
impl PartialEq for CachedTaskType
Source§impl<Context> TurboBincodeDecode<Context> for CachedTaskType
impl<Context> TurboBincodeDecode<Context> for CachedTaskType
fn decode(decoder: &mut TurboBincodeDecoder<'_>) -> Result<Self, DecodeError>
Source§impl TurboBincodeEncode for CachedTaskType
impl TurboBincodeEncode for CachedTaskType
fn encode( &self, encoder: &mut TurboBincodeEncoder<'_>, ) -> Result<(), EncodeError>
impl Eq for CachedTaskType
Auto Trait Implementations§
impl Freeze for CachedTaskType
impl !RefUnwindSafe for CachedTaskType
impl Send for CachedTaskType
impl Sync for CachedTaskType
impl Unpin for CachedTaskType
impl !UnwindSafe for CachedTaskType
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> DynPartialEq for T
impl<T> DynPartialEq for T
fn dyn_partial_eq(&self, other: &(dyn Any + 'static)) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.