pub struct JobId<T>(pub T);
Expand description
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T, Ctx> FromJobCallParts<Ctx> for JobId<T>
impl<T, Ctx> FromJobCallParts<Ctx> for JobId<T>
Source§type Rejection = <T as TryFrom<JobId>>::Error
type Rejection = <T as TryFrom<JobId>>::Error
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a job result.
Source§async fn from_job_call_parts(
parts: &mut JobCallParts,
_: &Ctx,
) -> Result<Self, Self::Rejection>
async fn from_job_call_parts( parts: &mut JobCallParts, _: &Ctx, ) -> Result<Self, Self::Rejection>
Perform the extraction.
Auto Trait Implementations§
impl<T> Freeze for JobId<T>where
T: Freeze,
impl<T> RefUnwindSafe for JobId<T>where
T: RefUnwindSafe,
impl<T> Send for JobId<T>where
T: Send,
impl<T> Sync for JobId<T>where
T: Sync,
impl<T> Unpin for JobId<T>where
T: Unpin,
impl<T> UnwindSafe for JobId<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