pub struct StackBuilder { /* private fields */ }Implementations§
Source§impl StackBuilder
impl StackBuilder
pub fn enable_udp(self, enable: bool) -> Self
pub fn enable_tcp(self, enable: bool) -> Self
pub fn enable_icmp(self, enable: bool) -> Self
pub fn stack_buffer_size(self, size: usize) -> Self
pub fn udp_buffer_size(self, size: usize) -> Self
pub fn tcp_buffer_size(self, size: usize) -> Self
Sourcepub fn tcp_recv_buffer_size(self, size: u32) -> Self
pub fn tcp_recv_buffer_size(self, size: u32) -> Self
Set the per-socket TCP receive window in bytes (the smoltcp rx
SocketBuffer capacity). Steady single-flow throughput is bounded by
window ÷ RTT, so raising this helps high-BDP (high bandwidth × RTT)
paths. Note this is distinct from Self::tcp_buffer_size, which sizes
the internal mpsc channel (item count), not the TCP window.
Sourcepub fn tcp_send_buffer_size(self, size: u32) -> Self
pub fn tcp_send_buffer_size(self, size: u32) -> Self
Set the per-socket TCP send window in bytes (the smoltcp tx
SocketBuffer capacity). See Self::tcp_recv_buffer_size.
pub fn set_ip_filters(self, filters: IpFilters<'static>) -> Self
pub fn add_ip_filter(self, filter: IpFilter<'static>) -> Self
pub fn add_ip_filter_fn<F>(self, filter: F) -> Self
pub fn mtu(self, mtu: usize) -> Self
pub fn build( self, ) -> Result<(Stack, Option<Runner>, Option<UdpSocket>, Option<TcpListener>)>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for StackBuilder
impl !UnwindSafe for StackBuilder
impl Freeze for StackBuilder
impl Send for StackBuilder
impl Sync for StackBuilder
impl Unpin for StackBuilder
impl UnsafeUnpin for StackBuilder
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