Struct dfir_rs::scheduled::handoff::TeeingHandoff
source · pub struct TeeingHandoff<T>where
T: 'static,{ /* private fields */ }
Expand description
A Handoff which is part of a “family” of handoffs. Writing to this handoff
will write to every reader. New readers can be created by calling tee
.
Trait Implementations§
source§impl<T> CanReceive<Vec<T>> for TeeingHandoff<T>where
T: Clone,
impl<T> CanReceive<Vec<T>> for TeeingHandoff<T>where
T: Clone,
source§impl<T> Clone for TeeingHandoff<T>where
T: 'static + Clone,
impl<T> Clone for TeeingHandoff<T>where
T: 'static + Clone,
source§fn clone(&self) -> TeeingHandoff<T>
fn clone(&self) -> TeeingHandoff<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T> Default for TeeingHandoff<T>
impl<T> Default for TeeingHandoff<T>
source§impl<T> Handoff for TeeingHandoff<T>
impl<T> Handoff for TeeingHandoff<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 TeeingHandoff<T>
impl<T> HandoffMeta for TeeingHandoff<T>
Auto Trait Implementations§
impl<T> Freeze for TeeingHandoff<T>
impl<T> !RefUnwindSafe for TeeingHandoff<T>
impl<T> !Send for TeeingHandoff<T>
impl<T> !Sync for TeeingHandoff<T>
impl<T> Unpin for TeeingHandoff<T>
impl<T> !UnwindSafe for TeeingHandoff<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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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