pub struct NetpacketFlags { /* private fields */ }Implementations§
Source§impl NetpacketFlags
impl NetpacketFlags
pub const fn unreliable() -> Self
pub const fn reliable() -> Self
pub const fn unsequenced() -> Self
pub const fn with_flush_hint(self, flush: bool) -> Self
pub const fn delivery(self) -> NetpacketDelivery
pub const fn flush_hint(self) -> bool
pub const fn as_raw(self) -> i32
Trait Implementations§
Source§impl Clone for NetpacketFlags
impl Clone for NetpacketFlags
Source§fn clone(&self) -> NetpacketFlags
fn clone(&self) -> NetpacketFlags
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 NetpacketFlags
impl Debug for NetpacketFlags
Source§impl Default for NetpacketFlags
impl Default for NetpacketFlags
Source§fn default() -> NetpacketFlags
fn default() -> NetpacketFlags
Returns the “default value” for a type. Read more
Source§impl Hash for NetpacketFlags
impl Hash for NetpacketFlags
Source§impl PartialEq for NetpacketFlags
impl PartialEq for NetpacketFlags
Source§fn eq(&self, other: &NetpacketFlags) -> bool
fn eq(&self, other: &NetpacketFlags) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for NetpacketFlags
impl Eq for NetpacketFlags
impl StructuralPartialEq for NetpacketFlags
Auto Trait Implementations§
impl Freeze for NetpacketFlags
impl RefUnwindSafe for NetpacketFlags
impl Send for NetpacketFlags
impl Sync for NetpacketFlags
impl Unpin for NetpacketFlags
impl UnsafeUnpin for NetpacketFlags
impl UnwindSafe for NetpacketFlags
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