#[repr(C)]pub struct TachyonConfig {
pub use_identity: u32,
pub drop_packet_chance: u64,
pub drop_reliable_only: u32,
pub receive_window_size: u16,
pub nack_redundancy: u32,
}Fields§
§use_identity: u32§drop_packet_chance: u64§drop_reliable_only: u32§receive_window_size: u16§nack_redundancy: u32Implementations§
Source§impl TachyonConfig
impl TachyonConfig
pub fn default() -> Self
pub fn get_receive_window_size(&self) -> u16
Trait Implementations§
Source§impl Clone for TachyonConfig
impl Clone for TachyonConfig
Source§fn clone(&self) -> TachyonConfig
fn clone(&self) -> TachyonConfig
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 moreimpl Copy for TachyonConfig
Auto Trait Implementations§
impl Freeze for TachyonConfig
impl RefUnwindSafe for TachyonConfig
impl Send for TachyonConfig
impl Sync for TachyonConfig
impl Unpin for TachyonConfig
impl UnwindSafe for TachyonConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more