pub struct Diversion<T, S> {
pub target: T,
pub store: Option<S>,
}Expand description
Result that the inner future of a DiversionFuture should return.
- The
targetwill be further returned byDiversionFuture. - The
storewill be stored in theDiversionFuture.
Fields§
§target: TThe target will be further returned by DiversionFuture.
store: Option<S>The store will be stored in the DiversionFuture.
Trait Implementations§
Auto Trait Implementations§
impl<T, S> Freeze for Diversion<T, S>
impl<T, S> RefUnwindSafe for Diversion<T, S>where
T: RefUnwindSafe,
S: RefUnwindSafe,
impl<T, S> Send for Diversion<T, S>
impl<T, S> Sync for Diversion<T, S>
impl<T, S> Unpin for Diversion<T, S>
impl<T, S> UnwindSafe for Diversion<T, S>where
T: UnwindSafe,
S: 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