Struct viz::prelude::State [−][src]
pub struct State<T>(pub T);
Expand description
Application state.
Tuple Fields
0: T
Implementations
Deconstruct to an inner value,
Trait Implementations
Injects a state to Application.
Auto Trait Implementations
impl<T> RefUnwindSafe for State<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for State<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more