Struct naia_client_socket::PacketSenderImpl
source · pub struct PacketSenderImpl { /* private fields */ }
Expand description
Handles sending messages to the Server for a given Client Socket
Implementations§
Trait Implementations§
source§impl Clone for PacketSenderImpl
impl Clone for PacketSenderImpl
source§fn clone(&self) -> PacketSenderImpl
fn clone(&self) -> PacketSenderImpl
Returns a copy 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 PacketSender for PacketSenderImpl
impl PacketSender for PacketSenderImpl
source§fn send(&self, payload: &[u8]) -> Result<(), NaiaClientSocketError>
fn send(&self, payload: &[u8]) -> Result<(), NaiaClientSocketError>
Send a Packet to the Server
source§fn server_addr(&self) -> ServerAddr
fn server_addr(&self) -> ServerAddr
Get the Server’s Socket address
Auto Trait Implementations§
impl !RefUnwindSafe for PacketSenderImpl
impl Send for PacketSenderImpl
impl Sync for PacketSenderImpl
impl Unpin for PacketSenderImpl
impl !UnwindSafe for PacketSenderImpl
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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