pub struct FootprintView {
pub watch: WatchState,
pub unattributed: Vec<String>,
pub units: BTreeMap<String, Footprint>,
}Expand description
Everything the hold needs, read back from the files (or scripted by the
fake): the watch, why .unattributed stands (empty: it is absent), and
the footprint of each network tool, keyed by its file name
(crate::file_name).
Fields§
§watch: WatchState§unattributed: Vec<String>§units: BTreeMap<String, Footprint>Implementations§
Source§impl FootprintView
impl FootprintView
Sourcepub fn protecting_now(&self, unit: &str, now: u64) -> bool
pub fn protecting_now(&self, unit: &str, now: u64) -> bool
§12d, fail closed: whether a failed network tool unit (its file
name) counts as protecting traffic at now. True unless the watch is
attached and fresh, no unattributed change stands, and the unit’s
footprint exists, is fresh, is not protecting and is not marked
unattributed. The hold’s script applies the same rules to the files.
Source§impl FootprintView
impl FootprintView
Trait Implementations§
Source§impl Clone for FootprintView
impl Clone for FootprintView
Source§fn clone(&self) -> FootprintView
fn clone(&self) -> FootprintView
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FootprintView
impl Debug for FootprintView
Source§impl Default for FootprintView
impl Default for FootprintView
Source§impl<'de> Deserialize<'de> for FootprintView
impl<'de> Deserialize<'de> for FootprintView
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
Source§impl PartialEq for FootprintView
impl PartialEq for FootprintView
Source§impl Serialize for FootprintView
impl Serialize for FootprintView
impl Eq for FootprintView
impl StructuralPartialEq for FootprintView
Auto Trait Implementations§
impl Freeze for FootprintView
impl RefUnwindSafe for FootprintView
impl Send for FootprintView
impl Sync for FootprintView
impl Unpin for FootprintView
impl UnsafeUnpin for FootprintView
impl UnwindSafe for FootprintView
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