pub struct SessionInfoProto {
pub transport: i32,
pub node_id: String,
pub session_id: String,
pub tenant_id: i64,
pub device_id: i64,
pub product_id: i64,
pub device_name: String,
pub device_type: String,
}Fields§
§transport: i32§node_id: String§session_id: String§tenant_id: i64§device_id: i64§product_id: i64§device_name: String§device_type: StringImplementations§
Source§impl SessionInfoProto
impl SessionInfoProto
Sourcepub fn transport(&self) -> TransportType
pub fn transport(&self) -> TransportType
Returns the enum value of transport, or the default if the field is set to an invalid enum value.
Sourcepub fn set_transport(&mut self, value: TransportType)
pub fn set_transport(&mut self, value: TransportType)
Sets transport to the provided enum value.
Trait Implementations§
Source§impl Clone for SessionInfoProto
impl Clone for SessionInfoProto
Source§fn clone(&self) -> SessionInfoProto
fn clone(&self) -> SessionInfoProto
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 SessionInfoProto
impl Debug for SessionInfoProto
Source§impl Default for SessionInfoProto
impl Default for SessionInfoProto
Source§impl Message for SessionInfoProto
impl Message for SessionInfoProto
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for SessionInfoProto
impl PartialEq for SessionInfoProto
impl StructuralPartialEq for SessionInfoProto
Auto Trait Implementations§
impl Freeze for SessionInfoProto
impl RefUnwindSafe for SessionInfoProto
impl Send for SessionInfoProto
impl Sync for SessionInfoProto
impl Unpin for SessionInfoProto
impl UnwindSafe for SessionInfoProto
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