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 Hydroflow<'_>) -> RecvPort<TeeingHandoff<T>>
pub fn tee(&self, hf: &mut Hydroflow<'_>) -> RecvPort<TeeingHandoff<T>>
Tees this TeeingHandoff
, given the Hydroflow
instance it belongs to.
sourcepub fn drop(self, hf: &mut Hydroflow<'_>)
pub fn drop(self, hf: &mut Hydroflow<'_>)
Marks this output of a TeeingHandoff
as dropped so that no more data will be sent to
it, given the Hydroflow
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