pub struct OrdinaryAgent { /* private fields */ }Expand description
Host-owned lifetime, separate from weak client views. Explicitly close and inspect errors before removing this owner from a future service registry. Drop only starts best-effort cooperative cleanup; no forced task abort occurs.
Implementations§
Source§impl OrdinaryAgent
impl OrdinaryAgent
pub async fn restore( catalog: HostCatalog, id: AgentId, guard: CatalogGuard, binder: OrdinaryBinder, ) -> BackendResult<Self>
pub async fn restore_with_limits( catalog: HostCatalog, id: AgentId, guard: CatalogGuard, limits: OrdinaryLimits, binder: OrdinaryBinder, ) -> BackendResult<Self>
pub async fn restore_bound( catalog: HostCatalog, id: AgentId, guard: CatalogGuard, limits: OrdinaryLimits, binding: OrdinaryBinding, ) -> BackendResult<Self>
pub fn client(&self) -> OrdinaryClient
pub async fn close(&self) -> BackendResult<()>
Sourcepub async fn close_guarded(&self, guard: CatalogGuard) -> BackendResult<()>
pub async fn close_guarded(&self, guard: CatalogGuard) -> BackendResult<()>
Administrative close, unlike unconditional owner shutdown. Rejection of an epoch/revision guard cannot retire or cancel the current operation. Once accepted, settlement remains owned if its waiting caller disappears. This is not a durable request-id receipt or an IPC authorization grant.
Trait Implementations§
Source§impl Drop for OrdinaryAgent
impl Drop for OrdinaryAgent
Auto Trait Implementations§
impl !RefUnwindSafe for OrdinaryAgent
impl !UnwindSafe for OrdinaryAgent
impl Forget for OrdinaryAgent
impl Freeze for OrdinaryAgent
impl Move for OrdinaryAgent
impl Send for OrdinaryAgent
impl Sync for OrdinaryAgent
impl Unpin for OrdinaryAgent
impl UnsafeUnpin for OrdinaryAgent
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