[][src]Struct mumble_protocol::voice::VoiceCodec

pub struct VoiceCodec<EncodeDst: VoicePacketDst, DecodeDst: VoicePacketDst> { /* fields omitted */ }

A Codec implementation that parses a stream of data chunks into VoicePackets.

The encoding and decoding of voice packets depends on their destination. See ServerVoiceCodec and ClientVoiceCodec for the two most reasonable configurations.

Implementations

impl<EncodeDst: VoicePacketDst, DecodeDst: VoicePacketDst> VoiceCodec<EncodeDst, DecodeDst>[src]

pub fn new() -> Self[src]

Creates a new control codec.

Trait Implementations

impl<EncodeDst: Debug + VoicePacketDst, DecodeDst: Debug + VoicePacketDst> Debug for VoiceCodec<EncodeDst, DecodeDst>[src]

impl<EncodeDst: VoicePacketDst, DecodeDst: VoicePacketDst> Decoder for VoiceCodec<EncodeDst, DecodeDst>[src]

type Item = VoicePacket<DecodeDst>

The type of decoded frames.

type Error = Error

The type of unrecoverable frame decoding errors. Read more

impl<EncodeDst: Default + VoicePacketDst, DecodeDst: Default + VoicePacketDst> Default for VoiceCodec<EncodeDst, DecodeDst>[src]

impl<EncodeDst: VoicePacketDst, DecodeDst: VoicePacketDst> Encoder<VoicePacket<EncodeDst>> for VoiceCodec<EncodeDst, DecodeDst>[src]

type Error = Error

The type of encoding errors. Read more

Auto Trait Implementations

impl<EncodeDst, DecodeDst> RefUnwindSafe for VoiceCodec<EncodeDst, DecodeDst> where
    DecodeDst: RefUnwindSafe,
    EncodeDst: RefUnwindSafe
[src]

impl<EncodeDst, DecodeDst> Send for VoiceCodec<EncodeDst, DecodeDst> where
    DecodeDst: Send,
    EncodeDst: Send
[src]

impl<EncodeDst, DecodeDst> Sync for VoiceCodec<EncodeDst, DecodeDst> where
    DecodeDst: Sync,
    EncodeDst: Sync
[src]

impl<EncodeDst, DecodeDst> Unpin for VoiceCodec<EncodeDst, DecodeDst> where
    DecodeDst: Unpin,
    EncodeDst: Unpin
[src]

impl<EncodeDst, DecodeDst> UnwindSafe for VoiceCodec<EncodeDst, DecodeDst> where
    DecodeDst: UnwindSafe,
    EncodeDst: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.