#[non_exhaustive]pub struct SendRequest<W: Worker> {
pub message: TxJsonRpcMessage<W::Role>,
pub responder: Sender<RxJsonRpcMessage<W::Role>>,
}Available on (crate features
client or server) and crate feature transport-worker only.Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.message: TxJsonRpcMessage<W::Role>§responder: Sender<RxJsonRpcMessage<W::Role>>Auto Trait Implementations§
impl<W> Freeze for SendRequest<W>where
<<W as Worker>::Role as ServiceRole>::Req: Freeze,
<<W as Worker>::Role as ServiceRole>::Resp: Freeze,
<<W as Worker>::Role as ServiceRole>::Not: Freeze,
impl<W> !RefUnwindSafe for SendRequest<W>
impl<W> Send for SendRequest<W>
impl<W> Sync for SendRequest<W>
impl<W> Unpin for SendRequest<W>where
<<W as Worker>::Role as ServiceRole>::Req: Unpin,
<<W as Worker>::Role as ServiceRole>::Resp: Unpin,
<<W as Worker>::Role as ServiceRole>::Not: Unpin,
impl<W> UnsafeUnpin for SendRequest<W>where
<<W as Worker>::Role as ServiceRole>::Req: UnsafeUnpin,
<<W as Worker>::Role as ServiceRole>::Resp: UnsafeUnpin,
<<W as Worker>::Role as ServiceRole>::Not: UnsafeUnpin,
impl<W> !UnwindSafe for SendRequest<W>
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