pub struct Port<S: Polarity, H>where
H: Handoff,{ /* private fields */ }Expand description
Implementations§
source§impl<T: Clone> Port<RECV, TeeingHandoff<T>>
impl<T: Clone> Port<RECV, TeeingHandoff<T>>
Methods for TeeingHandoff teeing and dropping.
sourcepub fn tee(&self, hf: &mut Dfir<'_>) -> RecvPort<TeeingHandoff<T>>
pub fn tee(&self, hf: &mut Dfir<'_>) -> RecvPort<TeeingHandoff<T>>
Tees this TeeingHandoff, given the Dfir instance it belongs to.
sourcepub fn drop(self, hf: &mut Dfir<'_>)
pub fn drop(self, hf: &mut Dfir<'_>)
Marks this output of a TeeingHandoff as dropped so that no more data will be sent to
it, given the Dfir instance it belongs to.
It is recommended to not not use this method and instead simply avoid teeing a
TeeingHandoff when it is not needed.
Auto Trait Implementations§
impl<S, H> Freeze for Port<S, H>
impl<S, H> RefUnwindSafe for Port<S, H>where
S: RefUnwindSafe,
impl<S, H> !Send for Port<S, H>
impl<S, H> !Sync for Port<S, H>
impl<S, H> Unpin for Port<S, H>
impl<S, H> UnwindSafe for Port<S, H>where
S: RefUnwindSafe,
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