pub struct Config {
pub bind: Option<SocketAddr>,
pub interface_index: Option<NonZeroU32>,
pub ttl: Option<u32>,
pub fib: Option<u32>,
/* private fields */
}
Fields§
§bind: Option<SocketAddr>
§interface_index: Option<NonZeroU32>
§ttl: Option<u32>
§fib: Option<u32>
Implementations§
Source§impl Config
impl Config
pub fn bind(self, bind: SocketAddr) -> Self
pub fn interface_index(self, interface_index: NonZeroU32) -> Self
pub fn ttl(self, ttl: u32) -> Self
pub fn fib(self, fib: u32) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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