pub struct CachedTaskType {
pub fn_type: FunctionId,
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§
§fn_type: FunctionId
§this: Option<RawVc>
§arg: Box<dyn MagicAny>
Implementations§
Trait Implementations§
Source§impl Debug for CachedTaskType
impl Debug for CachedTaskType
Source§impl<'de> Deserialize<'de> for CachedTaskType
impl<'de> Deserialize<'de> for CachedTaskType
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CachedTaskType
impl Display for CachedTaskType
Source§impl Hash for CachedTaskType
impl Hash for CachedTaskType
Source§impl PartialEq for CachedTaskType
impl PartialEq for CachedTaskType
Source§impl Serialize for CachedTaskType
impl Serialize for CachedTaskType
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> Any for Twhere
T: Any,
impl<T> Any for Twhere
T: Any,
fn get_type_id(&self) -> TypeId
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
Source§impl<T> DynamicEqHash for T
impl<T> DynamicEqHash for T
§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