pub struct StreamInput<T> { /* private fields */ }Implementations§
Source§impl<T> StreamInput<T>
impl<T> StreamInput<T>
pub fn into_receiver(self) -> Receiver<StreamItem<T>>
pub fn try_recv(&mut self) -> Result<StreamItem<T>, TryRecvError>
pub async fn recv(&mut self) -> Option<StreamItem<T>>
pub fn close(&mut self)
Trait Implementations§
Source§impl<T> EndpointSet for StreamInput<T>where
T: Send + 'static,
impl<T> EndpointSet for StreamInput<T>where
T: Send + 'static,
Source§impl<T> InputEndpoint for StreamInput<T>where
T: Send + 'static,
impl<T> InputEndpoint for StreamInput<T>where
T: Send + 'static,
Source§impl<T> WireEndpoints for StreamInput<T>
impl<T> WireEndpoints for StreamInput<T>
fn bind( limits: WireStreamLimits, ) -> Result<(StreamInput<T>, WireStreams), ServingError>
fn empty() -> Option<Self>
Auto Trait Implementations§
impl<T> Freeze for StreamInput<T>
impl<T> RefUnwindSafe for StreamInput<T>
impl<T> Send for StreamInput<T>
impl<T> Sync for StreamInput<T>
impl<T> Unpin for StreamInput<T>
impl<T> UnsafeUnpin for StreamInput<T>
impl<T> UnwindSafe for StreamInput<T>
Blanket Implementations§
impl<T> Allocation for T
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