pub struct ServerTaskVariant<T, M, E>{
pub seq: u64,
pub action: RpcActionOwned,
pub msg: M,
pub blob: Option<Buffer>,
pub res: Option<Result<(), E>>,
pub noti: Option<RespNoti<T>>,
}Expand description
A container that impl ServerTaskResp to show an example, presuming you have a different types to represent Request and Response. You can write your customize version.
Fields§
§seq: u64§action: RpcActionOwned§msg: M§blob: Option<Buffer>§res: Option<Result<(), E>>§noti: Option<RespNoti<T>>Trait Implementations§
Source§impl<T, M, E> Debug for ServerTaskVariant<T, M, E>
impl<T, M, E> Debug for ServerTaskVariant<T, M, E>
Source§impl<T, M, E> ServerTaskAction for ServerTaskVariant<T, M, E>
impl<T, M, E> ServerTaskAction for ServerTaskVariant<T, M, E>
fn get_action<'a>(&'a self) -> RpcAction<'a>
Source§impl<T, M, E> ServerTaskDecode<T> for ServerTaskVariant<T, M, E>
impl<T, M, E> ServerTaskDecode<T> for ServerTaskVariant<T, M, E>
Source§impl<T, M, E> ServerTaskDone<T, E> for ServerTaskVariant<T, M, E>
impl<T, M, E> ServerTaskDone<T, E> for ServerTaskVariant<T, M, E>
Source§impl<T, M, E> ServerTaskEncode for ServerTaskVariant<T, M, E>
impl<T, M, E> ServerTaskEncode for ServerTaskVariant<T, M, E>
Auto Trait Implementations§
impl<T, M, E> !Freeze for ServerTaskVariant<T, M, E>
impl<T, M, E> !RefUnwindSafe for ServerTaskVariant<T, M, E>
impl<T, M, E> Send for ServerTaskVariant<T, M, E>
impl<T, M, E> Sync for ServerTaskVariant<T, M, E>
impl<T, M, E> Unpin for ServerTaskVariant<T, M, E>where
M: Unpin,
impl<T, M, E> !UnwindSafe for ServerTaskVariant<T, M, 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