pub struct Guard<T: Clone + Copy> {
condition: Condition,
value: T,
}
Expand description
A container with a condition.
Fields§
§condition: Condition
§value: T
Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for Guard<T>where
T: RefUnwindSafe,
impl<T> Send for Guard<T>where
T: Send,
impl<T> Sync for Guard<T>where
T: Sync,
impl<T> Unpin for Guard<T>where
T: Unpin,
impl<T> UnwindSafe for Guard<T>where
T: UnwindSafe,
Blanket Implementations§
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> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
source§fn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert