[−][src]Struct mumble_protocol::control::ControlCodec
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]
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
fn decode(
&mut self,
buf: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
[src]
&mut self,
buf: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
fn decode_eof(
&mut self,
buf: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
[src]
&mut self,
buf: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
fn framed<T>(self, io: T) -> Framed<T, Self> where
T: AsyncRead + AsyncWrite,
[src]
T: AsyncRead + AsyncWrite,
impl<EncodeDst: VoicePacketDst, DecodeDst: VoicePacketDst> Default for ControlCodec<EncodeDst, DecodeDst>
[src]
impl<EncodeDst: VoicePacketDst, DecodeDst: VoicePacketDst> Encoder<ControlPacket<EncodeDst>> for ControlCodec<EncodeDst, DecodeDst>
[src]
Auto Trait Implementations
impl<EncodeDst, DecodeDst> RefUnwindSafe for ControlCodec<EncodeDst, DecodeDst> where
DecodeDst: RefUnwindSafe,
EncodeDst: RefUnwindSafe,
DecodeDst: RefUnwindSafe,
EncodeDst: RefUnwindSafe,
impl<EncodeDst, DecodeDst> Send for ControlCodec<EncodeDst, DecodeDst> where
DecodeDst: Send,
EncodeDst: Send,
DecodeDst: Send,
EncodeDst: Send,
impl<EncodeDst, DecodeDst> Sync for ControlCodec<EncodeDst, DecodeDst> where
DecodeDst: Sync,
EncodeDst: Sync,
DecodeDst: Sync,
EncodeDst: Sync,
impl<EncodeDst, DecodeDst> Unpin for ControlCodec<EncodeDst, DecodeDst> where
DecodeDst: Unpin,
EncodeDst: Unpin,
DecodeDst: Unpin,
EncodeDst: Unpin,
impl<EncodeDst, DecodeDst> UnwindSafe for ControlCodec<EncodeDst, DecodeDst> where
DecodeDst: UnwindSafe,
EncodeDst: UnwindSafe,
DecodeDst: UnwindSafe,
EncodeDst: 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, 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>,