#[repr(i32)]pub enum MessageEncoding {
MESSAGE_ENCODING_UNKNOWN = 0,
LENGTH_PREFIXED = 1,
DELIMITED = 2,
}Variants§
Trait Implementations§
Source§impl Clone for MessageEncoding
impl Clone for MessageEncoding
Source§fn clone(&self) -> MessageEncoding
fn clone(&self) -> MessageEncoding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MessageEncoding
impl Debug for MessageEncoding
Source§impl Default for MessageEncoding
impl Default for MessageEncoding
Source§fn default() -> MessageEncoding
fn default() -> MessageEncoding
Returns the “default value” for a type. Read more
Source§impl Enumeration for MessageEncoding
impl Enumeration for MessageEncoding
Source§fn from_i32(value: i32) -> Option<MessageEncoding>
fn from_i32(value: i32) -> Option<MessageEncoding>
Convert from an
i32 wire value to the enum. Read moreSource§fn proto_name(&self) -> &'static str
fn proto_name(&self) -> &'static str
The name of this enum variant as it appears in the
.proto file.Source§fn from_proto_name(name: &str) -> Option<MessageEncoding>
fn from_proto_name(name: &str) -> Option<MessageEncoding>
Look up a variant by its protobuf name string. Read more
Source§fn values() -> &'static [MessageEncoding]
fn values() -> &'static [MessageEncoding]
All known variants of this enum, in proto declaration order. Read more
Source§impl Hash for MessageEncoding
impl Hash for MessageEncoding
Source§impl PartialEq for MessageEncoding
impl PartialEq for MessageEncoding
Source§fn eq(&self, other: &MessageEncoding) -> bool
fn eq(&self, other: &MessageEncoding) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for MessageEncoding
impl Eq for MessageEncoding
impl StructuralPartialEq for MessageEncoding
Auto Trait Implementations§
impl Freeze for MessageEncoding
impl RefUnwindSafe for MessageEncoding
impl Send for MessageEncoding
impl Sync for MessageEncoding
impl Unpin for MessageEncoding
impl UnsafeUnpin for MessageEncoding
impl UnwindSafe for MessageEncoding
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