pub struct NetpacketSession { /* private fields */ }Implementations§
Source§impl NetpacketSession
impl NetpacketSession
pub const fn client_id(self) -> NetplayClientId
pub const fn can_poll_receive(self) -> bool
pub fn send(self, target: NetpacketTarget, flags: NetpacketFlags, data: &[u8])
pub fn flush(self, target: NetpacketTarget)
pub fn poll_receive(self) -> bool
Trait Implementations§
Source§impl Clone for NetpacketSession
impl Clone for NetpacketSession
Source§fn clone(&self) -> NetpacketSession
fn clone(&self) -> NetpacketSession
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NetpacketSession
impl Debug for NetpacketSession
impl Copy for NetpacketSession
Auto Trait Implementations§
impl Freeze for NetpacketSession
impl RefUnwindSafe for NetpacketSession
impl Send for NetpacketSession
impl Sync for NetpacketSession
impl Unpin for NetpacketSession
impl UnsafeUnpin for NetpacketSession
impl UnwindSafe for NetpacketSession
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