Enum ipc_channel::ipc::IpcSelectionResult
source · pub enum IpcSelectionResult {
MessageReceived(u64, IpcMessage),
ChannelClosed(u64),
}
Expand description
Result for readable events returned from IpcReceiverSet::select.
Variants§
MessageReceived(u64, IpcMessage)
A message received from the IpcReceiver
in the IpcMessage
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, IpcMessage)
pub fn unwrap(self) -> (u64, IpcMessage)
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