[−][src]Struct catalyst_protocol_sdk_rust::Peer::PeerInfo
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: CachedSizeMethods
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]
fn is_initialized(&self) -> bool[src]
fn merge_from(&mut self, is: &mut CodedInputStream) -> ProtobufResult<()>[src]
fn compute_size(&self) -> u32[src]
fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>[src]
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
fn get_cached_size(&self) -> u32[src]
fn get_unknown_fields(&self) -> &UnknownFields[src]
fn mut_unknown_fields(&mut self) -> &mut UnknownFields[src]
fn as_any(&self) -> &dyn Any[src]
fn as_any_mut(&mut self) -> &mut dyn Any[src]
fn into_any(self: Box<Self>) -> Box<dyn Any>[src]
fn descriptor(&self) -> &'static MessageDescriptor[src]
fn new() -> PeerInfo[src]
fn descriptor_static() -> &'static MessageDescriptor[src]
fn default_instance() -> &'static PeerInfo[src]
fn write_to(&self, os: &mut CodedOutputStream) -> Result<(), ProtobufError>[src]
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream
) -> Result<(), ProtobufError>[src]
&self,
os: &mut CodedOutputStream
) -> Result<(), ProtobufError>
fn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8>
) -> Result<(), ProtobufError>[src]
&self,
vec: &mut Vec<u8>
) -> Result<(), ProtobufError>
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>[src]
fn check_initialized(&self) -> Result<(), ProtobufError>[src]
fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>[src]
fn write_to_vec(&self, v: &mut Vec<u8>) -> Result<(), ProtobufError>[src]
fn write_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>[src]
fn write_length_delimited_to_writer(
&self,
w: &mut dyn Write
) -> Result<(), ProtobufError>[src]
&self,
w: &mut dyn Write
) -> Result<(), ProtobufError>
fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>[src]
fn type_id(&self) -> TypeId[src]
impl Clear for PeerInfo[src]
impl ProtobufValue for PeerInfo[src]
fn as_ref(&self) -> ProtobufValueRef[src]
fn as_any(&self) -> &(dyn Any + 'static)[src]
fn is_non_zero(&self) -> bool[src]
fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]
Auto Trait Implementations
impl Send for PeerInfo
impl Sync for PeerInfo
impl Unpin for PeerInfo
impl UnwindSafe for PeerInfo
impl RefUnwindSafe for PeerInfo
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,