pub struct Mutation<Q: MutationCapability> { /* private fields */ }Implementationsยง
Sourceยงimpl<Q: MutationCapability> Mutation<Q>
impl<Q: MutationCapability> Mutation<Q>
pub fn new(mutation: Q) -> Self
Sourcepub fn clean_time(self, clean_time: Duration) -> Self
pub fn clean_time(self, clean_time: Duration) -> Self
For how long the data is kept cached after there are no more mutation subscribers.
Defaults to Duration::ZERO, meaning it clears automatically.
Trait Implementationsยง
Sourceยงimpl<Q: MutationCapability> Hash for Mutation<Q>
impl<Q: MutationCapability> Hash for Mutation<Q>
impl<Q: MutationCapability> Eq for Mutation<Q>
impl<Q: MutationCapability> StructuralPartialEq for Mutation<Q>
Auto Trait Implementationsยง
impl<Q> Freeze for Mutation<Q>where
Q: Freeze,
impl<Q> RefUnwindSafe for Mutation<Q>where
Q: RefUnwindSafe,
impl<Q> Send for Mutation<Q>where
Q: Send,
impl<Q> Sync for Mutation<Q>where
Q: Sync,
impl<Q> Unpin for Mutation<Q>where
Q: Unpin,
impl<Q> UnwindSafe for Mutation<Q>where
Q: UnwindSafe,
Blanket Implementationsยง
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<T> ComponentProps for T
impl<T> ComponentProps for T
fn changed(&self, other: &(dyn ComponentProps + 'static)) -> bool
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยง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