pub struct ClockQuality {
pub priority1: u8,
pub clock_class: u8,
pub clock_accuracy: u8,
pub offset_scaled_log_variance: u16,
pub priority2: u8,
}Expand description
The interface’s PTP Instance as the BTCA ranks it (802.1AS-2020 8.6.2), as its AVB_INTERFACE reports it.
Fields§
§priority1: u8§clock_class: u8§clock_accuracy: u8§offset_scaled_log_variance: u16§priority2: u8Implementations§
Source§impl ClockQuality
impl ClockQuality
Sourcepub const NOT_GRANDMASTER_CAPABLE: Self
pub const NOT_GRANDMASTER_CAPABLE: Self
A PTP Instance that is not grandmaster capable (8.6.2.1, 8.6.2.2).
Sourcepub const fn grandmaster_capable(priority1: u8) -> Self
pub const fn grandmaster_capable(priority1: u8) -> Self
A grandmaster capable one of priority1, its clock otherwise
unknown (8.6.2.2 to 8.6.2.5). Milan asks 248 of a talker
(4.2.6.2.1).
Sourcepub const fn of_priority1(priority1: u8) -> Self
pub const fn of_priority1(priority1: u8) -> Self
Of a PTP Instance of priority1: grandmaster capable below 255.
pub const fn is_grandmaster_capable(&self) -> bool
Trait Implementations§
Source§impl Clone for ClockQuality
impl Clone for ClockQuality
impl Copy for ClockQuality
Source§impl Debug for ClockQuality
impl Debug for ClockQuality
impl Eq for ClockQuality
Source§impl PartialEq for ClockQuality
impl PartialEq for ClockQuality
impl StructuralPartialEq for ClockQuality
Auto Trait Implementations§
impl Forget for ClockQuality
impl Freeze for ClockQuality
impl Move for ClockQuality
impl RefUnwindSafe for ClockQuality
impl Send for ClockQuality
impl Sync for ClockQuality
impl Unpin for ClockQuality
impl UnsafeUnpin for ClockQuality
impl UnwindSafe for ClockQuality
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