pub enum SocketType {
Invalid,
Stream,
Datagram,
Seqpacket,
// some variants omitted
}
Variants§
Trait Implementations§
Source§impl Clone for SocketType
impl Clone for SocketType
Source§fn clone(&self) -> SocketType
fn clone(&self) -> SocketType
Returns a copy 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 SocketType
impl Debug for SocketType
Source§impl Display for SocketType
impl Display for SocketType
Source§impl<'a> FromValue<'a> for SocketType
impl<'a> FromValue<'a> for SocketType
unsafe fn from_value(value: &Value) -> Self
Source§impl<'a> FromValueOptional<'a> for SocketType
impl<'a> FromValueOptional<'a> for SocketType
unsafe fn from_value_optional(value: &Value) -> Option<Self>
Source§impl Hash for SocketType
impl Hash for SocketType
Source§impl Ord for SocketType
impl Ord for SocketType
Source§fn cmp(&self, other: &SocketType) -> Ordering
fn cmp(&self, other: &SocketType) -> 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 SocketType
impl PartialEq for SocketType
Source§impl PartialOrd for SocketType
impl PartialOrd for SocketType
Source§impl StaticType for SocketType
impl StaticType for SocketType
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Copy for SocketType
impl Eq for SocketType
impl StructuralPartialEq for SocketType
Auto Trait Implementations§
impl Freeze for SocketType
impl RefUnwindSafe for SocketType
impl Send for SocketType
impl Sync for SocketType
impl Unpin for SocketType
impl UnwindSafe for SocketType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.