#[non_exhaustive]pub enum Duplex {
Half,
Full,
}Expand description
Ethernet duplex mode.
Marked #[non_exhaustive] for symmetry with Speed — downstream
match arms must include a wildcard so a future variant can land
in a minor release.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
impl Copy for Duplex
impl Eq for Duplex
impl StructuralPartialEq for Duplex
Auto Trait Implementations§
impl Freeze for Duplex
impl RefUnwindSafe for Duplex
impl Send for Duplex
impl Sync for Duplex
impl Unpin for Duplex
impl UnsafeUnpin for Duplex
impl UnwindSafe for Duplex
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