#[repr(i32)]pub enum SocketType {
Stream = 1,
Datagram = 2,
Raw = 3,
SeqPacket = 5,
}Expand description
Type de socket (deuxième argument de socket(2)).
Le wrapper Air ajoute SOCK_CLOEXEC en interne. L’appelant ne doit
pas le spécifier manuellement.
Variants§
Stream = 1
Flux d’octets ordonné et fiable (TCP, Unix stream).
Datagram = 2
Datagrammes sans connexion (UDP, Unix datagram).
Raw = 3
Protocole brut (pas de couche transport kernel).
SeqPacket = 5
Flux de messages ordonnés et fiables (SCTP, Unix seqpacket).
Trait Implementations§
Source§impl Clone for SocketType
impl Clone for SocketType
Source§fn clone(&self) -> SocketType
fn clone(&self) -> SocketType
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 SocketType
Source§impl Debug for SocketType
impl Debug for SocketType
impl Eq for SocketType
Source§impl Hash for SocketType
impl Hash for SocketType
Source§impl PartialEq for SocketType
impl PartialEq 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 UnsafeUnpin 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