[−][src]Trait mumble_protocol::voice::VoicePacketDst
Sealed trait for indicating voice packet direction.
The only two implementations are Serverbound and Clientbound.
Associated Types
type SessionId: Debug + Clone + PartialEq
Type of VoicePacket::Audio::session_id.
Required methods
fn read_session_id<T: Read + Sized>(
buf: &mut T
) -> Result<Self::SessionId, Error>
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.
Implementors
impl VoicePacketDst for Clientbound
[src]
type SessionId = u32
fn read_session_id<T: Read + Sized>(
buf: &mut T
) -> Result<Self::SessionId, Error>
[src]
buf: &mut T
) -> Result<Self::SessionId, Error>