Struct dce_hyper::request::HttpRawRequest
source · pub struct HttpRawRequest<T: RoutableProtocol>(/* private fields */);Trait Implementations§
source§impl<T: Debug + RoutableProtocol> Debug for HttpRawRequest<T>
impl<T: Debug + RoutableProtocol> Debug for HttpRawRequest<T>
source§impl<T: RoutableProtocol + HttpMethodGetter + Debug + Send + 'static> RawRequest for HttpRawRequest<T>
impl<T: RoutableProtocol + HttpMethodGetter + Debug + Send + 'static> RawRequest for HttpRawRequest<T>
type Rpi = T
type Req = <T as RoutableProtocol>::Req
type Resp = <T as RoutableProtocol>::Resp
fn new(req: T) -> Self
fn path(&self) -> &str
fn raw(&self) -> &Self::Rpi
fn raw_mut(&mut self) -> &mut Self::Rpi
fn data<'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_response(self, serialized: Serialized) -> DceResult<Self::Resp>
fn parse_api_method( prop_mapping: &mut HashMap<&'static str, Box<dyn Any + Send + Sync>> ) -> Option<Box<dyn DceMethod<Self::Rpi> + Send + Sync>>
fn pack_responsible<RespDto>(
context: RequestContext<Self>,
serializers: &[Box<dyn Serializer<RespDto> + Send + Sync>],
responsible: Serializable<RespDto>
) -> Result<Option<Self::Resp>, DceErr>where
RespDto: 'static,
fn api_match<Raw>(
raw: &Raw,
apis: &[&'static (dyn ApiTrait<Raw> + Send + Sync)]
) -> Result<&'static (dyn ApiTrait<Raw> + Send + Sync), DceErr>where
Raw: RawRequest,
fn route<'async_trait>( context: RequestContext<Self> ) -> Pin<Box<dyn Future<Output = (Option<bool>, Result<Option<Self::Resp>, DceErr>)> + Send + 'async_trait>>
fn get_input_serializer<'a, ReqDto>( deserializers: &'a [Box<dyn Deserializer<ReqDto> + Send + Sync>], _context: &RequestContext<Self> ) -> &'a Box<dyn Deserializer<ReqDto> + Send + Sync>
fn get_output_serializer<'a, RespDto>( serializers: &'a [Box<dyn Serializer<RespDto> + Send + Sync>], _context: &RequestContext<Self> ) -> &'a Box<dyn Serializer<RespDto> + Send + Sync>
fn deserialize<ReqDto>( serializers: &[Box<dyn Deserializer<ReqDto> + Send + Sync>], seq: Serialized, context: &RequestContext<Self> ) -> Result<ReqDto, DceErr>
fn serialize<RespDto>( serializers: &[Box<dyn Serializer<RespDto> + Send + Sync>], dto: Serializable<RespDto>, context: &RequestContext<Self> ) -> Result<Serialized, DceErr>
Auto Trait Implementations§
impl<T> RefUnwindSafe for HttpRawRequest<T>where
T: RefUnwindSafe,
impl<T> Send for HttpRawRequest<T>where
T: Send,
impl<T> Sync for HttpRawRequest<T>where
T: Sync,
impl<T> Unpin for HttpRawRequest<T>where
T: Unpin,
impl<T> UnwindSafe for HttpRawRequest<T>where
T: UnwindSafe,
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