pub struct Layer<In, E, Out> {
pub build: Effect<In, E, Env>,
/* private fields */
}Expand description
Layer<In, E, Out> Builds an Env containing Out, starting from In.
In: The environment required to build the layer E: The error type Out: The environment provided by the layer
Fields§
§build: Effect<In, E, Env>Implementations§
Source§impl<In, E, Out> Layer<In, E, Out>
impl<In, E, Out> Layer<In, E, Out>
Trait Implementations§
Auto Trait Implementations§
impl<In, E, Out> Freeze for Layer<In, E, Out>
impl<In, E, Out> !RefUnwindSafe for Layer<In, E, Out>
impl<In, E, Out> Send for Layer<In, E, Out>where
Out: Send,
impl<In, E, Out> Sync for Layer<In, E, Out>where
Out: Sync,
impl<In, E, Out> Unpin for Layer<In, E, Out>where
Out: Unpin,
impl<In, E, Out> !UnwindSafe for Layer<In, E, Out>
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