pub struct RelayCapacity {
pub max_tunnels: u16,
pub bandwidth_class: BandwidthClass,
pub max_bytes_per_tunnel: Option<u64>,
}Expand description
Advertised capacity limits included in a RelayAnnouncement.
Fields§
§max_tunnels: u16§bandwidth_class: BandwidthClass§max_bytes_per_tunnel: Option<u64>Per-tunnel byte cap (None = unlimited within daily quota).
Trait Implementations§
Source§impl Clone for RelayCapacity
impl Clone for RelayCapacity
Source§fn clone(&self) -> RelayCapacity
fn clone(&self) -> RelayCapacity
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RelayCapacity
impl Debug for RelayCapacity
Source§impl Default for RelayCapacity
impl Default for RelayCapacity
Source§impl<'de> Deserialize<'de> for RelayCapacity
impl<'de> Deserialize<'de> for RelayCapacity
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
Source§impl PartialEq for RelayCapacity
impl PartialEq for RelayCapacity
Source§impl Serialize for RelayCapacity
impl Serialize for RelayCapacity
impl Eq for RelayCapacity
impl StructuralPartialEq for RelayCapacity
Auto Trait Implementations§
impl Freeze for RelayCapacity
impl RefUnwindSafe for RelayCapacity
impl Send for RelayCapacity
impl Sync for RelayCapacity
impl Unpin for RelayCapacity
impl UnsafeUnpin for RelayCapacity
impl UnwindSafe for RelayCapacity
Blanket Implementations§
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