[][src]Struct catalyst_protocol_sdk_rust::Peer::PeerInfo

pub struct PeerInfo {
    pub peer_id: SingularPtrField<PeerId>,
    pub reputation: i32,
    pub is_blacklisted: bool,
    pub is_unreachable: bool,
    pub inactive_for: SingularPtrField<Duration>,
    pub last_seen: SingularPtrField<Timestamp>,
    pub modified: SingularPtrField<Timestamp>,
    pub created: SingularPtrField<Timestamp>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

peer_id: SingularPtrField<PeerId>reputation: i32is_blacklisted: boolis_unreachable: boolinactive_for: SingularPtrField<Duration>last_seen: SingularPtrField<Timestamp>modified: SingularPtrField<Timestamp>created: SingularPtrField<Timestamp>unknown_fields: UnknownFieldscached_size: CachedSize

Methods

impl PeerInfo[src]

pub fn new() -> PeerInfo[src]

pub fn get_peer_id(&self) -> &PeerId[src]

pub fn clear_peer_id(&mut self)[src]

pub fn has_peer_id(&self) -> bool[src]

pub fn set_peer_id(&mut self, v: PeerId)[src]

pub fn mut_peer_id(&mut self) -> &mut PeerId[src]

pub fn take_peer_id(&mut self) -> PeerId[src]

pub fn get_reputation(&self) -> i32[src]

pub fn clear_reputation(&mut self)[src]

pub fn set_reputation(&mut self, v: i32)[src]

pub fn get_is_blacklisted(&self) -> bool[src]

pub fn clear_is_blacklisted(&mut self)[src]

pub fn set_is_blacklisted(&mut self, v: bool)[src]

pub fn get_is_unreachable(&self) -> bool[src]

pub fn clear_is_unreachable(&mut self)[src]

pub fn set_is_unreachable(&mut self, v: bool)[src]

pub fn get_inactive_for(&self) -> &Duration[src]

pub fn clear_inactive_for(&mut self)[src]

pub fn has_inactive_for(&self) -> bool[src]

pub fn set_inactive_for(&mut self, v: Duration)[src]

pub fn mut_inactive_for(&mut self) -> &mut Duration[src]

pub fn take_inactive_for(&mut self) -> Duration[src]

pub fn get_last_seen(&self) -> &Timestamp[src]

pub fn clear_last_seen(&mut self)[src]

pub fn has_last_seen(&self) -> bool[src]

pub fn set_last_seen(&mut self, v: Timestamp)[src]

pub fn mut_last_seen(&mut self) -> &mut Timestamp[src]

pub fn take_last_seen(&mut self) -> Timestamp[src]

pub fn get_modified(&self) -> &Timestamp[src]

pub fn clear_modified(&mut self)[src]

pub fn has_modified(&self) -> bool[src]

pub fn set_modified(&mut self, v: Timestamp)[src]

pub fn mut_modified(&mut self) -> &mut Timestamp[src]

pub fn take_modified(&mut self) -> Timestamp[src]

pub fn get_created(&self) -> &Timestamp[src]

pub fn clear_created(&mut self)[src]

pub fn has_created(&self) -> bool[src]

pub fn set_created(&mut self, v: Timestamp)[src]

pub fn mut_created(&mut self) -> &mut Timestamp[src]

pub fn take_created(&mut self) -> Timestamp[src]

Trait Implementations

impl Clone for PeerInfo[src]

impl Default for PeerInfo[src]

impl<'a> Default for &'a PeerInfo[src]

impl PartialEq<PeerInfo> for PeerInfo[src]

impl Debug for PeerInfo[src]

impl StructuralPartialEq for PeerInfo[src]

impl Message for PeerInfo[src]

impl Clear for PeerInfo[src]

impl ProtobufValue for PeerInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]