[−][src]Struct hycon_rust::serialization::peer::Peer
Fields
host: String
port: u32
lastSeen: u64
failCount: u32
lastAttempt: u64
active: bool
currentQueue: i32
successCount: 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(&self) -> 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 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() -> Peer
[src]
fn descriptor_static() -> &'static MessageDescriptor
[src]
fn default_instance() -> &'static 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>
&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>
&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>
&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_ref(&self) -> ProtobufValueRef
[src]
fn as_any(&self) -> &(dyn Any + 'static)
fn is_non_zero(&self) -> bool
fn as_ref_copy(&self) -> ProtobufValueRef<'static>
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
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 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto 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> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> Erased for T
impl<T> Same for T
type Output = T
Should always be Self