pub struct TaskId<IdType = RandomId>(/* private fields */);Expand description
A wrapper type that defines a task id.
Implementations§
Trait Implementations§
Source§impl<'de, IdType> Deserialize<'de> for TaskId<IdType>where
IdType: Deserialize<'de>,
impl<'de, IdType> Deserialize<'de> for TaskId<IdType>where
IdType: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<Args: Sync, Ctx: Sync, IdType: Sync + Send + Clone> FromRequest<Task<Args, Ctx, IdType>> for TaskId<IdType>
impl<Args: Sync, Ctx: Sync, IdType: Sync + Send + Clone> FromRequest<Task<Args, Ctx, IdType>> for TaskId<IdType>
Source§type Error = MissingDataError
type Error = MissingDataError
The error type that can occur during extraction.
Source§impl<IdType: Ord> Ord for TaskId<IdType>
impl<IdType: Ord> Ord for TaskId<IdType>
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<IdType: PartialOrd> PartialOrd for TaskId<IdType>
impl<IdType: PartialOrd> PartialOrd for TaskId<IdType>
impl<IdType: Copy> Copy for TaskId<IdType>
impl<IdType: Eq> Eq for TaskId<IdType>
impl<IdType> StructuralPartialEq for TaskId<IdType>
Auto Trait Implementations§
impl<IdType> Freeze for TaskId<IdType>where
IdType: Freeze,
impl<IdType> RefUnwindSafe for TaskId<IdType>where
IdType: RefUnwindSafe,
impl<IdType> Send for TaskId<IdType>where
IdType: Send,
impl<IdType> Sync for TaskId<IdType>where
IdType: Sync,
impl<IdType> Unpin for TaskId<IdType>where
IdType: Unpin,
impl<IdType> UnwindSafe for TaskId<IdType>where
IdType: 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