Struct dce_hyper::protocol::HyperHttpProtocol
source · pub struct HyperHttpProtocol { /* private fields */ }Implementations§
Trait Implementations§
source§impl Debug for HyperHttpProtocol
impl Debug for HyperHttpProtocol
source§impl HttpMethodGetter for HyperHttpProtocol
impl HttpMethodGetter for HyperHttpProtocol
source§impl Into<Response<BoxBody<Bytes, Infallible>>> for HyperHttpProtocol
impl Into<Response<BoxBody<Bytes, Infallible>>> for HyperHttpProtocol
source§impl RoutableProtocol for HyperHttpProtocol
impl RoutableProtocol for HyperHttpProtocol
type Req = Request<Incoming>
type Resp = Response<BoxBody<Bytes, Infallible>>
fn path(&self) -> &str
fn body<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = DceResult<Serialized>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn pack_resp(self, serialized: Serialized) -> Self::Resp
fn err_into(self, code: isize, message: String) -> Self::Resp
fn handle_result( self, (_, resp): (Option<bool>, DceResult<Option<Self::Resp>>) ) -> Option<Self::Resp>
fn id(&self) -> Option<&str>
fn try_print_err(response: &Result<Option<Self::Resp>, DceErr>)
Auto Trait Implementations§
impl !RefUnwindSafe for HyperHttpProtocol
impl Send for HyperHttpProtocol
impl Sync for HyperHttpProtocol
impl Unpin for HyperHttpProtocol
impl !UnwindSafe for HyperHttpProtocol
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