[][src]Struct mumble_protocol::control::ControlCodec

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

A Codec implementation that parses a stream of data into ControlPackets.

Since VoicePackets can be tunneled over the control channel and their encoding and decoding depends on their destination, the control codec also needs to know the side it's on. See ServerControlCodec and ClientControlCodec for the two most reasonable configurations.

Implementations

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

pub fn new() -> Self[src]

Creates a new control codec.

Trait Implementations

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

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

type Item = ControlPacket<DecodeDst>

The type of decoded frames.

type Error = Error

The type of unrecoverable frame decoding errors. Read more

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

impl<EncodeDst: VoicePacketDst, DecodeDst: VoicePacketDst> Encoder<ControlPacket<EncodeDst>> for ControlCodec<EncodeDst, DecodeDst>[src]

type Error = Error

The type of encoding errors. Read more

Auto Trait Implementations

impl<EncodeDst, DecodeDst> RefUnwindSafe for ControlCodec<EncodeDst, DecodeDst> where
    DecodeDst: RefUnwindSafe,
    EncodeDst: RefUnwindSafe

impl<EncodeDst, DecodeDst> Send for ControlCodec<EncodeDst, DecodeDst> where
    DecodeDst: Send,
    EncodeDst: Send

impl<EncodeDst, DecodeDst> Sync for ControlCodec<EncodeDst, DecodeDst> where
    DecodeDst: Sync,
    EncodeDst: Sync

impl<EncodeDst, DecodeDst> Unpin for ControlCodec<EncodeDst, DecodeDst> where
    DecodeDst: Unpin,
    EncodeDst: Unpin

impl<EncodeDst, DecodeDst> UnwindSafe for ControlCodec<EncodeDst, DecodeDst> where
    DecodeDst: UnwindSafe,
    EncodeDst: UnwindSafe

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.