pub enum Source {
Ip(IpAddr),
Interface(u32),
InterfaceV6(u32, Ipv6Addr),
}
Expand description
Select how to set the source IP - using either interface id or the IP itself
Variants§
Ip(IpAddr)
Set source IP explicitly by IP
Interface(u32)
Set via interface index, ipv4 only
InterfaceV6(u32, Ipv6Addr)
Set v6 interface index and IP
Trait Implementations§
Source§impl Ord for Source
impl Ord for Source
Source§impl PartialOrd for Source
impl PartialOrd for Source
impl Copy for Source
impl Eq for Source
impl StructuralPartialEq for Source
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnwindSafe for Source
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