pub struct SocketOpts {
pub nodelay: Option<bool>,
pub keepalive: Option<Keepalive>,
pub priority: Option<u8>,
}Fields§
§nodelay: Option<bool>§keepalive: Option<Keepalive>§priority: Option<u8>Implementations§
Source§impl SocketOpts
impl SocketOpts
Sourcepub fn for_control_channel() -> SocketOpts
pub fn for_control_channel() -> SocketOpts
Socket options for the control channel
pub fn for_data_channel() -> SocketOpts
Trait Implementations§
Source§impl Clone for SocketOpts
impl Clone for SocketOpts
Source§fn clone(&self) -> SocketOpts
fn clone(&self) -> SocketOpts
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SocketOpts
impl Debug for SocketOpts
impl Copy for SocketOpts
Auto Trait Implementations§
impl Freeze for SocketOpts
impl RefUnwindSafe for SocketOpts
impl Send for SocketOpts
impl Sync for SocketOpts
impl Unpin for SocketOpts
impl UnwindSafe for SocketOpts
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)