pub struct Context<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> Context<T>
impl<T: Clone + Send + Sync> Context<T>
pub fn interaction(&self) -> InteractionClient<'_>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Context<T>
impl<T> !RefUnwindSafe for Context<T>
impl<T> Send for Context<T>
impl<T> Sync for Context<T>
impl<T> Unpin for Context<T>
impl<T> !UnwindSafe for Context<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