pub struct RelayFamily(_);
Expand description

Information about a relay family.

Tor relays may declare that they belong to the same family, to indicate that they are controlled by the same party or parties, and as such should not be used in the same circuit. Two relays belong to the same family if and only if each one lists the other as belonging to its family.

NOTE: when parsing, this type always discards incorrectly-formatted entries, including entries that are only nicknames.

TODO: This type probably belongs in a different crate.

Implementations

Return a new empty RelayFamily.

Add rsa_id to this family.

Consume this family, and return a new canonical interned representation of the family.

Does this family include the given relay?

Return an iterator over the RSA identity keys listed in this family.

Return true if this family has no members.

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

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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)

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.