pub struct ServerTaskVariantFull<T, R, P, E>{
pub seq: u64,
pub action: RpcActionOwned,
pub req: R,
pub req_blob: Option<Buffer>,
pub resp: Option<P>,
pub resp_blob: Option<Buffer>,
pub res: Option<Result<(), E>>,
/* private fields */
}Expand description
A container that impl ServerTaskResp to show an example, presuming you have a type to carry both Request and Response. You can write your customize version.
Fields§
§seq: u64§action: RpcActionOwned§req: R§req_blob: Option<Buffer>§resp: Option<P>§resp_blob: Option<Buffer>§res: Option<Result<(), E>>Trait Implementations§
Source§impl<T, R, P, E> Debug for ServerTaskVariantFull<T, R, P, E>
impl<T, R, P, E> Debug for ServerTaskVariantFull<T, R, P, E>
Source§impl<T, R, P, E> ServerTaskAction for ServerTaskVariantFull<T, R, P, E>
impl<T, R, P, E> ServerTaskAction for ServerTaskVariantFull<T, R, P, E>
fn get_action<'a>(&'a self) -> RpcAction<'a>
Source§impl<T, R, P, E> ServerTaskDecode<T> for ServerTaskVariantFull<T, R, P, E>where
T: Send + 'static,
R: for<'b> Deserialize<'b> + Send + 'static,
P: Send + 'static,
E: RpcErrCodec,
impl<T, R, P, E> ServerTaskDecode<T> for ServerTaskVariantFull<T, R, P, E>where
T: Send + 'static,
R: for<'b> Deserialize<'b> + Send + 'static,
P: Send + 'static,
E: RpcErrCodec,
Source§impl<T, R, P, E> ServerTaskDone<T, E> for ServerTaskVariantFull<T, R, P, E>
impl<T, R, P, E> ServerTaskDone<T, E> for ServerTaskVariantFull<T, R, P, E>
Source§impl<T, R, P, E> ServerTaskEncode for ServerTaskVariantFull<T, R, P, E>
impl<T, R, P, E> ServerTaskEncode for ServerTaskVariantFull<T, R, P, E>
Auto Trait Implementations§
impl<T, R, P, E> !Freeze for ServerTaskVariantFull<T, R, P, E>
impl<T, R, P, E> !RefUnwindSafe for ServerTaskVariantFull<T, R, P, E>
impl<T, R, P, E> Send for ServerTaskVariantFull<T, R, P, E>
impl<T, R, P, E> Sync for ServerTaskVariantFull<T, R, P, E>
impl<T, R, P, E> Unpin for ServerTaskVariantFull<T, R, P, E>
impl<T, R, P, E> !UnwindSafe for ServerTaskVariantFull<T, R, P, E>
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