#[non_exhaustive]pub enum SocketEventKind {
Job(JobSocketEvent),
Task(TaskSocketEvent),
Other(String),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
Source§impl Clone for SocketEventKind
impl Clone for SocketEventKind
Source§fn clone(&self) -> SocketEventKind
fn clone(&self) -> SocketEventKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SocketEventKind
impl Debug for SocketEventKind
Source§impl PartialEq for SocketEventKind
impl PartialEq for SocketEventKind
Source§fn eq(&self, other: &SocketEventKind) -> bool
fn eq(&self, other: &SocketEventKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SocketEventKind
impl StructuralPartialEq for SocketEventKind
Auto Trait Implementations§
impl Freeze for SocketEventKind
impl RefUnwindSafe for SocketEventKind
impl Send for SocketEventKind
impl Sync for SocketEventKind
impl Unpin for SocketEventKind
impl UnsafeUnpin for SocketEventKind
impl UnwindSafe for SocketEventKind
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