pub struct RouteFact {
pub if_index: u32,
pub prefix: String,
pub metric: u32,
pub if_type: u32,
pub hardware: Option<bool>,
pub is_virtual: Option<bool>,
pub media: String,
pub alias: String,
pub desc: String,
}Expand description
One route candidate toward the C2 endpoint with facts about its interface.
Fields§
§if_index: u32§prefix: StringDestination prefix of the route, e.g. 0.0.0.0/0, 0.0.0.0/1, x.x.x.x/32.
metric: u32§if_type: u32IANA ifType (InterfaceType of Get-NetAdapter / InterfaceType of MIB). 0 = unknown.
hardware: Option<bool>HardwareInterface of Get-NetAdapter. None = no adapter object (hidden/virtual driver).
is_virtual: Option<bool>Virtual of Get-NetAdapter, when present.
media: String§alias: String§desc: StringTrait Implementations§
impl Eq for RouteFact
impl StructuralPartialEq for RouteFact
Auto Trait Implementations§
impl Freeze for RouteFact
impl RefUnwindSafe for RouteFact
impl Send for RouteFact
impl Sync for RouteFact
impl Unpin for RouteFact
impl UnsafeUnpin for RouteFact
impl UnwindSafe for RouteFact
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