pub enum IpcSelectionResult {
MessageReceived(u64, OpaqueIpcMessage),
ChannelClosed(u64),
}
Expand description
Result for readable events returned from IpcReceiverSet::select.
Variants§
MessageReceived(u64, OpaqueIpcMessage)
A message received from the IpcReceiver in the opaque form,
identified by the u64
value.
ChannelClosed(u64)
The channel has been closed for the IpcReceiver identified by the u64
value.
IpcReceiver: struct.IpcReceiver.html
Implementations§
source§impl IpcSelectionResult
impl IpcSelectionResult
sourcepub fn unwrap(self) -> (u64, OpaqueIpcMessage)
pub fn unwrap(self) -> (u64, OpaqueIpcMessage)
Helper method to move the value out of the IpcSelectionResult if it is MessageReceived.
§Panics
If the result is ChannelClosed this call will panic.
Auto Trait Implementations§
impl Freeze for IpcSelectionResult
impl RefUnwindSafe for IpcSelectionResult
impl Send for IpcSelectionResult
impl Sync for IpcSelectionResult
impl Unpin for IpcSelectionResult
impl UnwindSafe for IpcSelectionResult
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