pub struct UnlockPayloadBound(/* private fields */);
Expand description
Result of calling Externalities::unlock_payload
.
This is a “bound” type which means it doesn’t store
anything, but gives type-level guarantees that PayloadSliceLock
released the payload back to the message context.
Trait Implementations§
Source§impl From<(&mut MessageContext, &mut PayloadSliceLock)> for UnlockPayloadBound
impl From<(&mut MessageContext, &mut PayloadSliceLock)> for UnlockPayloadBound
Source§fn from(
(msg_ctx, payload_holder): (&mut MessageContext, &mut PayloadSliceLock),
) -> Self
fn from( (msg_ctx, payload_holder): (&mut MessageContext, &mut PayloadSliceLock), ) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UnlockPayloadBound
impl RefUnwindSafe for UnlockPayloadBound
impl Send for UnlockPayloadBound
impl Sync for UnlockPayloadBound
impl Unpin for UnlockPayloadBound
impl UnwindSafe for UnlockPayloadBound
Blanket Implementations§
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