pub struct TaskContext<T: Clone + Send + Sync> {
pub application_id: Id<ApplicationMarker>,
pub services: Arc<T>,
pub client: Arc<Client>,
}Fields§
§application_id: Id<ApplicationMarker>§services: Arc<T>§client: Arc<Client>Implementations§
Source§impl<T: Clone + Send + Sync> TaskContext<T>
impl<T: Clone + Send + Sync> TaskContext<T>
pub fn from_context(ctx: Context<T>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for TaskContext<T>
impl<T> !RefUnwindSafe for TaskContext<T>
impl<T> Send for TaskContext<T>
impl<T> Sync for TaskContext<T>
impl<T> Unpin for TaskContext<T>
impl<T> !UnwindSafe for TaskContext<T>
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