pub struct Reliability {
pub unordered: bool,
pub unreliable: bool,
pub max_packet_life_time: u16,
pub max_retransmits: u16,
}
Fields§
§unordered: bool
§unreliable: bool
§max_packet_life_time: u16
§max_retransmits: u16
Implementations§
Source§impl Reliability
impl Reliability
pub fn unordered(self) -> Reliability
pub fn unreliable(self) -> Reliability
pub fn max_packet_life_time(self, max_packet_life_time: u16) -> Reliability
pub fn max_retransmits(self, max_retransmits: u16) -> Reliability
Trait Implementations§
Source§impl Clone for Reliability
impl Clone for Reliability
Source§fn clone(&self) -> Reliability
fn clone(&self) -> Reliability
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 Debug for Reliability
impl Debug for Reliability
Source§impl Default for Reliability
impl Default for Reliability
Source§fn default() -> Reliability
fn default() -> Reliability
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Reliability
impl RefUnwindSafe for Reliability
impl Send for Reliability
impl Sync for Reliability
impl Unpin for Reliability
impl UnwindSafe for Reliability
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