pub struct TcpUlp<T>(/* private fields */);
Expand description
Set the Upper Layer Protocol (ULP) on the TCP socket.
For example, to enable the TLS ULP on a socket, the C function call would be:
setsockopt(sock, SOL_TCP, TCP_ULP, "tls", sizeof("tls"));
… and the nix
equivalent is:
ⓘ
setsockopt(sock, TcpUlp::default(), b"tls");
Note that the ULP name does not need a trailing NUL terminator (\0
).
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for TcpUlp<T>
impl<T> RefUnwindSafe for TcpUlp<T>where
T: RefUnwindSafe,
impl<T> Send for TcpUlp<T>where
T: Send,
impl<T> Sync for TcpUlp<T>where
T: Sync,
impl<T> Unpin for TcpUlp<T>where
T: Unpin,
impl<T> UnwindSafe for TcpUlp<T>where
T: UnwindSafe,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)