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,
§impl<T> ComponentProps for T
impl<T> ComponentProps for T
§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