pub struct DeferredLendMut<M: LendMut> { /* private fields */ }Expand description
An encapsulated blocking LendMut message, which can be responded to
later during execution. It can be stored, and will return the message when
dropped, or the DeferredLendMut::set_response function is called.
Implementations§
Source§impl<M: LendMut> DeferredLendMut<M>
impl<M: LendMut> DeferredLendMut<M>
Sourcepub fn set_response(&mut self, response: M::Response)
pub fn set_response(&mut self, response: M::Response)
Get a mutable reference to the parsed message body.
Trait Implementations§
Auto Trait Implementations§
impl<M> Freeze for DeferredLendMut<M>
impl<M> RefUnwindSafe for DeferredLendMut<M>
impl<M> Send for DeferredLendMut<M>
impl<M> Sync for DeferredLendMut<M>
impl<M> Unpin for DeferredLendMut<M>
impl<M> UnwindSafe for DeferredLendMut<M>
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.