pub struct LoanedPayloadUninitMut<'a> { /* private fields */ }Expand description
Mutable uninitialized payload bytes with explicit transport-loan provenance.
Implementations§
Source§impl<'a> LoanedPayloadUninitMut<'a>
impl<'a> LoanedPayloadUninitMut<'a>
Sourcepub unsafe fn new_unchecked(
bytes: &'a mut [MaybeUninit<u8>],
provenance: PayloadLoanProvenance,
) -> Self
pub unsafe fn new_unchecked( bytes: &'a mut [MaybeUninit<u8>], provenance: PayloadLoanProvenance, ) -> Self
Creates a mutable uninitialized loaned payload view from transport-owned storage.
§Safety
bytes must be a valid mutable uninitialized byte slice for 'a, with no
other active access path, and must be the exact visible application
payload range for the loan described by provenance.
Sourcepub fn provenance(&self) -> PayloadLoanProvenance
pub fn provenance(&self) -> PayloadLoanProvenance
Returns where this loan’s storage came from.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for LoanedPayloadUninitMut<'a>
impl<'a> RefUnwindSafe for LoanedPayloadUninitMut<'a>
impl<'a> Send for LoanedPayloadUninitMut<'a>
impl<'a> Sync for LoanedPayloadUninitMut<'a>
impl<'a> Unpin for LoanedPayloadUninitMut<'a>
impl<'a> !UnwindSafe for LoanedPayloadUninitMut<'a>
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
§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.