Struct tor_dirclient::request::ConsensusRequest[][src]

pub struct ConsensusRequest { /* fields omitted */ }
Expand description

A Request for a consensus directory.

Implementations

Create a new request for a consensus directory document.

Add id to the list of authorities that this request should say we believe in.

Add d to the list of consensus digests this request should say we already have.

Set the publication time we should say we have for our last consensus to when.

Return a slice of the consensus digests that we’re saying we already have.

Return an iterator of the authority identities that this request is saying we believe in.

Return the date we’re reporting for our most recent consensus.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Build an http::Request from this Requestable, if it is well-formed. Read more

Return true if partial downloads are potentially useful. This is true for request types where we’re going to be downloading multiple documents. Read more

Return the maximum allowable response length we’ll accept for this request. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.