pub struct BoxedDurable(/* private fields */);Expand description
A type-erased durable context for use in AgentLoop.
Wraps any DurableContext into a dyn-compatible form.
Implementations§
Source§impl BoxedDurable
impl BoxedDurable
Sourcepub fn new<D: DurableContext + 'static>(durable: D) -> Self
pub fn new<D: DurableContext + 'static>(durable: D) -> Self
Wrap any DurableContext into a type-erased BoxedDurable.
Auto Trait Implementations§
impl Freeze for BoxedDurable
impl !RefUnwindSafe for BoxedDurable
impl Send for BoxedDurable
impl Sync for BoxedDurable
impl Unpin for BoxedDurable
impl UnsafeUnpin for BoxedDurable
impl !UnwindSafe for BoxedDurable
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