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
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 build( self, ) -> Result<(Stack, Option<Runner>, Option<UdpSocket>, Option<TcpListener>)>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StackBuilder
impl !RefUnwindSafe for StackBuilder
impl Send for StackBuilder
impl Sync for StackBuilder
impl Unpin for StackBuilder
impl !UnwindSafe 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