pub enum VoicePacket<Dst: VoicePacketDst> {
Ping {
timestamp: u64,
},
Audio {
_dst: PhantomData<Dst>,
target: u8,
session_id: Dst::SessionId,
seq_num: u64,
payload: VoicePacketPayload,
position_info: Option<Bytes>,
},
}
Expand description
A packet transmitted via Mumble’s voice channel.
Variants§
Ping
Ping packets contain opaque timestamp-like values which should simply be echoed back.
Fields
Audio
Packet containing audio data.
Fields
§
_dst: PhantomData<Dst>
Destination. Required due to encoding differences depending on packet flow direction.
§
session_id: Dst::SessionId
Session ID. Absent when packet is Serverbound.
§
seq_num: u64
Sequence number of the first audio frame in this packet.
Packets may contain multiple frames, so this may increase by more than one per packet.
§
payload: VoicePacketPayload
The actual audio data
Trait Implementations§
Source§impl<Dst: Clone + VoicePacketDst> Clone for VoicePacket<Dst>
impl<Dst: Clone + VoicePacketDst> Clone for VoicePacket<Dst>
Source§fn clone(&self) -> VoicePacket<Dst>
fn clone(&self) -> VoicePacket<Dst>
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<Dst: Debug + VoicePacketDst> Debug for VoicePacket<Dst>
impl<Dst: Debug + VoicePacketDst> Debug for VoicePacket<Dst>
Source§impl<EncodeDst: VoicePacketDst, DecodeDst: VoicePacketDst> Encoder<VoicePacket<EncodeDst>> for CryptState<EncodeDst, DecodeDst>
impl<EncodeDst: VoicePacketDst, DecodeDst: VoicePacketDst> Encoder<VoicePacket<EncodeDst>> for CryptState<EncodeDst, DecodeDst>
Source§impl<EncodeDst: VoicePacketDst, DecodeDst: VoicePacketDst> Encoder<VoicePacket<EncodeDst>> for VoiceCodec<EncodeDst, DecodeDst>
impl<EncodeDst: VoicePacketDst, DecodeDst: VoicePacketDst> Encoder<VoicePacket<EncodeDst>> for VoiceCodec<EncodeDst, DecodeDst>
Source§impl<Dst: VoicePacketDst> From<VoicePacket<Dst>> for ControlPacket<Dst>
impl<Dst: VoicePacketDst> From<VoicePacket<Dst>> for ControlPacket<Dst>
Source§fn from(inner: VoicePacket<Dst>) -> Self
fn from(inner: VoicePacket<Dst>) -> Self
Converts to this type from the input type.
Source§impl<Dst: VoicePacketDst> From<VoicePacket<Dst>> for RawControlPacket
impl<Dst: VoicePacketDst> From<VoicePacket<Dst>> for RawControlPacket
Source§fn from(msg: VoicePacket<Dst>) -> Self
fn from(msg: VoicePacket<Dst>) -> Self
Converts to this type from the input type.
Source§impl<Dst: PartialEq + VoicePacketDst> PartialEq for VoicePacket<Dst>
impl<Dst: PartialEq + VoicePacketDst> PartialEq for VoicePacket<Dst>
Source§impl<Dst: VoicePacketDst> TryFrom<Bytes> for VoicePacket<Dst>
impl<Dst: VoicePacketDst> TryFrom<Bytes> for VoicePacket<Dst>
Source§impl<Dst: VoicePacketDst> TryFrom<RawControlPacket> for VoicePacket<Dst>
impl<Dst: VoicePacketDst> TryFrom<RawControlPacket> for VoicePacket<Dst>
impl<Dst: VoicePacketDst> StructuralPartialEq for VoicePacket<Dst>
Auto Trait Implementations§
impl<Dst> !Freeze for VoicePacket<Dst>
impl<Dst> RefUnwindSafe for VoicePacket<Dst>
impl<Dst> Send for VoicePacket<Dst>
impl<Dst> Sync for VoicePacket<Dst>
impl<Dst> Unpin for VoicePacket<Dst>
impl<Dst> UnwindSafe for VoicePacket<Dst>
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