pub struct BlockingScalarResponse<R: ScalarCodec> { /* private fields */ }Expand description
deferred response that sends default on drop if not used
Implementations§
Source§impl<R: ScalarCodec> BlockingScalarResponse<R>
impl<R: ScalarCodec> BlockingScalarResponse<R>
Sourcepub fn set_response(&mut self, response: R)
pub fn set_response(&mut self, response: R)
set response
will be sent on drop if Self::respond is not called
Trait Implementations§
Source§impl<R: Debug + ScalarCodec> Debug for BlockingScalarResponse<R>
impl<R: Debug + ScalarCodec> Debug for BlockingScalarResponse<R>
Source§impl<R: ScalarCodec> Drop for BlockingScalarResponse<R>
impl<R: ScalarCodec> Drop for BlockingScalarResponse<R>
Auto Trait Implementations§
impl<R> Freeze for BlockingScalarResponse<R>where
R: Freeze,
impl<R> RefUnwindSafe for BlockingScalarResponse<R>where
R: RefUnwindSafe,
impl<R> Send for BlockingScalarResponse<R>where
R: Send,
impl<R> Sync for BlockingScalarResponse<R>where
R: Sync,
impl<R> Unpin for BlockingScalarResponse<R>where
R: Unpin,
impl<R> UnwindSafe for BlockingScalarResponse<R>where
R: UnwindSafe,
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.