Struct embassy_sync::channel::DynamicReceiver
source · pub struct DynamicReceiver<'ch, T> { /* private fields */ }
Expand description
Receive-only access to a Channel
without knowing channel size.
Implementations§
source§impl<'ch, T> DynamicReceiver<'ch, T>
impl<'ch, T> DynamicReceiver<'ch, T>
sourcepub fn receive(&self) -> DynamicReceiveFuture<'_, T> ⓘ
pub fn receive(&self) -> DynamicReceiveFuture<'_, T> ⓘ
Receive the next value.
See Channel::receive()
.
sourcepub fn try_receive(&self) -> Result<T, TryReceiveError>
pub fn try_receive(&self) -> Result<T, TryReceiveError>
Attempt to immediately receive the next value.
sourcepub fn poll_ready_to_receive(&self, cx: &mut Context<'_>) -> Poll<()>
pub fn poll_ready_to_receive(&self, cx: &mut Context<'_>) -> Poll<()>
Allows a poll_fn to poll until the channel is ready to receive
sourcepub fn poll_receive(&self, cx: &mut Context<'_>) -> Poll<T>
pub fn poll_receive(&self, cx: &mut Context<'_>) -> Poll<T>
Poll the channel for the next item
Trait Implementations§
source§impl<'ch, T> Clone for DynamicReceiver<'ch, T>
impl<'ch, T> Clone for DynamicReceiver<'ch, T>
source§impl<'ch, M, T, K, const N: usize> From<Receiver<'ch, M, T, K, N>> for DynamicReceiver<'ch, T>
impl<'ch, M, T, K, const N: usize> From<Receiver<'ch, M, T, K, N>> for DynamicReceiver<'ch, T>
source§impl<'ch, M, T, const N: usize> From<Receiver<'ch, M, T, N>> for DynamicReceiver<'ch, T>where
M: RawMutex,
impl<'ch, M, T, const N: usize> From<Receiver<'ch, M, T, N>> for DynamicReceiver<'ch, T>where
M: RawMutex,
impl<'ch, T> Copy for DynamicReceiver<'ch, T>
Auto Trait Implementations§
impl<'ch, T> Freeze for DynamicReceiver<'ch, T>
impl<'ch, T> !RefUnwindSafe for DynamicReceiver<'ch, T>
impl<'ch, T> !Send for DynamicReceiver<'ch, T>
impl<'ch, T> !Sync for DynamicReceiver<'ch, T>
impl<'ch, T> Unpin for DynamicReceiver<'ch, T>
impl<'ch, T> !UnwindSafe for DynamicReceiver<'ch, T>
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)