#[repr(u16)]pub enum SourceMode {
Client = 0,
Peer = 1,
Ref = 2,
}Variants§
Trait Implementations§
Source§impl Clone for SourceMode
impl Clone for SourceMode
Source§fn clone(&self) -> SourceMode
fn clone(&self) -> SourceMode
Returns a duplicate of the value. Read more
1.0.0 · 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 SourceMode
impl Debug for SourceMode
Source§impl From<SourceMode> for u16
impl From<SourceMode> for u16
Source§fn from(enum_value: SourceMode) -> Self
fn from(enum_value: SourceMode) -> Self
Converts to this type from the input type.
Source§impl Hash for SourceMode
impl Hash for SourceMode
Source§impl Ord for SourceMode
impl Ord for SourceMode
Source§fn cmp(&self, other: &SourceMode) -> Ordering
fn cmp(&self, other: &SourceMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SourceMode
impl PartialEq for SourceMode
Source§impl PartialOrd for SourceMode
impl PartialOrd for SourceMode
Source§impl TryFrom<u16> for SourceMode
impl TryFrom<u16> for SourceMode
Source§type Error = TryFromPrimitiveError<SourceMode>
type Error = TryFromPrimitiveError<SourceMode>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for SourceMode
impl TryFromPrimitive for SourceMode
impl Copy for SourceMode
impl Eq for SourceMode
impl StructuralPartialEq for SourceMode
Auto Trait Implementations§
impl Freeze for SourceMode
impl RefUnwindSafe for SourceMode
impl Send for SourceMode
impl Sync for SourceMode
impl Unpin for SourceMode
impl UnwindSafe for SourceMode
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