pub struct SendMultiStream<T> { /* private fields */ }
Implementations§
Source§impl<T: Owned> SendMultiStream<T>
impl<T: Owned> SendMultiStream<T>
pub fn stream_id(&self) -> MultiStreamId
pub fn try_send(&self, input: impl Encode + Compatible<T>) -> bool
pub async fn send(&self, input: impl Encode + Compatible<T>)
pub async fn end(self)
Source§impl<O: Owned, E: Owned> SendMultiStream<Result<O, E>>
impl<O: Owned, E: Owned> SendMultiStream<Result<O, E>>
pub async fn send_ok(&mut self, input: impl Encode + Compatible<O>)
pub async fn send_err(&mut self, input: impl Encode + Compatible<E>)
Auto Trait Implementations§
impl<T> !Freeze for SendMultiStream<T>
impl<T> !RefUnwindSafe for SendMultiStream<T>
impl<T> !Send for SendMultiStream<T>
impl<T> !Sync for SendMultiStream<T>
impl<T> Unpin for SendMultiStream<T>where
T: Unpin,
impl<T> !UnwindSafe for SendMultiStream<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