pub struct PortIdentity {
pub clock_identity: ClockIdentity,
pub port_number: u16,
}Expand description
Identity of a single port of a PTP instance
Fields§
§clock_identity: ClockIdentityIdentity of the clock this port is part of
port_number: u16Index of the port (1-based).
Implementations§
Trait Implementations§
Source§impl Clone for PortIdentity
impl Clone for PortIdentity
impl Copy for PortIdentity
Source§impl Debug for PortIdentity
impl Debug for PortIdentity
Source§impl Default for PortIdentity
impl Default for PortIdentity
Source§impl<'de> Deserialize<'de> for PortIdentity
impl<'de> Deserialize<'de> for PortIdentity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PortIdentity
Source§impl Ord for PortIdentity
impl Ord for PortIdentity
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PortIdentity
impl PartialEq for PortIdentity
Source§impl PartialOrd for PortIdentity
impl PartialOrd for PortIdentity
Source§impl Serialize for PortIdentity
impl Serialize for PortIdentity
impl StructuralPartialEq for PortIdentity
Auto Trait Implementations§
impl Forget for PortIdentity
impl Freeze for PortIdentity
impl Move for PortIdentity
impl RefUnwindSafe for PortIdentity
impl Send for PortIdentity
impl Sync for PortIdentity
impl Unpin for PortIdentity
impl UnsafeUnpin for PortIdentity
impl UnwindSafe for PortIdentity
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