Struct dce_router::protocol::CustomizedProtocolRawRequest
source · pub struct CustomizedProtocolRawRequest<T>(/* private fields */);Trait Implementations§
source§impl<T: Debug> Debug for CustomizedProtocolRawRequest<T>
impl<T: Debug> Debug for CustomizedProtocolRawRequest<T>
source§impl<T: RoutableProtocol + Send + Debug + 'static> RawRequest for CustomizedProtocolRawRequest<T>
impl<T: RoutableProtocol + Send + Debug + 'static> RawRequest for CustomizedProtocolRawRequest<T>
type Rpi = T
type Req = <T as RoutableProtocol>::Req
type Resp = <T as RoutableProtocol>::Resp
fn new(raw: 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 pack_responsible<RespDto: 'static>(
self,
serializers: &[Box<dyn Serializer<RespDto> + Send + Sync>],
responsible: Serializable<RespDto>
) -> DceResult<Option<Self::Resp>>where
Self: Sized,
fn api_match<Raw: RawRequest>( raw: &Raw, apis: &[&'static (dyn ApiTrait<Raw> + Send + Sync)] ) -> DceResult<&'static (dyn ApiTrait<Raw> + Send + Sync)>
fn parse_api_method( _prop_mapping: &mut HashMap<&'static str, Box<dyn Any + Send + Sync>> ) -> Option<Box<dyn Method<Self::Rpi> + Send + Sync>>
fn route<'async_trait>( context: RequestContext<Self> ) -> Pin<Box<dyn Future<Output = (Option<bool>, DceResult<Option<Self::Resp>>)> + Send + 'async_trait>>
fn get_input_serializer<ReqDto>( deserializers: &[Box<dyn Deserializer<ReqDto> + Send + Sync>] ) -> &Box<dyn Deserializer<ReqDto> + Send + Sync>
fn get_output_serializer<RespDto>( serializers: &[Box<dyn Serializer<RespDto> + Send + Sync>] ) -> &Box<dyn Serializer<RespDto> + Send + Sync>
fn deserialize<ReqDto>( serializers: &[Box<dyn Deserializer<ReqDto> + Send + Sync>], raw: Serialized ) -> DceResult<ReqDto>
fn serialize<RespDto>( serializers: &[Box<dyn Serializer<RespDto> + Send + Sync>], dto: Serializable<RespDto> ) -> DceResult<Serialized>
Auto Trait Implementations§
impl<T> RefUnwindSafe for CustomizedProtocolRawRequest<T>where
T: RefUnwindSafe,
impl<T> Send for CustomizedProtocolRawRequest<T>where
T: Send,
impl<T> Sync for CustomizedProtocolRawRequest<T>where
T: Sync,
impl<T> Unpin for CustomizedProtocolRawRequest<T>where
T: Unpin,
impl<T> UnwindSafe for CustomizedProtocolRawRequest<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