[][src]Trait mumble_protocol::voice::VoicePacketDst

pub trait VoicePacketDst: Sealed + Default + PartialEq {
    type SessionId: Debug + Clone + PartialEq;
    fn read_session_id<T: Read + Sized>(
        buf: &mut T
    ) -> Result<Self::SessionId, Error>;
fn write_session_id(buf: &mut BytesMut, session_id: Self::SessionId); }

Sealed trait for indicating voice packet direction.

The only two implementations are Serverbound and Clientbound.

Associated Types

Loading content...

Required methods

fn read_session_id<T: Read + Sized>(
    buf: &mut T
) -> Result<Self::SessionId, Error>

Reads session id of packets traveling in this direction.

fn write_session_id(buf: &mut BytesMut, session_id: Self::SessionId)

Writes session id to packets traveling in this direction.

Loading content...

Implementors

impl VoicePacketDst for Clientbound[src]

type SessionId = u32

impl VoicePacketDst for Serverbound[src]

type SessionId = ()

Loading content...