pub struct SubmitRequest<T> { /* private fields */ }
Expand description
A wrapper around a request that adds an ID alongside a request. The ID is automatically allocated internally by the request manager after the SubmitRequest is submitted.
Implementations§
source§impl<T> SubmitRequest<T>
impl<T> SubmitRequest<T>
sourcepub fn new(data: T) -> Self
pub fn new(data: T) -> Self
Construct a new SubmitRequest.
Trait Implementations§
source§impl<T: Clone> Clone for SubmitRequest<T>
impl<T: Clone> Clone for SubmitRequest<T>
source§fn clone(&self) -> SubmitRequest<T>
fn clone(&self) -> SubmitRequest<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for SubmitRequest<T>
impl<T: Debug> Debug for SubmitRequest<T>
source§impl<T: Hash> Hash for SubmitRequest<T>
impl<T: Hash> Hash for SubmitRequest<T>
source§impl<T: Ord> Ord for SubmitRequest<T>
impl<T: Ord> Ord for SubmitRequest<T>
source§fn cmp(&self, other: &SubmitRequest<T>) -> Ordering
fn cmp(&self, other: &SubmitRequest<T>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T: PartialEq> PartialEq for SubmitRequest<T>
impl<T: PartialEq> PartialEq for SubmitRequest<T>
source§impl<T: PartialOrd> PartialOrd for SubmitRequest<T>
impl<T: PartialOrd> PartialOrd for SubmitRequest<T>
impl<T: Copy> Copy for SubmitRequest<T>
impl<T: Eq> Eq for SubmitRequest<T>
impl<T> StructuralPartialEq for SubmitRequest<T>
Auto Trait Implementations§
impl<T> DeviceSync for SubmitRequest<T>where
T: DeviceSync,
impl<T> Freeze for SubmitRequest<T>where
T: Freeze,
impl<T> ObjSafe for SubmitRequest<T>where
T: ObjSafe,
impl<T> RefUnwindSafe for SubmitRequest<T>where
T: RefUnwindSafe,
impl<T> Send for SubmitRequest<T>where
T: Send,
impl<T> Sync for SubmitRequest<T>where
T: Sync,
impl<T> Unpin for SubmitRequest<T>where
T: Unpin,
impl<T> UnwindSafe for SubmitRequest<T>where
T: 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.