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 for ProtobufMessage
impl PartialEq for ProtobufMessage
Source§impl PartialOrd for ProtobufMessage
impl PartialOrd for ProtobufMessage
impl Eq for ProtobufMessage
impl StructuralPartialEq for ProtobufMessage
Auto Trait Implementations§
impl Freeze for ProtobufMessage
impl RefUnwindSafe for ProtobufMessage
impl Send for ProtobufMessage
impl Sync for ProtobufMessage
impl Unpin for ProtobufMessage
impl UnwindSafe for ProtobufMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more