pub struct Serverbound;Expand description
Zero-sized struct indicating server-bound packet direction.
Trait Implementations§
Source§impl Clone for Serverbound
impl Clone for Serverbound
Source§fn clone(&self) -> Serverbound
fn clone(&self) -> Serverbound
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Serverbound
impl Debug for Serverbound
Source§impl Default for Serverbound
impl Default for Serverbound
Source§fn default() -> Serverbound
fn default() -> Serverbound
Returns the “default value” for a type. Read more
Source§impl PartialEq for Serverbound
impl PartialEq for Serverbound
Source§impl VoicePacketDst for Serverbound
impl VoicePacketDst for Serverbound
Source§type SessionId = ()
type SessionId = ()
Type of VoicePacket::Audio::session_id.
Source§fn read_session_id<T: Read + Sized>(
_buf: &mut T,
) -> Result<Self::SessionId, Error>
fn read_session_id<T: Read + Sized>( _buf: &mut T, ) -> Result<Self::SessionId, Error>
Reads session id of packets traveling in this direction.
Source§fn write_session_id(_buf: &mut BytesMut, _session_id: Self::SessionId)
fn write_session_id(_buf: &mut BytesMut, _session_id: Self::SessionId)
Writes session id to packets traveling in this direction.
impl StructuralPartialEq for Serverbound
Auto Trait Implementations§
impl Freeze for Serverbound
impl RefUnwindSafe for Serverbound
impl Send for Serverbound
impl Sync for Serverbound
impl Unpin for Serverbound
impl UnwindSafe for Serverbound
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more