[−][src]Enum mumble_protocol::voice::VoicePacket
A packet transmitted via Mumble's voice channel.
Variants
Ping packets contain opaque timestamp-like values which should simply be echoed back.
Fields of Ping
timestamp: u64
Opaque timestamp-like value. Unless this is the echo, no assumptions about it should be made.
Packet containing audio data.
Fields of Audio
_dst: PhantomData<Dst>
Destination. Required due to encoding differences depending on packet flow direction.
target: u8
The target.
Only values 0-31 are valid (when serialized, this field is 5-bits long).
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
position_info: Option<Bytes>
Positional audio information.
Usually [f32; 3]
but may contain additional or different data if all clients
receiving this packet can deal with such values (e.g. games with builtin Mumble
client may use this field to transmit additional data to other game clients).
Trait Implementations
impl<Dst: Clone + VoicePacketDst> Clone for VoicePacket<Dst> where
Dst::SessionId: Clone,
[src]
Dst::SessionId: Clone,
pub fn clone(&self) -> VoicePacket<Dst>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<Dst: Debug + VoicePacketDst> Debug for VoicePacket<Dst> where
Dst::SessionId: Debug,
[src]
Dst::SessionId: Debug,
impl<EncodeDst: VoicePacketDst, DecodeDst: VoicePacketDst> Encoder<VoicePacket<EncodeDst>> for CryptState<EncodeDst, DecodeDst>
[src]
type Error = Error
The type of encoding errors. Read more
pub fn encode(
&mut self,
item: VoicePacket<EncodeDst>,
dst: &mut BytesMut
) -> Result<(), Self::Error>
[src]
&mut self,
item: VoicePacket<EncodeDst>,
dst: &mut BytesMut
) -> Result<(), Self::Error>
impl<EncodeDst: VoicePacketDst, DecodeDst: VoicePacketDst> Encoder<VoicePacket<EncodeDst>> for VoiceCodec<EncodeDst, DecodeDst>
[src]
type Error = Error
The type of encoding errors. Read more
pub fn encode(
&mut self,
item: VoicePacket<EncodeDst>,
dst: &mut BytesMut
) -> Result<(), Self::Error>
[src]
&mut self,
item: VoicePacket<EncodeDst>,
dst: &mut BytesMut
) -> Result<(), Self::Error>
impl<Dst: VoicePacketDst> From<VoicePacket<Dst>> for RawControlPacket
[src]
pub fn from(msg: VoicePacket<Dst>) -> Self
[src]
impl<Dst: VoicePacketDst> From<VoicePacket<Dst>> for ControlPacket<Dst>
[src]
pub fn from(inner: VoicePacket<Dst>) -> Self
[src]
impl<Dst: PartialEq + VoicePacketDst> PartialEq<VoicePacket<Dst>> for VoicePacket<Dst> where
Dst::SessionId: PartialEq,
[src]
Dst::SessionId: PartialEq,
pub fn eq(&self, other: &VoicePacket<Dst>) -> bool
[src]
pub fn ne(&self, other: &VoicePacket<Dst>) -> bool
[src]
impl<Dst: VoicePacketDst> StructuralPartialEq for VoicePacket<Dst>
[src]
impl<Dst: VoicePacketDst> TryFrom<Bytes> for VoicePacket<Dst>
[src]
type Error = Error
The type returned in the event of a conversion error.
pub fn try_from(bytes: Bytes) -> Result<Self, Self::Error>
[src]
impl<Dst: VoicePacketDst> TryFrom<RawControlPacket> for VoicePacket<Dst>
[src]
Auto Trait Implementations
impl<Dst> RefUnwindSafe for VoicePacket<Dst> where
Dst: RefUnwindSafe,
<Dst as VoicePacketDst>::SessionId: RefUnwindSafe,
[src]
Dst: RefUnwindSafe,
<Dst as VoicePacketDst>::SessionId: RefUnwindSafe,
impl<Dst> Send for VoicePacket<Dst> where
Dst: Send,
<Dst as VoicePacketDst>::SessionId: Send,
[src]
Dst: Send,
<Dst as VoicePacketDst>::SessionId: Send,
impl<Dst> Sync for VoicePacket<Dst> where
Dst: Sync,
<Dst as VoicePacketDst>::SessionId: Sync,
[src]
Dst: Sync,
<Dst as VoicePacketDst>::SessionId: Sync,
impl<Dst> Unpin for VoicePacket<Dst> where
Dst: Unpin,
<Dst as VoicePacketDst>::SessionId: Unpin,
[src]
Dst: Unpin,
<Dst as VoicePacketDst>::SessionId: Unpin,
impl<Dst> UnwindSafe for VoicePacket<Dst> where
Dst: UnwindSafe,
<Dst as VoicePacketDst>::SessionId: UnwindSafe,
[src]
Dst: UnwindSafe,
<Dst as VoicePacketDst>::SessionId: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,