Skip to main content

TlvType

Enum TlvType 

Source
#[repr(u8)]
pub enum TlvType {
Show 27 variants Reserved(u16), Management, ManagementErrorStatus, OrganizationExtension, RequestUnicastTransmission, GrantUnicastTransmission, CancelUnicastTransmission, AcknowledgeCancelUnicastTransmission, PathTrace, AlternateTimeOffsetIndicator, Legacy(u16), Experimental(u16), OrganizationExtensionPropagate, EnhancedAccuracyMetrics, OrganizationExtensionDoNotPropagate, L1Sync, PortCommunicationAvailability, ProtocolAddress, SlaveRxSyncTimingData, SlaveRxSyncComputedData, SlaveTxEventTimestamps, CumulativeRateRatio, Pad, Authentication, CsptpStatus, CsptpRequest, CsptpResponse,
}
Expand description

The type of a given TLV.

For more detials, see IEEE1588-2019 section 14.1.1 / Table 52.

Variants§

§

Reserved(u16)

Reserved for future use

§

Management

The management TLV.

§

ManagementErrorStatus

The ManagementErrorStatus TLV

§

OrganizationExtension

An organization extension TLV.

These have an additional set of identifiers identifying the actual type in the TLV data itself.

§

RequestUnicastTransmission

A TLV containing a request for unicast transmission.

§

GrantUnicastTransmission

A grant for unicast transmission.

§

CancelUnicastTransmission

A request to cancel unicast transmission.

§

AcknowledgeCancelUnicastTransmission

Acknowledgement of unicast transmission cancelation.

§

PathTrace

Path tracing data.

§

AlternateTimeOffsetIndicator

Information for computing a different timescale.

§

Legacy(u16)

TLV types used in previous versions of the standard.

§

Experimental(u16)

TLV identifiers inteded for experimentation.

§

OrganizationExtensionPropagate

An organization extension TLV that needs to be propagated on announce messages.

These have an additional set of identifiers identifying the actual type in the TLV data itself.

§

EnhancedAccuracyMetrics

Enhanced accury metrics.

§

OrganizationExtensionDoNotPropagate

An organization extension TLV that must not be propagated on announce messages.

These have an additional set of identifiers identifying the actual type in the TLV data itself.

§

L1Sync

Data for Layer 1 synchronization.

§

PortCommunicationAvailability

Information about port communication capabilities.

§

ProtocolAddress

Protocol address of the sending PTP port

§

SlaveRxSyncTimingData

Timing data on received messages from time receiver monitoring.

§

SlaveRxSyncComputedData

Computed data from time receiver monitoring.

§

SlaveTxEventTimestamps

Timing data on sent message from time receiver monitoring.

§

CumulativeRateRatio

Cumulative frequency transfer data.

§

Pad

Padding.

§

Authentication

Message authentication.

§

CsptpStatus

CSPTP Status

§

CsptpRequest

CSPTP Request

§

CsptpResponse

CSPTP Response

Implementations§

Source§

impl TlvType

Source

pub fn announce_propagate(self) -> bool

True if this message should be propagated by a boundary clock if it is attached to an announce message

Trait Implementations§

Source§

impl Clone for TlvType

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for TlvType

Source§

impl Debug for TlvType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for TlvType

Source§

impl PartialEq for TlvType

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for TlvType

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.