pub enum FramePriority {
CS0,
CS1,
CS2,
CS3,
CS4,
CS5,
CS6,
}Expand description
Semantic QoS class of a native uProtocol frame.
Variants§
CS0
Best effort (lowest priority).
CS1
Priority class CS1.
CS2
Priority class CS2.
CS3
Priority class CS3.
CS4
Priority class CS4 (streaming).
CS5
Priority class CS5 (RPC default).
CS6
Priority class CS6 (highest; network control).
Implementations§
Source§impl FramePriority
impl FramePriority
Sourcepub fn wire_code(self) -> u8
pub fn wire_code(self) -> u8
Gets the normative UFrame wire code of this priority.
Codes are defined by the UFrame specification: 1..=7 = CS0..=CS6,
0 = absent (wire/ABI representations only), 8..=255 reserved. They
deliberately coincide with the legacy protobuf UPriority numbering.
Sourcepub fn from_wire_code(code: u8) -> Option<Self>
pub fn from_wire_code(code: u8) -> Option<Self>
Gets the priority denoted by a UFrame wire code.
Sourcepub fn from_legacy_priority(value: UPriority) -> Self
pub fn from_legacy_priority(value: UPriority) -> Self
Projects a legacy UPriority to a frame priority.
Sourcepub fn to_legacy_priority(self) -> UPriority
pub fn to_legacy_priority(self) -> UPriority
Projects this frame priority to the legacy UPriority.
Trait Implementations§
Source§impl Clone for FramePriority
impl Clone for FramePriority
Source§fn clone(&self) -> FramePriority
fn clone(&self) -> FramePriority
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FramePriority
impl Debug for FramePriority
Source§impl Hash for FramePriority
impl Hash for FramePriority
Source§impl Ord for FramePriority
impl Ord for FramePriority
Source§fn cmp(&self, other: &FramePriority) -> Ordering
fn cmp(&self, other: &FramePriority) -> Ordering
1.21.0 · 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
Source§impl PartialEq for FramePriority
impl PartialEq for FramePriority
Source§impl PartialOrd for FramePriority
impl PartialOrd for FramePriority
impl Copy for FramePriority
impl Eq for FramePriority
impl StructuralPartialEq for FramePriority
Auto Trait Implementations§
impl Freeze for FramePriority
impl RefUnwindSafe for FramePriority
impl Send for FramePriority
impl Sync for FramePriority
impl Unpin for FramePriority
impl UnwindSafe for FramePriority
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<TCore> UWithNativePrefixWire for TCore
impl<TCore> UWithNativePrefixWire for TCore
Source§fn into_native_prefix_wire_transport<W>(
self,
wire: W,
) -> UWireTransport<TCore, W, NativePrefixFrameMetadataCodec>where
W: UWire,
fn into_native_prefix_wire_transport<W>(
self,
wire: W,
) -> UWireTransport<TCore, W, NativePrefixFrameMetadataCodec>where
W: UWire,
Wraps this core with an external or custom selected wire using canonical metadata.
Source§fn into_protobuf_transport(
self,
) -> UWireTransport<TCore, ProtobufWire, NativePrefixFrameMetadataCodec>
fn into_protobuf_transport( self, ) -> UWireTransport<TCore, ProtobufWire, NativePrefixFrameMetadataCodec>
Wraps this core with the Protocol Buffers selected-wire profile.
Source§fn into_stable_container_transport(
self,
) -> UWireTransport<TCore, StableContainerWireFormat, NativePrefixFrameMetadataCodec>
fn into_stable_container_transport( self, ) -> UWireTransport<TCore, StableContainerWireFormat, NativePrefixFrameMetadataCodec>
Wraps this core with the stable-container selected-wire profile.