Struct jormungandr_lib::interfaces::peer_stats::Subscription
source · pub struct Subscription {
pub interest: u32,
pub topic: String,
}
Fields§
§interest: u32
§topic: String
Trait Implementations§
source§impl Clone for Subscription
impl Clone for Subscription
source§fn clone(&self) -> Subscription
fn clone(&self) -> Subscription
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 Subscription
impl Debug for Subscription
source§impl<'de> Deserialize<'de> for Subscription
impl<'de> Deserialize<'de> for Subscription
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<Subscription> for Subscription
impl PartialEq<Subscription> for Subscription
source§fn eq(&self, other: &Subscription) -> bool
fn eq(&self, other: &Subscription) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Subscription
impl Serialize for Subscription
impl Eq for Subscription
impl StructuralEq for Subscription
impl StructuralPartialEq for Subscription
Auto Trait Implementations§
impl RefUnwindSafe for Subscription
impl Send for Subscription
impl Sync for Subscription
impl Unpin for Subscription
impl UnwindSafe for Subscription
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