Enum ipc_channel::ipc::IpcSelectionResult
source · [−]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
sourceimpl 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 RefUnwindSafe for IpcSelectionResult
impl Send for IpcSelectionResult
impl Sync for IpcSelectionResult
impl Unpin for IpcSelectionResult
impl UnwindSafe for IpcSelectionResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more