pub struct RequestGen<Payload: Encode> {
pub request_id: u32,
pub worker: u16,
pub payload: Payload,
}
Fields§
§request_id: u32
§worker: u16
§payload: Payload
Trait Implementations§
Source§impl<Payload: Encode> Encode for RequestGen<Payload>
impl<Payload: Encode> Encode for RequestGen<Payload>
fn scratch_len(&self) -> usize
fn encode(&self, cursor: &mut EncodeCursor<'_>)
impl<T: Owned, Payload: Encode + Compatible<T>> Compatible<Request<T>> for RequestGen<Payload>
impl<T: Owned, Payload: Encode + Compatible<T>> Compatible<RequestGen<Payload>> for Request<T>
Auto Trait Implementations§
impl<Payload> Freeze for RequestGen<Payload>where
Payload: Freeze,
impl<Payload> RefUnwindSafe for RequestGen<Payload>where
Payload: RefUnwindSafe,
impl<Payload> Send for RequestGen<Payload>where
Payload: Send,
impl<Payload> Sync for RequestGen<Payload>where
Payload: Sync,
impl<Payload> Unpin for RequestGen<Payload>where
Payload: Unpin,
impl<Payload> UnwindSafe for RequestGen<Payload>where
Payload: UnwindSafe,
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