pub enum RpcMessage<Req, Notif, Resp> {
Request(RequestId, Req),
Response(RequestId, Resp),
Notification(Notif),
Error(RequestId, RpcError),
}
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<Req, Notif, Resp> Freeze for RpcMessage<Req, Notif, Resp>
impl<Req, Notif, Resp> RefUnwindSafe for RpcMessage<Req, Notif, Resp>
impl<Req, Notif, Resp> Send for RpcMessage<Req, Notif, Resp>
impl<Req, Notif, Resp> Sync for RpcMessage<Req, Notif, Resp>
impl<Req, Notif, Resp> Unpin for RpcMessage<Req, Notif, Resp>
impl<Req, Notif, Resp> UnwindSafe for RpcMessage<Req, Notif, Resp>
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