pub enum GenericSelectionResult<T> {
MessageReceived(u64, T),
ChannelClosed(u64),
AllChannelsClosed(u64),
Error(String),
}Expand description
Result for readable events returned from [GenericReceiverSet::select].
Variants§
MessageReceived(u64, T)
A message received from the GenericReceiver,
identified by the u64 value and Deserialized into a ‘T’.
ChannelClosed(u64)
The channel has been closed for the GenericReceiver identified by the u64 value.
AllChannelsClosed(u64)
The last active channel in the selection has been closed.
Error(String)
An error occurred decoding the message.
Trait Implementations§
Source§impl<T: Debug> Debug for GenericSelectionResult<T>
impl<T: Debug> Debug for GenericSelectionResult<T>
Source§impl<T: Serialize + for<'de> Deserialize<'de>> From<IpcSelectionResult> for GenericSelectionResult<T>
impl<T: Serialize + for<'de> Deserialize<'de>> From<IpcSelectionResult> for GenericSelectionResult<T>
Source§fn from(value: IpcSelectionResult) -> Self
fn from(value: IpcSelectionResult) -> Self
Converts to this type from the input type.
Source§impl<T: PartialEq> PartialEq for GenericSelectionResult<T>
impl<T: PartialEq> PartialEq for GenericSelectionResult<T>
impl<T: PartialEq> StructuralPartialEq for GenericSelectionResult<T>
Auto Trait Implementations§
impl<T> Freeze for GenericSelectionResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for GenericSelectionResult<T>where
T: RefUnwindSafe,
impl<T> Send for GenericSelectionResult<T>where
T: Send,
impl<T> Sync for GenericSelectionResult<T>where
T: Sync,
impl<T> Unpin for GenericSelectionResult<T>where
T: Unpin,
impl<T> UnsafeUnpin for GenericSelectionResult<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for GenericSelectionResult<T>where
T: UnwindSafe,
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert