pub struct Background<T> { /* private fields */ }Expand description
A typed response carrying work that starts after its wire body is sent.
Implementations§
Source§impl<T> Background<T>
impl<T> Background<T>
pub fn new(response: T) -> Self
pub fn task(self, task: BackgroundTask) -> Self
pub fn into_parts(self) -> (T, Vec<BackgroundTask>)
Trait Implementations§
Source§impl<T: ApiSchema> ApiSchema for Background<T>
impl<T: ApiSchema> ApiSchema for Background<T>
fn type_descriptor() -> TypeDescriptor
Source§fn validate_input(&self) -> Result<(), ValidationErrors>
fn validate_input(&self) -> Result<(), ValidationErrors>
Validates a decoded operation argument. Read more
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Background<T>
impl<T> !Send for Background<T>
impl<T> !Sync for Background<T>
impl<T> !UnwindSafe for Background<T>
impl<T> Freeze for Background<T>where
T: Freeze,
impl<T> Unpin for Background<T>where
T: Unpin,
impl<T> UnsafeUnpin for Background<T>where
T: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BackgroundExt for T
impl<T> BackgroundExt for T
fn background(self, task: BackgroundTask) -> Background<Self>
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