pub struct ProtobufMessage {
pub message: WireMessage,
pub field_number: u8,
}
Fields§
§message: WireMessage
§field_number: u8
Implementations§
source§impl ProtobufMessage
impl ProtobufMessage
pub fn many_from_vec(raw_data: &Vec<u8>) -> Result<Vec<Self>, FromReadableErr>
pub fn from_readable( reader: impl Read ) -> Result<ProtobufMessage, FromReadableErr>
Trait Implementations§
source§impl Clone for ProtobufMessage
impl Clone for ProtobufMessage
source§fn clone(&self) -> ProtobufMessage
fn clone(&self) -> ProtobufMessage
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 ProtobufMessage
impl Debug for ProtobufMessage
source§impl Ord for ProtobufMessage
impl Ord for ProtobufMessage
source§fn cmp(&self, other: &ProtobufMessage) -> Ordering
fn cmp(&self, other: &ProtobufMessage) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ProtobufMessage> for ProtobufMessage
impl PartialEq<ProtobufMessage> for ProtobufMessage
source§fn eq(&self, other: &ProtobufMessage) -> bool
fn eq(&self, other: &ProtobufMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ProtobufMessage> for ProtobufMessage
impl PartialOrd<ProtobufMessage> for ProtobufMessage
source§fn partial_cmp(&self, other: &ProtobufMessage) -> Option<Ordering>
fn partial_cmp(&self, other: &ProtobufMessage) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more