pub struct PayloadAlignment(/* private fields */);Expand description
Validated visible application payload alignment in bytes.
The value is always nonzero and a power of two. Runtime values from config,
metadata, or transport boundaries must be constructed with Self::new or
TryFrom<usize> so those boundaries keep their explicit validation.
Implementations§
Trait Implementations§
Source§impl Clone for PayloadAlignment
impl Clone for PayloadAlignment
Source§fn clone(&self) -> PayloadAlignment
fn clone(&self) -> PayloadAlignment
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 PayloadAlignment
impl Debug for PayloadAlignment
Source§impl Hash for PayloadAlignment
impl Hash for PayloadAlignment
Source§impl Ord for PayloadAlignment
impl Ord for PayloadAlignment
Source§fn cmp(&self, other: &PayloadAlignment) -> Ordering
fn cmp(&self, other: &PayloadAlignment) -> 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 PayloadAlignment
impl PartialEq for PayloadAlignment
Source§impl PartialOrd for PayloadAlignment
impl PartialOrd for PayloadAlignment
Source§impl TryFrom<usize> for PayloadAlignment
impl TryFrom<usize> for PayloadAlignment
impl Copy for PayloadAlignment
impl Eq for PayloadAlignment
impl StructuralPartialEq for PayloadAlignment
Auto Trait Implementations§
impl Freeze for PayloadAlignment
impl RefUnwindSafe for PayloadAlignment
impl Send for PayloadAlignment
impl Sync for PayloadAlignment
impl Unpin for PayloadAlignment
impl UnwindSafe for PayloadAlignment
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.