pub enum ProtocolType {
TCP,
UDP,
WEBSOCKET,
}Variants§
Trait Implementations§
Source§impl Clone for ProtocolType
impl Clone for ProtocolType
Source§fn clone(&self) -> ProtocolType
fn clone(&self) -> ProtocolType
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 moreimpl Copy for ProtocolType
Source§impl Debug for ProtocolType
impl Debug for ProtocolType
impl Eq for ProtocolType
Source§impl Ord for ProtocolType
impl Ord for ProtocolType
Source§fn cmp(&self, other: &ProtocolType) -> Ordering
fn cmp(&self, other: &ProtocolType) -> Ordering
1.21.0 (const: unstable) · 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 ProtocolType
impl PartialEq for ProtocolType
Source§fn eq(&self, other: &ProtocolType) -> bool
fn eq(&self, other: &ProtocolType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ProtocolType
impl PartialOrd for ProtocolType
impl StructuralPartialEq for ProtocolType
Auto Trait Implementations§
impl Freeze for ProtocolType
impl RefUnwindSafe for ProtocolType
impl Send for ProtocolType
impl Sync for ProtocolType
impl Unpin for ProtocolType
impl UnsafeUnpin for ProtocolType
impl UnwindSafe for ProtocolType
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