pub struct Modem(/* private fields */);
Expand description
A network card.
Implementations§
Source§impl Modem
impl Modem
Sourcepub fn new(address: Address) -> Self
pub fn new(address: Address) -> Self
Creates a wrapper around a network card.
The address
parameter is the address of the network card. It is not checked for
correctness at this time because network topology could change after this function returns;
as such, each usage of the value may fail instead.
Trait Implementations§
Source§impl Ord for Modem
impl Ord for Modem
Source§impl PartialOrd for Modem
impl PartialOrd for Modem
impl Copy for Modem
impl Eq for Modem
impl StructuralPartialEq for Modem
Auto Trait Implementations§
impl Freeze for Modem
impl RefUnwindSafe for Modem
impl Send for Modem
impl Sync for Modem
impl Unpin for Modem
impl UnwindSafe for Modem
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