pub struct LinkState {
pub up: bool,
pub speed: Speed,
pub duplex: Duplex,
}Expand description
Link state reported by the PHY.
Fields§
§up: boolWhether the link is established.
speed: SpeedLink speed (valid if up is true).
duplex: DuplexLink duplex mode (valid if up is true).
Trait Implementations§
impl Copy for LinkState
Available on crate feature
unstable only.impl Eq for LinkState
Available on crate feature
unstable only.impl StructuralPartialEq for LinkState
Available on crate feature
unstable only.Auto Trait Implementations§
impl Freeze for LinkState
impl RefUnwindSafe for LinkState
impl Send for LinkState
impl Sync for LinkState
impl Unpin for LinkState
impl UnsafeUnpin for LinkState
impl UnwindSafe for LinkState
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)