pub struct ConnectionSettings {
pub parity: Parity,
pub max_concurrent_requests: u32,
}Expand description
Per-connection limits advertised by a peer.
Fields§
§parity: ParityWhether this peer will use odd or even IDs for requests and channels on this connection.
max_concurrent_requests: u32Maximum number of in-flight requests this peer is willing to accept on this connection.
Trait Implementations§
Source§impl Clone for ConnectionSettings
impl Clone for ConnectionSettings
Source§fn clone(&self) -> ConnectionSettings
fn clone(&self) -> ConnectionSettings
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 ConnectionSettings
impl Debug for ConnectionSettings
Source§impl<'ʄ> Facet<'ʄ> for ConnectionSettings
impl<'ʄ> Facet<'ʄ> for ConnectionSettings
Source§impl PartialEq for ConnectionSettings
impl PartialEq for ConnectionSettings
impl Eq for ConnectionSettings
impl StructuralPartialEq for ConnectionSettings
Auto Trait Implementations§
impl Freeze for ConnectionSettings
impl RefUnwindSafe for ConnectionSettings
impl Send for ConnectionSettings
impl Sync for ConnectionSettings
impl Unpin for ConnectionSettings
impl UnsafeUnpin for ConnectionSettings
impl UnwindSafe for ConnectionSettings
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.