pub struct Context<A: Agent> { /* private fields */ }
Implementations§
Source§impl<A: Agent> Context<A>
impl<A: Agent> Context<A>
pub fn wrap(context: A::Context) -> Self
pub fn add_extension<E>(&mut self, ext: E)where
E: ExtensionFor<A>,
pub fn be<E>(&mut self) -> Result<E::View<'_>>where
E: ExtensionFor<A>,
Source§impl<A: Agent> Context<A>where
A::Context: ReachableContext,
impl<A: Agent> Context<A>where
A::Context: ReachableContext,
pub fn address(&self) -> &<A::Context as ReachableContext>::Address
Trait Implementations§
Source§impl<A, M> ToRecipient<M> for Context<A>
impl<A, M> ToRecipient<M> for Context<A>
fn to_recipient(&self) -> Recipient<M>
Auto Trait Implementations§
impl<A> Freeze for Context<A>
impl<A> !RefUnwindSafe for Context<A>
impl<A> Send for Context<A>
impl<A> !Sync for Context<A>
impl<A> Unpin for Context<A>
impl<A> !UnwindSafe for Context<A>
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