pub struct DerivableConfig {
pub default_buffer_length: usize,
pub primary: bool,
pub watch_rx_leases: bool,
}
Expand description
Basic session configuration that can be given to DeviceInfo
to generate
Config
s.
Fields§
§default_buffer_length: usize
The desired default buffer length for the session.
primary: bool
Create a primary session.
watch_rx_leases: bool
Enable rx lease watching.
Implementations§
Source§impl DerivableConfig
impl DerivableConfig
Sourcepub const DEFAULT_BUFFER_LENGTH: usize = 2_048usize
pub const DEFAULT_BUFFER_LENGTH: usize = 2_048usize
A sensibly common default buffer length to be used in
DerivableConfig
. Provided to ease test writing.
Chosen to be the next power of two after the default Ethernet MTU.
This is the value of the buffer length in the Default
impl.
Trait Implementations§
Source§impl Clone for DerivableConfig
impl Clone for DerivableConfig
Source§fn clone(&self) -> DerivableConfig
fn clone(&self) -> DerivableConfig
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 DerivableConfig
impl Debug for DerivableConfig
Source§impl Default for DerivableConfig
impl Default for DerivableConfig
impl Copy for DerivableConfig
Auto Trait Implementations§
impl Freeze for DerivableConfig
impl RefUnwindSafe for DerivableConfig
impl Send for DerivableConfig
impl Sync for DerivableConfig
impl Unpin for DerivableConfig
impl UnwindSafe for DerivableConfig
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)