pub struct NatOptions {
pub capacity: usize,
pub max_buffered_bytes: usize,
}Expand description
Ограничения очереди событий регистрации.
Fields§
§capacity: usizeСобытий в очереди, 1..=4096.
max_buffered_bytes: usizeСколько байт событий может ждать в очереди; не ноль.
Trait Implementations§
Source§impl Clone for NatOptions
impl Clone for NatOptions
Source§fn clone(&self) -> NatOptions
fn clone(&self) -> NatOptions
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 moreimpl Copy for NatOptions
Source§impl Debug for NatOptions
impl Debug for NatOptions
Auto Trait Implementations§
impl Freeze for NatOptions
impl RefUnwindSafe for NatOptions
impl Send for NatOptions
impl Sync for NatOptions
impl Unpin for NatOptions
impl UnsafeUnpin for NatOptions
impl UnwindSafe for NatOptions
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