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