pub struct RingReceiver<E> { /* private fields */ }Trait Implementations§
Source§impl<E: Send + 'static> BaseRx for RingReceiver<E>
impl<E: Send + 'static> BaseRx for RingReceiver<E>
Source§fn try_recv(&mut self) -> Result<E, TryRecvError>
fn try_recv(&mut self) -> Result<E, TryRecvError>
Non-blocking receive. Returns
Empty if no data, Disconnected if channel closed.Source§fn recv(
&mut self,
cancel: &CancelToken,
timeout: Option<Duration>,
) -> Result<E, RecvError>
fn recv( &mut self, cancel: &CancelToken, timeout: Option<Duration>, ) -> Result<E, RecvError>
Blocking/cooperative receive with optional timeout and cancellation.
impl<E: Send + 'static> RxMarker for RingReceiver<E>
Auto Trait Implementations§
impl<E> !Freeze for RingReceiver<E>
impl<E> !RefUnwindSafe for RingReceiver<E>
impl<E> Send for RingReceiver<E>where
E: Send,
impl<E> !Sync for RingReceiver<E>
impl<E> Unpin for RingReceiver<E>
impl<E> UnwindSafe for RingReceiver<E>where
E: 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