[][src]Struct hycon_rust::serialization::peer::Peer

pub struct Peer {
    pub host: String,
    pub port: u32,
    pub lastSeen: u64,
    pub failCount: u32,
    pub lastAttempt: u64,
    pub active: bool,
    pub currentQueue: i32,
    pub successCount: u32,
    // some fields omitted
}

Fields

host: Stringport: u32lastSeen: u64failCount: u32lastAttempt: u64active: boolcurrentQueue: i32successCount: u32

Methods

impl Peer[src]

pub fn new() -> Peer[src]

pub fn clear_host(&mut self)[src]

pub fn set_host(&mut self, v: String)[src]

pub fn mut_host(&mut self) -> &mut String[src]

pub fn take_host(&mut self) -> String[src]

pub fn get_host(&self) -> &str[src]

pub fn clear_port(&mut self)[src]

pub fn set_port(&mut self, v: u32)[src]

pub fn get_port(&self) -> u32[src]

pub fn clear_lastSeen(&mut self)[src]

pub fn set_lastSeen(&mut self, v: u64)[src]

pub fn get_lastSeen(&self) -> u64[src]

pub fn clear_failCount(&mut self)[src]

pub fn set_failCount(&mut self, v: u32)[src]

pub fn get_failCount(&self) -> u32[src]

pub fn clear_lastAttempt(&mut self)[src]

pub fn set_lastAttempt(&mut self, v: u64)[src]

pub fn get_lastAttempt(&self) -> u64[src]

pub fn clear_active(&mut self)[src]

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

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

pub fn clear_currentQueue(&mut self)[src]

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

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

pub fn clear_successCount(&mut self)[src]

pub fn set_successCount(&mut self, v: u32)[src]

pub fn get_successCount(&self) -> u32[src]

Trait Implementations

impl Default for Peer[src]

impl Clone for Peer[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<Peer> for Peer[src]

impl Debug for Peer[src]

impl Message for Peer[src]

fn write_to(&self, os: &mut CodedOutputStream) -> Result<(), ProtobufError>

Write the message to the stream. Read more

fn write_length_delimited_to(
    &self,
    os: &mut CodedOutputStream
) -> Result<(), ProtobufError>

Write the message to the stream prepending the message with message length encoded as varint. Read more

fn write_length_delimited_to_vec(
    &self,
    vec: &mut Vec<u8>
) -> Result<(), ProtobufError>

Write the message to the vec, prepend the message with message length encoded as varint. Read more

fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>

Update this message object with fields read from given stream.

fn check_initialized(&self) -> Result<(), ProtobufError>

Check if all required fields of this object are initialized.

fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>

Write the message to the writer.

fn write_to_vec(&self, v: &mut Vec<u8>) -> Result<(), ProtobufError>

Write the message to bytes vec.

fn write_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>

Write the message to bytes vec.

fn write_length_delimited_to_writer(
    &self,
    w: &mut dyn Write
) -> Result<(), ProtobufError>

Write the message to the writer, prepend the message with message length encoded as varint. Read more

fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>

Write the message to the bytes vec, prepend the message with message length encoded as varint. Read more

fn type_id(&self) -> TypeId

Get type id for downcasting.

impl Clear for Peer[src]

impl ProtobufValue for Peer[src]

fn as_any(&self) -> &(dyn Any + 'static)

fn is_non_zero(&self) -> bool

fn as_ref_copy(&self) -> ProtobufValueRef<'static>

Auto Trait Implementations

impl Send for Peer

impl Sync for Peer

Blanket Implementations

impl<T> From for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto 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> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self