pub struct ScopeRecord {
pub ranges: Vec<RangeRecord>,
pub links: Vec<ZoneRecord>,
pub listened: Vec<ZoneRecord>,
pub addresses: u128,
pub probes: Option<u128>,
pub ports: Option<PortsRecord>,
pub protocols: Vec<String>,
pub excluded: Vec<RangeRecord>,
pub withheld: u128,
}Expand description
What a sitting was asked to cover, and what it was forbidden.
Fields§
§ranges: Vec<RangeRecord>The ranges walked, after exclusions, as start-end.
links: Vec<ZoneRecord>The links swept whole, by the interface each is on. Defaulted on read.
listened: Vec<ZoneRecord>The links whose traffic was read without anything being probed on them.
Never coverage; see TargetScope::listened. Defaulted on read.
addresses: u128How many distinct addresses those hold.
probes: Option<u128>How many probes the scope implies, where ports were known.
ports: Option<PortsRecord>Which ports were walked, and whether uniformly. Absent reads back as unstated.
protocols: Vec<String>The transports covered, by wire name.
excluded: Vec<RangeRecord>The ranges the policy withheld.
withheld: u128How many addresses that withheld.
Trait Implementations§
Source§impl Clone for ScopeRecord
impl Clone for ScopeRecord
Source§impl Debug for ScopeRecord
impl Debug for ScopeRecord
Source§impl<'de> Deserialize<'de> for ScopeRecord
impl<'de> Deserialize<'de> for ScopeRecord
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 ScopeRecord
Source§impl From<&ScopeRecord> for TargetScope
impl From<&ScopeRecord> for TargetScope
Source§fn from(record: &ScopeRecord) -> Self
fn from(record: &ScopeRecord) -> Self
Converts to this type from the input type.
Source§impl From<&TargetScope> for ScopeRecord
impl From<&TargetScope> for ScopeRecord
Source§fn from(scope: &TargetScope) -> Self
fn from(scope: &TargetScope) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ScopeRecord
impl PartialEq for ScopeRecord
Source§impl Serialize for ScopeRecord
impl Serialize for ScopeRecord
impl StructuralPartialEq for ScopeRecord
Auto Trait Implementations§
impl Freeze for ScopeRecord
impl RefUnwindSafe for ScopeRecord
impl Send for ScopeRecord
impl Sync for ScopeRecord
impl Unpin for ScopeRecord
impl UnsafeUnpin for ScopeRecord
impl UnwindSafe for ScopeRecord
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more