#[non_exhaustive]pub struct WorkerSendRequest<W: Worker> {
pub message: TxJsonRpcMessage<W::Role>,
pub responder: Sender<Result<(), W::Error>>,
}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<Result<(), W::Error>>Auto Trait Implementations§
impl<W> Freeze for WorkerSendRequest<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 WorkerSendRequest<W>
impl<W> Send for WorkerSendRequest<W>
impl<W> Sync for WorkerSendRequest<W>
impl<W> Unpin for WorkerSendRequest<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 WorkerSendRequest<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 WorkerSendRequest<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