pub struct SocketConfig { /* private fields */ }Please use the equivalent struct from solana-net-utils::sockets
Implementationsยง
Sourceยงimpl SocketConfig
impl SocketConfig
pub fn reuseport(self, reuseport: 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.
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
Trait Implementationsยง
Sourceยงimpl Clone for SocketConfig
impl Clone for SocketConfig
Sourceยงfn clone(&self) -> SocketConfig
fn clone(&self) -> SocketConfig
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSourceยงimpl Debug for SocketConfig
impl Debug for SocketConfig
Sourceยงimpl Default for SocketConfig
impl Default for SocketConfig
Sourceยงfn default() -> SocketConfig
fn default() -> SocketConfig
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 SocketConfig
Auto Trait Implementationsยง
impl Freeze for SocketConfig
impl RefUnwindSafe for SocketConfig
impl Send for SocketConfig
impl Sync for SocketConfig
impl Unpin for SocketConfig
impl UnsafeUnpin for SocketConfig
impl UnwindSafe for SocketConfig
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