Struct dfir_rs::scheduled::handoff::VecHandoff
source · pub struct VecHandoff<T>where
T: 'static,{ /* private fields */ }
Expand description
A Vec-based FIFO handoff.
Trait Implementations§
source§impl<T, I> CanReceive<Iter<I>> for VecHandoff<T>where
I: Iterator<Item = T>,
impl<T, I> CanReceive<Iter<I>> for VecHandoff<T>where
I: Iterator<Item = T>,
source§impl<T> CanReceive<Option<T>> for VecHandoff<T>
impl<T> CanReceive<Option<T>> for VecHandoff<T>
source§impl<T> CanReceive<Vec<T>> for VecHandoff<T>
impl<T> CanReceive<Vec<T>> for VecHandoff<T>
source§impl<T> Default for VecHandoff<T>where
T: 'static,
impl<T> Default for VecHandoff<T>where
T: 'static,
source§impl<T> Handoff for VecHandoff<T>
impl<T> Handoff for VecHandoff<T>
source§fn take_inner(&self) -> Self::Inner
fn take_inner(&self) -> Self::Inner
Take the inner datastructure, similar to
std::mem::take
.source§fn borrow_mut_swap(&self) -> RefMut<'_, Self::Inner>
fn borrow_mut_swap(&self) -> RefMut<'_, Self::Inner>
Take the inner datastructure by swapping input and output buffers. Read more
source§fn give<T>(&self, item: T) -> Twhere
Self: CanReceive<T>,
fn give<T>(&self, item: T) -> Twhere
Self: CanReceive<T>,
See
CanReceive::give
.source§fn try_give<T>(&self, item: T) -> Result<T, T>where
Self: TryCanReceive<T>,
fn try_give<T>(&self, item: T) -> Result<T, T>where
Self: TryCanReceive<T>,
source§impl<T> HandoffMeta for VecHandoff<T>
impl<T> HandoffMeta for VecHandoff<T>
Auto Trait Implementations§
impl<T> Freeze for VecHandoff<T>
impl<T> !RefUnwindSafe for VecHandoff<T>
impl<T> !Send for VecHandoff<T>
impl<T> !Sync for VecHandoff<T>
impl<T> Unpin for VecHandoff<T>
impl<T> !UnwindSafe for VecHandoff<T>
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
§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