Struct rust_ipfs::p2p::RelayConfig
source · pub struct RelayConfig {
pub max_reservations: usize,
pub max_reservations_per_peer: usize,
pub reservation_duration: Duration,
pub reservation_rate_limiters: Vec<RateLimit>,
pub max_circuits: usize,
pub max_circuits_per_peer: usize,
pub max_circuit_duration: Duration,
pub max_circuit_bytes: u64,
pub circuit_src_rate_limiters: Vec<RateLimit>,
}
Fields§
§max_reservations: usize
§max_reservations_per_peer: usize
§reservation_duration: Duration
§reservation_rate_limiters: Vec<RateLimit>
§max_circuits: usize
§max_circuits_per_peer: usize
§max_circuit_duration: Duration
§max_circuit_bytes: u64
§circuit_src_rate_limiters: Vec<RateLimit>
Trait Implementations§
source§impl Clone for RelayConfig
impl Clone for RelayConfig
source§fn clone(&self) -> RelayConfig
fn clone(&self) -> RelayConfig
Returns a copy 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 RelayConfig
impl Debug for RelayConfig
source§impl<'de> Deserialize<'de> for RelayConfig
impl<'de> Deserialize<'de> for RelayConfig
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 From<RelayConfig> for Config
impl From<RelayConfig> for Config
source§fn from(_: RelayConfig) -> Self
fn from(_: RelayConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for RelayConfig
impl Send for RelayConfig
impl Sync for RelayConfig
impl Unpin for RelayConfig
impl UnwindSafe for RelayConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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