pub enum Scope {
Host,
Elsewhere,
Unknown,
Reaches,
}Expand description
Which network namespace a request acts on, against netwatch’s own (crate docs, “Namespaces”).
Variants§
Host
This one: the host’s.
Elsewhere
Another (a container’s, a PrivateNetwork= service’s): how traffic
leaves the machine is not changed there. Ignored.
Unknown
The probe could not read the netns: a loss nothing can place
(.unattributed, fail closed).
Reaches
A request elsewhere that may reach into this one (a link moved by netns pid or fd, or aimed at a netns id; the kernel makes no request here for the device arriving): charged to the mover as unattributed, or to nobody if its unit is not known (fail closed either way).
Trait Implementations§
impl Copy for Scope
impl Eq for Scope
impl StructuralPartialEq for Scope
Auto Trait Implementations§
impl Freeze for Scope
impl RefUnwindSafe for Scope
impl Send for Scope
impl Sync for Scope
impl Unpin for Scope
impl UnsafeUnpin for Scope
impl UnwindSafe for Scope
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