pub struct MsgPack<T>(pub T, pub &'static str);Expand description
Sends 200 and MsgPack.
Tuple Fields§
§0: T§1: &'static strTrait Implementations§
Source§impl<T> EndpointOutRegister for MsgPack<T>
Available on crate feature salvo only.
impl<T> EndpointOutRegister for MsgPack<T>
Available on crate feature
salvo only.Source§fn register(components: &mut Components, operation: &mut Operation)
fn register(components: &mut Components, operation: &mut Operation)
Modify the OpenApi components section or current operation information with given argument. This function is called by macros internal.
Source§impl<T> ExplicitServerWrite for MsgPack<T>
Available on crate feature salvo and crate feature mresult and neither WebAssembly nor WebAssembly only.
impl<T> ExplicitServerWrite for MsgPack<T>
Available on crate feature
salvo and crate feature mresult and neither WebAssembly nor WebAssembly only.Source§async fn explicit_write(self, res: &mut Response)
async fn explicit_write(self, res: &mut Response)
Write an actual response in a
Response object.Source§impl<T> Writer for MsgPack<T>
impl<T> Writer for MsgPack<T>
Source§fn write<'life0, 'life1, 'life2, 'async_trait>(
self,
_req: &'life0 mut Request,
_depot: &'life1 mut Depot,
res: &'life2 mut Response,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
MsgPack<T>: 'async_trait,
fn write<'life0, 'life1, 'life2, 'async_trait>(
self,
_req: &'life0 mut Request,
_depot: &'life1 mut Depot,
res: &'life2 mut Response,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
MsgPack<T>: 'async_trait,
Write data to
Response.Auto Trait Implementations§
impl<T> Freeze for MsgPack<T>where
T: Freeze,
impl<T> RefUnwindSafe for MsgPack<T>where
T: RefUnwindSafe,
impl<T> Send for MsgPack<T>where
T: Send,
impl<T> Sync for MsgPack<T>where
T: Sync,
impl<T> Unpin for MsgPack<T>where
T: Unpin,
impl<T> UnwindSafe for MsgPack<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request