pub struct Handshake { /* private fields */ }Implementations§
Source§impl Handshake
impl Handshake
pub fn new() -> Handshake
pub fn default_instance() -> &'static Handshake
pub fn clear_id(&mut self)
pub fn has_id(&self) -> bool
pub fn set_id(&mut self, v: Vec<u8>)
pub fn mut_id(&mut self) -> &mut Vec<u8> ⓘ
pub fn take_id(&mut self) -> Vec<u8> ⓘ
pub fn get_id(&self) -> &[u8] ⓘ
pub fn clear_live(&mut self)
pub fn has_live(&self) -> bool
pub fn set_live(&mut self, v: bool)
pub fn get_live(&self) -> bool
pub fn clear_userData(&mut self)
pub fn has_userData(&self) -> bool
pub fn set_userData(&mut self, v: Vec<u8>)
pub fn mut_userData(&mut self) -> &mut Vec<u8> ⓘ
pub fn take_userData(&mut self) -> Vec<u8> ⓘ
pub fn get_userData(&self) -> &[u8] ⓘ
pub fn clear_extensions(&mut self)
pub fn set_extensions(&mut self, v: RepeatedField<String>)
pub fn mut_extensions(&mut self) -> &mut RepeatedField<String>
pub fn take_extensions(&mut self) -> RepeatedField<String>
pub fn get_extensions(&self) -> &[String]
Trait Implementations§
Source§impl Message for Handshake
impl Message for Handshake
fn is_initialized(&self) -> bool
fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> ProtobufResult<()>
fn compute_size(&self) -> u32
fn write_to_with_cached_sizes( &self, os: &mut CodedOutputStream<'_>, ) -> ProtobufResult<()>
fn get_cached_size(&self) -> u32
fn get_unknown_fields(&self) -> &UnknownFields
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
fn as_any(&self) -> &dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
fn into_any(self: Box<Self>) -> Box<dyn Any>
fn descriptor(&self) -> &'static MessageDescriptor
fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), ProtobufError>
fn write_length_delimited_to( &self, os: &mut CodedOutputStream<'_>, ) -> Result<(), ProtobufError>
fn write_length_delimited_to_vec( &self, vec: &mut Vec<u8>, ) -> Result<(), ProtobufError>
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
fn check_initialized(&self) -> Result<(), ProtobufError>
fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>
fn write_to_vec(&self, v: &mut Vec<u8>) -> Result<(), ProtobufError>
fn write_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
fn write_length_delimited_to_writer( &self, w: &mut dyn Write, ) -> Result<(), ProtobufError>
fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
fn type_id(&self) -> TypeId
Source§impl MessageStatic for Handshake
impl MessageStatic for Handshake
fn new() -> Handshake
fn descriptor_static(_: Option<Handshake>) -> &'static MessageDescriptor
Source§impl ProtobufValue for Handshake
impl ProtobufValue for Handshake
fn as_ref(&self) -> ProtobufValueRef<'_>
fn as_any(&self) -> &(dyn Any + 'static)
fn is_non_zero(&self) -> bool
fn as_ref_copy(&self) -> ProtobufValueRef<'static>
impl StructuralPartialEq for Handshake
impl Sync for Handshake
Auto Trait Implementations§
impl !Freeze for Handshake
impl !RefUnwindSafe for Handshake
impl Send for Handshake
impl Unpin for Handshake
impl UnwindSafe for Handshake
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