pub struct UserStats {Show 20 fields
pub session: Option<u32>,
pub stats_only: Option<bool>,
pub certificates: Vec<Vec<u8>>,
pub from_client: MessageField<Stats>,
pub from_server: MessageField<Stats>,
pub udp_packets: Option<u32>,
pub tcp_packets: Option<u32>,
pub udp_ping_avg: Option<f32>,
pub udp_ping_var: Option<f32>,
pub tcp_ping_avg: Option<f32>,
pub tcp_ping_var: Option<f32>,
pub version: MessageField<Version>,
pub celt_versions: Vec<i32>,
pub address: Option<Vec<u8>>,
pub bandwidth: Option<u32>,
pub onlinesecs: Option<u32>,
pub idlesecs: Option<u32>,
pub strong_certificate: Option<bool>,
pub opus: Option<bool>,
pub special_fields: SpecialFields,
}Fields§
§session: Option<u32>§stats_only: Option<bool>§certificates: Vec<Vec<u8>>§from_client: MessageField<Stats>§from_server: MessageField<Stats>§udp_packets: Option<u32>§tcp_packets: Option<u32>§udp_ping_avg: Option<f32>§udp_ping_var: Option<f32>§tcp_ping_avg: Option<f32>§tcp_ping_var: Option<f32>§version: MessageField<Version>§celt_versions: Vec<i32>§address: Option<Vec<u8>>§bandwidth: Option<u32>§onlinesecs: Option<u32>§idlesecs: Option<u32>§strong_certificate: Option<bool>§opus: Option<bool>§special_fields: SpecialFieldsImplementations§
Source§impl UserStats
impl UserStats
pub fn new() -> UserStats
pub fn session(&self) -> u32
pub fn clear_session(&mut self)
pub fn has_session(&self) -> bool
pub fn set_session(&mut self, v: u32)
pub fn stats_only(&self) -> bool
pub fn clear_stats_only(&mut self)
pub fn has_stats_only(&self) -> bool
pub fn set_stats_only(&mut self, v: bool)
pub fn certificates(&self) -> &[Vec<u8>]
pub fn clear_certificates(&mut self)
pub fn set_certificates(&mut self, v: Vec<Vec<u8>>)
pub fn mut_certificates(&mut self) -> &mut Vec<Vec<u8>>
pub fn take_certificates(&mut self) -> Vec<Vec<u8>>
pub fn from_client(&self) -> &Stats
pub fn clear_from_client(&mut self)
pub fn has_from_client(&self) -> bool
pub fn set_from_client(&mut self, v: Stats)
pub fn mut_from_client(&mut self) -> &mut Stats
pub fn take_from_client(&mut self) -> Stats
pub fn from_server(&self) -> &Stats
pub fn clear_from_server(&mut self)
pub fn has_from_server(&self) -> bool
pub fn set_from_server(&mut self, v: Stats)
pub fn mut_from_server(&mut self) -> &mut Stats
pub fn take_from_server(&mut self) -> Stats
pub fn udp_packets(&self) -> u32
pub fn clear_udp_packets(&mut self)
pub fn has_udp_packets(&self) -> bool
pub fn set_udp_packets(&mut self, v: u32)
pub fn tcp_packets(&self) -> u32
pub fn clear_tcp_packets(&mut self)
pub fn has_tcp_packets(&self) -> bool
pub fn set_tcp_packets(&mut self, v: u32)
pub fn udp_ping_avg(&self) -> f32
pub fn clear_udp_ping_avg(&mut self)
pub fn has_udp_ping_avg(&self) -> bool
pub fn set_udp_ping_avg(&mut self, v: f32)
pub fn udp_ping_var(&self) -> f32
pub fn clear_udp_ping_var(&mut self)
pub fn has_udp_ping_var(&self) -> bool
pub fn set_udp_ping_var(&mut self, v: f32)
pub fn tcp_ping_avg(&self) -> f32
pub fn clear_tcp_ping_avg(&mut self)
pub fn has_tcp_ping_avg(&self) -> bool
pub fn set_tcp_ping_avg(&mut self, v: f32)
pub fn tcp_ping_var(&self) -> f32
pub fn clear_tcp_ping_var(&mut self)
pub fn has_tcp_ping_var(&self) -> bool
pub fn set_tcp_ping_var(&mut self, v: f32)
pub fn version(&self) -> &Version
pub fn clear_version(&mut self)
pub fn has_version(&self) -> bool
pub fn set_version(&mut self, v: Version)
pub fn mut_version(&mut self) -> &mut Version
pub fn take_version(&mut self) -> Version
pub fn celt_versions(&self) -> &[i32]
pub fn clear_celt_versions(&mut self)
pub fn set_celt_versions(&mut self, v: Vec<i32>)
pub fn mut_celt_versions(&mut self) -> &mut Vec<i32>
pub fn take_celt_versions(&mut self) -> Vec<i32>
pub fn address(&self) -> &[u8] ⓘ
pub fn clear_address(&mut self)
pub fn has_address(&self) -> bool
pub fn set_address(&mut self, v: Vec<u8>)
pub fn mut_address(&mut self) -> &mut Vec<u8> ⓘ
pub fn take_address(&mut self) -> Vec<u8> ⓘ
pub fn bandwidth(&self) -> u32
pub fn clear_bandwidth(&mut self)
pub fn has_bandwidth(&self) -> bool
pub fn set_bandwidth(&mut self, v: u32)
pub fn onlinesecs(&self) -> u32
pub fn clear_onlinesecs(&mut self)
pub fn has_onlinesecs(&self) -> bool
pub fn set_onlinesecs(&mut self, v: u32)
pub fn idlesecs(&self) -> u32
pub fn clear_idlesecs(&mut self)
pub fn has_idlesecs(&self) -> bool
pub fn set_idlesecs(&mut self, v: u32)
pub fn strong_certificate(&self) -> bool
pub fn clear_strong_certificate(&mut self)
pub fn has_strong_certificate(&self) -> bool
pub fn set_strong_certificate(&mut self, v: bool)
pub fn opus(&self) -> bool
pub fn clear_opus(&mut self)
pub fn has_opus(&self) -> bool
pub fn set_opus(&mut self, v: bool)
Trait Implementations§
Source§impl<Dst: VoicePacketDst> From<UserStats> for ControlPacket<Dst>
impl<Dst: VoicePacketDst> From<UserStats> for ControlPacket<Dst>
Source§impl From<UserStats> for RawControlPacket
impl From<UserStats> for RawControlPacket
Source§impl Message for UserStats
impl Message for UserStats
Source§fn is_initialized(&self) -> bool
fn is_initialized(&self) -> bool
True iff all required fields are initialized.
Always returns
true for protobuf 3.Source§fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> Result<()>
fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> Result<()>
Update this message object with fields read from given stream.
Source§fn compute_size(&self) -> u64
fn compute_size(&self) -> u64
Compute and cache size of this message and all nested messages. Read more
Source§fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream<'_>,
) -> Result<()>
fn write_to_with_cached_sizes( &self, os: &mut CodedOutputStream<'_>, ) -> Result<()>
Write message to the stream. Read more
Source§fn special_fields(&self) -> &SpecialFields
fn special_fields(&self) -> &SpecialFields
Special fields (unknown fields and cached size).
Source§fn mut_special_fields(&mut self) -> &mut SpecialFields
fn mut_special_fields(&mut self) -> &mut SpecialFields
Special fields (unknown fields and cached size).
Source§fn default_instance() -> &'static UserStats
fn default_instance() -> &'static UserStats
Return a pointer to default immutable message with static lifetime. Read more
Source§fn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, Error>
fn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, Error>
Parse message from stream.
Source§fn cached_size(&self) -> u32
fn cached_size(&self) -> u32
Get size previously computed by
compute_size. Read moreSource§fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), Error>
fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), Error>
Write the message to the stream. Read more
Source§fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>,
) -> Result<(), Error>
fn write_length_delimited_to( &self, os: &mut CodedOutputStream<'_>, ) -> Result<(), Error>
Write the message to the stream prepending the message with message length
encoded as varint.
Source§fn write_length_delimited_to_vec(&self, vec: &mut Vec<u8>) -> Result<(), Error>
fn write_length_delimited_to_vec(&self, vec: &mut Vec<u8>) -> Result<(), Error>
Write the message to the vec, prepend the message with message length
encoded as varint.
Source§fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), Error>
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), Error>
Update this message object with fields read from given stream.
Source§fn parse_from_reader(reader: &mut dyn Read) -> Result<Self, Error>
fn parse_from_reader(reader: &mut dyn Read) -> Result<Self, Error>
Parse message from reader.
Parse stops on EOF or when error encountered.
Source§fn check_initialized(&self) -> Result<(), Error>
fn check_initialized(&self) -> Result<(), Error>
Check if all required fields of this object are initialized.
Source§fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), Error>
fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), Error>
Write the message to the writer.
Source§fn write_length_delimited_to_writer(
&self,
w: &mut dyn Write,
) -> Result<(), Error>
fn write_length_delimited_to_writer( &self, w: &mut dyn Write, ) -> Result<(), Error>
Write the message to the writer, prepend the message with message length
encoded as varint.
Source§fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, Error>
fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, Error>
Write the message to the bytes vec, prepend the message with message length
encoded as varint.
Source§fn unknown_fields(&self) -> &UnknownFields
fn unknown_fields(&self) -> &UnknownFields
Get a reference to unknown fields.
Source§fn mut_unknown_fields(&mut self) -> &mut UnknownFields
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
Get a mutable reference to unknown fields.
Source§impl MessageFull for UserStats
impl MessageFull for UserStats
Source§fn descriptor() -> MessageDescriptor
fn descriptor() -> MessageDescriptor
Get message descriptor for message type. Read more
Source§fn reflect_eq(&self, other: &Self, mode: &ReflectEqMode) -> bool
fn reflect_eq(&self, other: &Self, mode: &ReflectEqMode) -> bool
Reflective equality. Read more
Source§impl ProtobufValue for UserStats
impl ProtobufValue for UserStats
Source§type RuntimeType = RuntimeTypeMessage<UserStats>
type RuntimeType = RuntimeTypeMessage<UserStats>
Actual implementation of type properties.
Source§impl TryFrom<RawControlPacket> for UserStats
impl TryFrom<RawControlPacket> for UserStats
impl StructuralPartialEq for UserStats
Auto Trait Implementations§
impl !Freeze for UserStats
impl RefUnwindSafe for UserStats
impl Send for UserStats
impl Sync for UserStats
impl Unpin for UserStats
impl UnwindSafe for UserStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<M> MessageDyn for Mwhere
M: MessageFull,
impl<M> MessageDyn for Mwhere
M: MessageFull,
Source§fn descriptor_dyn(&self) -> MessageDescriptor
fn descriptor_dyn(&self) -> MessageDescriptor
Message descriptor for this message, used for reflection.
Source§fn merge_from_dyn(&mut self, is: &mut CodedInputStream<'_>) -> Result<(), Error>
fn merge_from_dyn(&mut self, is: &mut CodedInputStream<'_>) -> Result<(), Error>
Update this message fields with contents of given stream.
Source§fn write_to_with_cached_sizes_dyn(
&self,
os: &mut CodedOutputStream<'_>,
) -> Result<(), Error>
fn write_to_with_cached_sizes_dyn( &self, os: &mut CodedOutputStream<'_>, ) -> Result<(), Error>
Write the message.
Source§fn compute_size_dyn(&self) -> u64
fn compute_size_dyn(&self) -> u64
Compute (and cache) the message size.
Source§fn is_initialized_dyn(&self) -> bool
fn is_initialized_dyn(&self) -> bool
True iff all required fields are initialized.
Always returns
true for protobuf 3.Source§fn special_fields_dyn(&self) -> &SpecialFields
fn special_fields_dyn(&self) -> &SpecialFields
Get a reference to special fields.
Source§fn mut_special_fields_dyn(&mut self) -> &mut SpecialFields
fn mut_special_fields_dyn(&mut self) -> &mut SpecialFields
Get a mutable reference to special fields.