pub struct RelayBandwidth {
pub bytes_per_second: u64,
pub burst_bytes: u64,
}Expand description
Relay bandwidth configuration.
Fields§
§bytes_per_second: u64Allowed bytes per second per sender.
burst_bytes: u64Maximum burst allowed immediately.
Implementations§
Trait Implementations§
Source§impl Clone for RelayBandwidth
impl Clone for RelayBandwidth
Source§fn clone(&self) -> RelayBandwidth
fn clone(&self) -> RelayBandwidth
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 RelayBandwidth
impl Debug for RelayBandwidth
Source§impl<'de> Deserialize<'de> for RelayBandwidth
impl<'de> Deserialize<'de> for RelayBandwidth
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 Serialize for RelayBandwidth
impl Serialize for RelayBandwidth
impl Copy for RelayBandwidth
Auto Trait Implementations§
impl Freeze for RelayBandwidth
impl RefUnwindSafe for RelayBandwidth
impl Send for RelayBandwidth
impl Sync for RelayBandwidth
impl Unpin for RelayBandwidth
impl UnsafeUnpin for RelayBandwidth
impl UnwindSafe for RelayBandwidth
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