#[non_exhaustive]pub struct NetBuilder {
pub dev_addr: Option<MacAddr6>,
pub host_addr: Option<MacAddr6>,
pub qmult: Option<u32>,
pub interface_class: Option<Class>,
/* private fields */
}
Expand description
Builder for Communication Device Class (CDC) network functions.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.dev_addr: Option<MacAddr6>
MAC address of device’s end of this Ethernet over USB link.
host_addr: Option<MacAddr6>
MAC address of host’s end of this Ethernet over USB link.
qmult: Option<u32>
Queue length multiplier for high and super speed.
interface_class: Option<Class>
For RNDIS only: interface class.
Implementations§
Trait Implementations§
Source§impl Clone for NetBuilder
impl Clone for NetBuilder
Source§fn clone(&self) -> NetBuilder
fn clone(&self) -> NetBuilder
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 moreAuto Trait Implementations§
impl Freeze for NetBuilder
impl RefUnwindSafe for NetBuilder
impl Send for NetBuilder
impl Sync for NetBuilder
impl Unpin for NetBuilder
impl UnwindSafe for NetBuilder
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