pub struct NegotiatedCaps {
pub protocol: u16,
pub max_frame: u32,
pub max_drop: u64,
pub chunking: Vec<String>,
pub compression: Vec<String>,
pub inventory: Vec<String>,
pub routing: Vec<String>,
pub receipts: bool,
pub peer_relay: RelayCapacity,
}Fields§
§protocol: u16§max_frame: u32§max_drop: u64§chunking: Vec<String>§compression: Vec<String>§inventory: Vec<String>§routing: Vec<String>§receipts: bool§peer_relay: RelayCapacityImplementations§
Source§impl NegotiatedCaps
impl NegotiatedCaps
pub fn prefer_inventory(&self) -> &'static str
Trait Implementations§
Source§impl Clone for NegotiatedCaps
impl Clone for NegotiatedCaps
Source§fn clone(&self) -> NegotiatedCaps
fn clone(&self) -> NegotiatedCaps
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NegotiatedCaps
impl Debug for NegotiatedCaps
Source§impl<'de> Deserialize<'de> for NegotiatedCaps
impl<'de> Deserialize<'de> for NegotiatedCaps
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
impl Eq for NegotiatedCaps
Source§impl PartialEq for NegotiatedCaps
impl PartialEq for NegotiatedCaps
Source§impl Serialize for NegotiatedCaps
impl Serialize for NegotiatedCaps
impl StructuralPartialEq for NegotiatedCaps
Auto Trait Implementations§
impl Freeze for NegotiatedCaps
impl RefUnwindSafe for NegotiatedCaps
impl Send for NegotiatedCaps
impl Sync for NegotiatedCaps
impl Unpin for NegotiatedCaps
impl UnsafeUnpin for NegotiatedCaps
impl UnwindSafe for NegotiatedCaps
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.