pub struct LoanedUninitPayload<'a, T> { /* private fields */ }Expand description
Uninitialized typed payload slot borrowed from a transmit loan.
Implementations§
Source§impl<'a, T> LoanedUninitPayload<'a, T>
impl<'a, T> LoanedUninitPayload<'a, T>
Sourcepub fn new(slot: &'a mut MaybeUninit<T>) -> Self
pub fn new(slot: &'a mut MaybeUninit<T>) -> Self
Wraps an exclusive borrow of the uninitialized target value.
Sourcepub fn write(self, value: T) -> LoanedInitPayload<'a, T>
pub fn write(self, value: T) -> LoanedInitPayload<'a, T>
Initializes the target by move and returns the initialized handle.
Fully safe: MaybeUninit::write performs the move and hands back the
initialized reference; no copy occurs beyond the value move itself.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for LoanedUninitPayload<'a, T>
impl<'a, T> RefUnwindSafe for LoanedUninitPayload<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for LoanedUninitPayload<'a, T>where
T: Send,
impl<'a, T> Sync for LoanedUninitPayload<'a, T>where
T: Sync,
impl<'a, T> Unpin for LoanedUninitPayload<'a, T>
impl<'a, T> !UnwindSafe for LoanedUninitPayload<'a, T>
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.