pub struct Egress {
pub connection_id: ConnectionId,
pub iface: String,
pub src: IpAddr,
pub gateway: Option<IpAddr>,
pub family_used: Family,
pub family_unreachable: Vec<Family>,
pub uid_scoped: bool,
}Expand description
Which connection carries traffic to the target, as reported by
ip route get.
Fields§
§connection_id: ConnectionIdThe connection that owns the egress interface.
iface: StringKernel interface name (e.g. "eth0").
src: IpAddrPreferred source address selected by the kernel.
gateway: Option<IpAddr>Next-hop gateway, when the destination is not directly connected.
family_used: FamilyAddress family used for the route lookup.
family_unreachable: Vec<Family>Families for which the kernel said “Network is unreachable” — e.g. V6 on an IPv4-only upstream.
uid_scoped: boolTrue when ip rule matched on uid; egress may differ for other users
(split-tunnel VPNs commonly do this).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Egress
impl<'de> Deserialize<'de> for Egress
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Egress
impl StructuralPartialEq for Egress
Auto Trait Implementations§
impl Freeze for Egress
impl RefUnwindSafe for Egress
impl Send for Egress
impl Sync for Egress
impl Unpin for Egress
impl UnsafeUnpin for Egress
impl UnwindSafe for Egress
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