Struct tor_netdir::PartialNetDir
source · [−]pub struct PartialNetDir { /* private fields */ }
Expand description
A partially build NetDir – it can’t be unwrapped until it has enough information to build safe paths.
Implementations
Create a new PartialNetDir with a given consensus, and no microdescriptors loaded.
If replacement_params
is provided, override network parameters from
the consensus with those from replacement_params
.
Fill in as many missing microdescriptors as possible in this netdir, using the microdescriptors from the previous netdir.
Return true if this are enough information in this directory to build multihop paths.
If this directory has enough information to build multihop circuits, return it.
Return true if we are currently missing a microdescriptor for the given RSA identity.
A descriptor is missing
only if it is listed in the consensus,
but we don’t have it downloaded.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PartialNetDir
impl Send for PartialNetDir
impl Sync for PartialNetDir
impl Unpin for PartialNetDir
impl UnwindSafe for PartialNetDir
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more