pub struct NativeChannelStatusChanges { /* private fields */ }Expand description
Receiver for native channel status changes.
Implementations§
Source§impl NativeChannelStatusChanges
impl NativeChannelStatusChanges
Sourcepub fn current(&self) -> ChannelStatus
pub fn current(&self) -> ChannelStatus
Returns the latest channel status without waiting.
Sourcepub async fn changed(&mut self) -> Result<ChannelStatus, NativeEventError>
pub async fn changed(&mut self) -> Result<ChannelStatus, NativeEventError>
Waits for and returns the next channel status.
Auto Trait Implementations§
impl Freeze for NativeChannelStatusChanges
impl RefUnwindSafe for NativeChannelStatusChanges
impl Send for NativeChannelStatusChanges
impl Sync for NativeChannelStatusChanges
impl Unpin for NativeChannelStatusChanges
impl UnsafeUnpin for NativeChannelStatusChanges
impl UnwindSafe for NativeChannelStatusChanges
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