pub enum MessageType {
Base,
CodecHeader,
WireChunk,
ServerSettings,
Time,
Hello,
StreamTags,
ClientInfo,
Error,
Unknown(u16),
}Expand description
Message type identifiers matching the C++ message_type enum.
Variants§
Base
Base message (type 0), header only.
CodecHeader
Codec header (type 1).
WireChunk
Encoded audio chunk (type 2).
ServerSettings
Server settings (type 3).
Time
Time sync (type 4).
Hello
Client hello (type 5).
StreamTags
Stream tags / metadata (type 6, deprecated).
ClientInfo
Client info (type 7).
Error
Error (type 8).
Unknown(u16)
Unrecognized message type — payload is skipped/ignored.
Implementations§
Trait Implementations§
Source§impl Clone for MessageType
impl Clone for MessageType
Source§fn clone(&self) -> MessageType
fn clone(&self) -> MessageType
Returns a duplicate 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 MessageType
impl Debug for MessageType
Source§impl From<MessageType> for u16
impl From<MessageType> for u16
Source§fn from(mt: MessageType) -> Self
fn from(mt: MessageType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MessageType
impl PartialEq for MessageType
impl Copy for MessageType
impl Eq for MessageType
impl StructuralPartialEq for MessageType
Auto Trait Implementations§
impl Freeze for MessageType
impl RefUnwindSafe for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Unpin for MessageType
impl UnsafeUnpin for MessageType
impl UnwindSafe for MessageType
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