pub struct RecieverStream { /* private fields */ }Implementations§
Source§impl RecieverStream
impl RecieverStream
pub fn new(inner: AsyncReceiver<Message>) -> Self
pub fn new_timed( inner: AsyncReceiver<Message>, timeout: Option<Duration>, ) -> Self
pub fn to_stream(&self) -> impl Stream<Item = CoreResult<Message>> + '_
pub fn to_stream_static( self: Arc<Self>, ) -> impl Stream<Item = CoreResult<Message>> + 'static
Auto Trait Implementations§
impl Freeze for RecieverStream
impl !RefUnwindSafe for RecieverStream
impl Send for RecieverStream
impl Sync for RecieverStream
impl Unpin for RecieverStream
impl UnsafeUnpin for RecieverStream
impl !UnwindSafe for RecieverStream
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