pub struct PlanRecord {
pub units: Vec<UnitRecord>,
}Expand description
The plan a scan ran against, as a file holds it.
Ranges and port lists, so a /16 on every port is a few dozen bytes. A resume uses
the plan that ran.
A host-discovery plan is written as a single unit with an empty port list, so one shape covers both phases.
Fields§
§units: Vec<UnitRecord>The units, in the order they were walked. Order is part of the plan: positions are counted through it.
Implementations§
Trait Implementations§
Source§impl Clone for PlanRecord
impl Clone for PlanRecord
Source§impl Debug for PlanRecord
impl Debug for PlanRecord
Source§impl Default for PlanRecord
impl Default for PlanRecord
Source§impl<'de> Deserialize<'de> for PlanRecord
impl<'de> Deserialize<'de> for PlanRecord
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 PlanRecord
Source§impl From<&IpSet> for PlanRecord
impl From<&IpSet> for PlanRecord
Source§impl From<&PlanRecord> for TargetMap
impl From<&PlanRecord> for TargetMap
Source§fn from(record: &PlanRecord) -> Self
fn from(record: &PlanRecord) -> Self
Converts to this type from the input type.
Source§impl From<&TargetMap> for PlanRecord
impl From<&TargetMap> for PlanRecord
Source§impl PartialEq for PlanRecord
impl PartialEq for PlanRecord
Source§impl Serialize for PlanRecord
impl Serialize for PlanRecord
impl StructuralPartialEq for PlanRecord
Auto Trait Implementations§
impl Freeze for PlanRecord
impl RefUnwindSafe for PlanRecord
impl Send for PlanRecord
impl Sync for PlanRecord
impl Unpin for PlanRecord
impl UnsafeUnpin for PlanRecord
impl UnwindSafe for PlanRecord
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