Struct cyfs_lib::RouterHandlerResponse
source · [−]pub struct RouterHandlerResponse<REQ, RESP>where
REQ: Send + Sync + 'static + JsonCodec<REQ> + Display,
RESP: Send + Sync + 'static + JsonCodec<RESP> + Display,{
pub action: RouterHandlerAction,
pub request: Option<REQ>,
pub response: Option<BuckyResult<RESP>>,
}
Fields
action: RouterHandlerAction
request: Option<REQ>
response: Option<BuckyResult<RESP>>
Trait Implementations
sourceimpl<REQ, RESP> Display for RouterHandlerResponse<REQ, RESP>where
REQ: Send + Sync + 'static + JsonCodec<REQ> + Display,
RESP: Send + Sync + 'static + JsonCodec<RESP> + Display,
impl<REQ, RESP> Display for RouterHandlerResponse<REQ, RESP>where
REQ: Send + Sync + 'static + JsonCodec<REQ> + Display,
RESP: Send + Sync + 'static + JsonCodec<RESP> + Display,
sourceimpl<REQ, RESP> JsonCodec<RouterHandlerResponse<REQ, RESP>> for RouterHandlerResponse<REQ, RESP>where
REQ: Send + Sync + 'static + JsonCodec<REQ> + Display,
RESP: Send + Sync + 'static + JsonCodec<RESP> + Display,
impl<REQ, RESP> JsonCodec<RouterHandlerResponse<REQ, RESP>> for RouterHandlerResponse<REQ, RESP>where
REQ: Send + Sync + 'static + JsonCodec<REQ> + Display,
RESP: Send + Sync + 'static + JsonCodec<RESP> + Display,
fn encode_json(&self) -> Map<String, Value>
fn decode_json(req_obj: &Map<String, Value>) -> BuckyResult<Self>
fn encode_string(&self) -> String
fn decode_string(value: &str) -> Result<T, BuckyError>
fn decode_value(value: &Value) -> Result<T, BuckyError>
fn encode_value(&self) -> Value
Auto Trait Implementations
impl<REQ, RESP> !RefUnwindSafe for RouterHandlerResponse<REQ, RESP>
impl<REQ, RESP> Send for RouterHandlerResponse<REQ, RESP>
impl<REQ, RESP> Sync for RouterHandlerResponse<REQ, RESP>
impl<REQ, RESP> Unpin for RouterHandlerResponse<REQ, RESP>where
REQ: Unpin,
RESP: Unpin,
impl<REQ, RESP> !UnwindSafe for RouterHandlerResponse<REQ, RESP>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more