pub struct SocketConfiguration { /* private fields */ }This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
Implementationsยง
Sourceยงimpl SocketConfiguration
impl SocketConfiguration
Sourcepub fn recv_buffer_size(self, size: usize) -> Self
๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
pub fn recv_buffer_size(self, size: usize) -> Self
This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
Sets the receive buffer size for the socket (no effect on windows/ios).
Note: On Linux the kernel will double the value you specify.
For example, if you specify 16MB, the kernel will configure the
socket to use 32MB.
See: https://man7.org/linux/man-pages/man7/socket.7.html: SO_RCVBUF
Sourcepub fn send_buffer_size(self, size: usize) -> Self
๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
pub fn send_buffer_size(self, size: usize) -> Self
This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
Sets the send buffer size for the socket (no effect on windows/ios)
Note: On Linux the kernel will double the value you specify.
For example, if you specify 16MB, the kernel will configure the
socket to use 32MB.
See: https://man7.org/linux/man-pages/man7/socket.7.html: SO_SNDBUF
Sourcepub fn set_non_blocking(self, non_blocking: bool) -> Self
๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
pub fn set_non_blocking(self, non_blocking: bool) -> Self
This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
Configure the socket for non-blocking IO
Trait Implementationsยง
Sourceยงimpl Clone for SocketConfiguration
impl Clone for SocketConfiguration
Sourceยงfn clone(&self) -> SocketConfiguration
fn clone(&self) -> SocketConfiguration
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSourceยงimpl Debug for SocketConfiguration
impl Debug for SocketConfiguration
Sourceยงimpl Default for SocketConfiguration
impl Default for SocketConfiguration
Sourceยงfn default() -> SocketConfiguration
fn default() -> SocketConfiguration
Sourceยงimpl From<SocketConfig> for SocketConfiguration
impl From<SocketConfig> for SocketConfiguration
Sourceยงfn from(value: SocketConfig) -> Self
fn from(value: SocketConfig) -> Self
impl Copy for SocketConfiguration
Auto Trait Implementationsยง
impl Freeze for SocketConfiguration
impl RefUnwindSafe for SocketConfiguration
impl Send for SocketConfiguration
impl Sync for SocketConfiguration
impl Unpin for SocketConfiguration
impl UnsafeUnpin for SocketConfiguration
impl UnwindSafe for SocketConfiguration
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more