pub enum SocketProtocol {
Tcp,
Udp,
Other(i32),
}Expand description
An explicit IP transport protocol. Pass None to socket_open for the operating system default for the domain and type.
Variants§
Tcp
Transmission Control Protocol.
Udp
User Datagram Protocol.
Other(i32)
A platform-native protocol number, preserved by resolution and forwarded unchanged to socket creation.
Trait Implementations§
Source§impl Clone for SocketProtocol
impl Clone for SocketProtocol
impl Copy for SocketProtocol
Source§impl Debug for SocketProtocol
impl Debug for SocketProtocol
impl Eq for SocketProtocol
Source§impl PartialEq for SocketProtocol
impl PartialEq for SocketProtocol
impl StructuralPartialEq for SocketProtocol
Auto Trait Implementations§
impl Freeze for SocketProtocol
impl RefUnwindSafe for SocketProtocol
impl Send for SocketProtocol
impl Sync for SocketProtocol
impl Unpin for SocketProtocol
impl UnsafeUnpin for SocketProtocol
impl UnwindSafe for SocketProtocol
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