pub struct ExtraInfoDescriptorBuilder { /* private fields */ }Expand description
Builder for ExtraInfoDescriptor.
Implementations§
Source§impl ExtraInfoDescriptorBuilder
impl ExtraInfoDescriptorBuilder
Sourcepub fn nickname<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn nickname<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The relay’s nickname (1-19 alphanumeric characters).
Sourcepub fn fingerprint<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn fingerprint<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The relay’s identity fingerprint (40 uppercase hex characters).
This is the SHA-1 hash of the relay’s identity key.
Sourcepub fn published<VALUE: Into<DateTime<Utc>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn published<VALUE: Into<DateTime<Utc>>>( &mut self, value: VALUE, ) -> &mut Self
When this descriptor was published (UTC).
Sourcepub fn geoip_db_digest<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
pub fn geoip_db_digest<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
SHA-1 digest of the GeoIP database for IPv4 addresses.
Sourcepub fn geoip6_db_digest<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
pub fn geoip6_db_digest<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
SHA-1 digest of the GeoIP database for IPv6 addresses.
Sourcepub fn transports<VALUE: Into<HashMap<String, Transport>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn transports<VALUE: Into<HashMap<String, Transport>>>( &mut self, value: VALUE, ) -> &mut Self
Pluggable transports available on this relay (bridges only).
Maps transport name to transport details.
Sourcepub fn read_history<VALUE: Into<BandwidthHistory>>( &mut self, value: VALUE, ) -> &mut Self
pub fn read_history<VALUE: Into<BandwidthHistory>>( &mut self, value: VALUE, ) -> &mut Self
Bytes read by the relay over time.
Sourcepub fn write_history<VALUE: Into<BandwidthHistory>>( &mut self, value: VALUE, ) -> &mut Self
pub fn write_history<VALUE: Into<BandwidthHistory>>( &mut self, value: VALUE, ) -> &mut Self
Bytes written by the relay over time.
Sourcepub fn dir_read_history<VALUE: Into<BandwidthHistory>>( &mut self, value: VALUE, ) -> &mut Self
pub fn dir_read_history<VALUE: Into<BandwidthHistory>>( &mut self, value: VALUE, ) -> &mut Self
Bytes read for directory requests over time.
Sourcepub fn dir_write_history<VALUE: Into<BandwidthHistory>>( &mut self, value: VALUE, ) -> &mut Self
pub fn dir_write_history<VALUE: Into<BandwidthHistory>>( &mut self, value: VALUE, ) -> &mut Self
Bytes written for directory requests over time.
Sourcepub fn conn_bi_direct_end<VALUE: Into<DateTime<Utc>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn conn_bi_direct_end<VALUE: Into<DateTime<Utc>>>( &mut self, value: VALUE, ) -> &mut Self
End time for bi-directional connection statistics.
Sourcepub fn conn_bi_direct_interval<VALUE: Into<u32>>( &mut self, value: VALUE, ) -> &mut Self
pub fn conn_bi_direct_interval<VALUE: Into<u32>>( &mut self, value: VALUE, ) -> &mut Self
Interval for bi-directional connection statistics (seconds).
Sourcepub fn conn_bi_direct_below<VALUE: Into<u32>>( &mut self, value: VALUE, ) -> &mut Self
pub fn conn_bi_direct_below<VALUE: Into<u32>>( &mut self, value: VALUE, ) -> &mut Self
Connections that read/wrote less than 20 KiB.
Sourcepub fn conn_bi_direct_read<VALUE: Into<u32>>( &mut self, value: VALUE, ) -> &mut Self
pub fn conn_bi_direct_read<VALUE: Into<u32>>( &mut self, value: VALUE, ) -> &mut Self
Connections that read at least 10x more than wrote.
Sourcepub fn conn_bi_direct_write<VALUE: Into<u32>>( &mut self, value: VALUE, ) -> &mut Self
pub fn conn_bi_direct_write<VALUE: Into<u32>>( &mut self, value: VALUE, ) -> &mut Self
Connections that wrote at least 10x more than read.
Sourcepub fn conn_bi_direct_both<VALUE: Into<u32>>( &mut self, value: VALUE, ) -> &mut Self
pub fn conn_bi_direct_both<VALUE: Into<u32>>( &mut self, value: VALUE, ) -> &mut Self
Connections with balanced read/write (remaining).
Sourcepub fn cell_stats_end<VALUE: Into<DateTime<Utc>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn cell_stats_end<VALUE: Into<DateTime<Utc>>>( &mut self, value: VALUE, ) -> &mut Self
End time for cell statistics collection.
Sourcepub fn cell_stats_interval<VALUE: Into<u32>>( &mut self, value: VALUE, ) -> &mut Self
pub fn cell_stats_interval<VALUE: Into<u32>>( &mut self, value: VALUE, ) -> &mut Self
Interval for cell statistics (seconds).
Sourcepub fn cell_processed_cells<VALUE: Into<Vec<f64>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn cell_processed_cells<VALUE: Into<Vec<f64>>>( &mut self, value: VALUE, ) -> &mut Self
Mean processed cells per circuit, by decile.
Sourcepub fn cell_queued_cells<VALUE: Into<Vec<f64>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn cell_queued_cells<VALUE: Into<Vec<f64>>>( &mut self, value: VALUE, ) -> &mut Self
Mean queued cells per circuit, by decile.
Sourcepub fn cell_time_in_queue<VALUE: Into<Vec<f64>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn cell_time_in_queue<VALUE: Into<Vec<f64>>>( &mut self, value: VALUE, ) -> &mut Self
Mean time cells spent in queue (milliseconds), by decile.
Sourcepub fn cell_circuits_per_decile<VALUE: Into<u32>>( &mut self, value: VALUE, ) -> &mut Self
pub fn cell_circuits_per_decile<VALUE: Into<u32>>( &mut self, value: VALUE, ) -> &mut Self
Mean number of circuits in a decile.
Sourcepub fn dir_stats_end<VALUE: Into<DateTime<Utc>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn dir_stats_end<VALUE: Into<DateTime<Utc>>>( &mut self, value: VALUE, ) -> &mut Self
End time for directory statistics collection.
Sourcepub fn dir_stats_interval<VALUE: Into<u32>>( &mut self, value: VALUE, ) -> &mut Self
pub fn dir_stats_interval<VALUE: Into<u32>>( &mut self, value: VALUE, ) -> &mut Self
Interval for directory statistics (seconds).
Sourcepub fn dir_v3_ips<VALUE: Into<HashMap<String, u32>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn dir_v3_ips<VALUE: Into<HashMap<String, u32>>>( &mut self, value: VALUE, ) -> &mut Self
V3 directory request client IPs by country code.
Sourcepub fn dir_v3_requests<VALUE: Into<HashMap<String, u32>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn dir_v3_requests<VALUE: Into<HashMap<String, u32>>>( &mut self, value: VALUE, ) -> &mut Self
V3 directory request counts by country code.
Sourcepub fn dir_v3_responses<VALUE: Into<HashMap<DirResponse, u32>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn dir_v3_responses<VALUE: Into<HashMap<DirResponse, u32>>>( &mut self, value: VALUE, ) -> &mut Self
V3 directory response status counts.
Sourcepub fn dir_v3_responses_unknown<VALUE: Into<HashMap<String, u32>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn dir_v3_responses_unknown<VALUE: Into<HashMap<String, u32>>>( &mut self, value: VALUE, ) -> &mut Self
Unrecognized V3 directory response statuses.
Sourcepub fn dir_v3_direct_dl<VALUE: Into<HashMap<DirStat, u32>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn dir_v3_direct_dl<VALUE: Into<HashMap<DirStat, u32>>>( &mut self, value: VALUE, ) -> &mut Self
V3 direct download statistics (via DirPort).
Sourcepub fn dir_v3_direct_dl_unknown<VALUE: Into<HashMap<String, u32>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn dir_v3_direct_dl_unknown<VALUE: Into<HashMap<String, u32>>>( &mut self, value: VALUE, ) -> &mut Self
Unrecognized V3 direct download statistics.
Sourcepub fn dir_v3_tunneled_dl<VALUE: Into<HashMap<DirStat, u32>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn dir_v3_tunneled_dl<VALUE: Into<HashMap<DirStat, u32>>>( &mut self, value: VALUE, ) -> &mut Self
V3 tunneled download statistics (via ORPort).
Sourcepub fn dir_v3_tunneled_dl_unknown<VALUE: Into<HashMap<String, u32>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn dir_v3_tunneled_dl_unknown<VALUE: Into<HashMap<String, u32>>>( &mut self, value: VALUE, ) -> &mut Self
Unrecognized V3 tunneled download statistics.
Sourcepub fn dir_v2_ips<VALUE: Into<HashMap<String, u32>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn dir_v2_ips<VALUE: Into<HashMap<String, u32>>>( &mut self, value: VALUE, ) -> &mut Self
V2 directory request client IPs by country code (deprecated).
Sourcepub fn dir_v2_requests<VALUE: Into<HashMap<String, u32>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn dir_v2_requests<VALUE: Into<HashMap<String, u32>>>( &mut self, value: VALUE, ) -> &mut Self
V2 directory request counts by country code (deprecated).
Sourcepub fn dir_v2_responses<VALUE: Into<HashMap<DirResponse, u32>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn dir_v2_responses<VALUE: Into<HashMap<DirResponse, u32>>>( &mut self, value: VALUE, ) -> &mut Self
V2 directory response status counts (deprecated).
Sourcepub fn dir_v2_responses_unknown<VALUE: Into<HashMap<String, u32>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn dir_v2_responses_unknown<VALUE: Into<HashMap<String, u32>>>( &mut self, value: VALUE, ) -> &mut Self
Unrecognized V2 directory response statuses (deprecated).
Sourcepub fn dir_v2_direct_dl<VALUE: Into<HashMap<DirStat, u32>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn dir_v2_direct_dl<VALUE: Into<HashMap<DirStat, u32>>>( &mut self, value: VALUE, ) -> &mut Self
V2 direct download statistics (deprecated).
Sourcepub fn dir_v2_direct_dl_unknown<VALUE: Into<HashMap<String, u32>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn dir_v2_direct_dl_unknown<VALUE: Into<HashMap<String, u32>>>( &mut self, value: VALUE, ) -> &mut Self
Unrecognized V2 direct download statistics (deprecated).
Sourcepub fn dir_v2_tunneled_dl<VALUE: Into<HashMap<DirStat, u32>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn dir_v2_tunneled_dl<VALUE: Into<HashMap<DirStat, u32>>>( &mut self, value: VALUE, ) -> &mut Self
V2 tunneled download statistics (deprecated).
Sourcepub fn dir_v2_tunneled_dl_unknown<VALUE: Into<HashMap<String, u32>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn dir_v2_tunneled_dl_unknown<VALUE: Into<HashMap<String, u32>>>( &mut self, value: VALUE, ) -> &mut Self
Unrecognized V2 tunneled download statistics (deprecated).
Sourcepub fn entry_stats_end<VALUE: Into<DateTime<Utc>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn entry_stats_end<VALUE: Into<DateTime<Utc>>>( &mut self, value: VALUE, ) -> &mut Self
End time for entry guard statistics.
Sourcepub fn entry_stats_interval<VALUE: Into<u32>>( &mut self, value: VALUE, ) -> &mut Self
pub fn entry_stats_interval<VALUE: Into<u32>>( &mut self, value: VALUE, ) -> &mut Self
Interval for entry guard statistics (seconds).
Sourcepub fn entry_ips<VALUE: Into<HashMap<String, u32>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn entry_ips<VALUE: Into<HashMap<String, u32>>>( &mut self, value: VALUE, ) -> &mut Self
Entry guard client IPs by country code.
Sourcepub fn exit_stats_end<VALUE: Into<DateTime<Utc>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn exit_stats_end<VALUE: Into<DateTime<Utc>>>( &mut self, value: VALUE, ) -> &mut Self
End time for exit statistics.
Sourcepub fn exit_stats_interval<VALUE: Into<u32>>( &mut self, value: VALUE, ) -> &mut Self
pub fn exit_stats_interval<VALUE: Into<u32>>( &mut self, value: VALUE, ) -> &mut Self
Interval for exit statistics (seconds).
Sourcepub fn exit_kibibytes_written<VALUE: Into<HashMap<PortKey, u64>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn exit_kibibytes_written<VALUE: Into<HashMap<PortKey, u64>>>( &mut self, value: VALUE, ) -> &mut Self
Kibibytes written per destination port.
Sourcepub fn exit_kibibytes_read<VALUE: Into<HashMap<PortKey, u64>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn exit_kibibytes_read<VALUE: Into<HashMap<PortKey, u64>>>( &mut self, value: VALUE, ) -> &mut Self
Kibibytes read per destination port.
Sourcepub fn exit_streams_opened<VALUE: Into<HashMap<PortKey, u64>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn exit_streams_opened<VALUE: Into<HashMap<PortKey, u64>>>( &mut self, value: VALUE, ) -> &mut Self
Streams opened per destination port.
Sourcepub fn bridge_stats_end<VALUE: Into<DateTime<Utc>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn bridge_stats_end<VALUE: Into<DateTime<Utc>>>( &mut self, value: VALUE, ) -> &mut Self
End time for bridge statistics.
Sourcepub fn bridge_stats_interval<VALUE: Into<u32>>( &mut self, value: VALUE, ) -> &mut Self
pub fn bridge_stats_interval<VALUE: Into<u32>>( &mut self, value: VALUE, ) -> &mut Self
Interval for bridge statistics (seconds).
Sourcepub fn bridge_ips<VALUE: Into<HashMap<String, u32>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn bridge_ips<VALUE: Into<HashMap<String, u32>>>( &mut self, value: VALUE, ) -> &mut Self
Bridge client IPs by country code.
Sourcepub fn ip_versions<VALUE: Into<HashMap<String, u32>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn ip_versions<VALUE: Into<HashMap<String, u32>>>( &mut self, value: VALUE, ) -> &mut Self
Bridge client counts by IP version (v4, v6).
Sourcepub fn ip_transports<VALUE: Into<HashMap<String, u32>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn ip_transports<VALUE: Into<HashMap<String, u32>>>( &mut self, value: VALUE, ) -> &mut Self
Bridge client counts by transport method.
Sourcepub fn hs_stats_end<VALUE: Into<DateTime<Utc>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn hs_stats_end<VALUE: Into<DateTime<Utc>>>( &mut self, value: VALUE, ) -> &mut Self
End time for hidden service statistics.
Sourcepub fn hs_rend_cells<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self
pub fn hs_rend_cells<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self
Rounded count of RENDEZVOUS1 cells relayed.
Sourcepub fn hs_rend_cells_attr<VALUE: Into<HashMap<String, String>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn hs_rend_cells_attr<VALUE: Into<HashMap<String, String>>>( &mut self, value: VALUE, ) -> &mut Self
Additional attributes for hs_rend_cells.
Sourcepub fn hs_dir_onions_seen<VALUE: Into<u64>>( &mut self, value: VALUE, ) -> &mut Self
pub fn hs_dir_onions_seen<VALUE: Into<u64>>( &mut self, value: VALUE, ) -> &mut Self
Rounded count of unique onion service identities seen.
Sourcepub fn hs_dir_onions_seen_attr<VALUE: Into<HashMap<String, String>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn hs_dir_onions_seen_attr<VALUE: Into<HashMap<String, String>>>( &mut self, value: VALUE, ) -> &mut Self
Additional attributes for hs_dir_onions_seen.
Sourcepub fn padding_counts_end<VALUE: Into<DateTime<Utc>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn padding_counts_end<VALUE: Into<DateTime<Utc>>>( &mut self, value: VALUE, ) -> &mut Self
End time for padding count statistics.
Sourcepub fn padding_counts_interval<VALUE: Into<u32>>( &mut self, value: VALUE, ) -> &mut Self
pub fn padding_counts_interval<VALUE: Into<u32>>( &mut self, value: VALUE, ) -> &mut Self
Interval for padding count statistics (seconds).
Sourcepub fn padding_counts<VALUE: Into<HashMap<String, String>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn padding_counts<VALUE: Into<HashMap<String, String>>>( &mut self, value: VALUE, ) -> &mut Self
Padding-related statistics.
Sourcepub fn ed25519_certificate<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
pub fn ed25519_certificate<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
Ed25519 certificate (PEM-encoded).
Sourcepub fn ed25519_signature<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
pub fn ed25519_signature<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
Ed25519 signature of the descriptor.
Sourcepub fn signature<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn signature<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
RSA signature of the descriptor (relay extra-info only).
Sourcepub fn router_digest<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn router_digest<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Router digest for bridge extra-info descriptors.
Present only in bridge descriptors; indicates this is a bridge.
Sourcepub fn router_digest_sha256<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
pub fn router_digest_sha256<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
SHA-256 router digest (base64).
Sourcepub fn raw_content<VALUE: Into<Vec<u8>>>(&mut self, value: VALUE) -> &mut Self
pub fn raw_content<VALUE: Into<Vec<u8>>>(&mut self, value: VALUE) -> &mut Self
Raw descriptor content for digest computation.
Sourcepub fn unrecognized_lines<VALUE: Into<Vec<String>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn unrecognized_lines<VALUE: Into<Vec<String>>>( &mut self, value: VALUE, ) -> &mut Self
Lines not recognized during parsing.
Sourcepub fn build( &self, ) -> Result<ExtraInfoDescriptor, ExtraInfoDescriptorBuilderError>
pub fn build( &self, ) -> Result<ExtraInfoDescriptor, ExtraInfoDescriptorBuilderError>
Trait Implementations§
Source§impl Clone for ExtraInfoDescriptorBuilder
impl Clone for ExtraInfoDescriptorBuilder
Source§fn clone(&self) -> ExtraInfoDescriptorBuilder
fn clone(&self) -> ExtraInfoDescriptorBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more