pub enum ReadStatus {
Disconnected,
WaitNextEvent,
}
Expand description
Returned as a result of Remote::receive()
Variants§
Disconnected
This status must be returned if the resource has been disconnected or there was an error.
The resource will be removed after this call and
no more Remote::receive()
calls will be produced by this resource.
WaitNextEvent
This status must be returned when a the resource (treated as a non-bloking) would wait for
process the next event.
Usually, this status is returned if the resource receives
a std::io::ErrorKind::WouldBlock
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReadStatus
impl RefUnwindSafe for ReadStatus
impl Send for ReadStatus
impl Sync for ReadStatus
impl Unpin for ReadStatus
impl UnwindSafe for ReadStatus
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