pub struct Daemons;Expand description
Static API for managing the caller’s registered daemons.
Implementations§
Source§impl Daemons
impl Daemons
Sourcepub async fn list(
client_options: HeyoClientOptions,
) -> Result<Vec<DaemonInfo>, HeyoError>
pub async fn list( client_options: HeyoClientOptions, ) -> Result<Vec<DaemonInfo>, HeyoError>
List every daemon the authenticated user has registered.
Sourcepub async fn get(
id: &str,
client_options: HeyoClientOptions,
) -> Result<DaemonInfo, HeyoError>
pub async fn get( id: &str, client_options: HeyoClientOptions, ) -> Result<DaemonInfo, HeyoError>
Fetch a single daemon. Returns HeyoError::NotFound if the caller owns
no such daemon.
Sourcepub async fn delete(
id: &str,
client_options: HeyoClientOptions,
) -> Result<(), HeyoError>
pub async fn delete( id: &str, client_options: HeyoClientOptions, ) -> Result<(), HeyoError>
Unregister a daemon. Idempotent on 404 — passing an unknown id is a no-op, so reconciliation loops can call this freely. Existing sandboxes the daemon hosts are not deleted; they become unreachable until the daemon re-registers (or another daemon claims the same id).
Auto Trait Implementations§
impl Freeze for Daemons
impl RefUnwindSafe for Daemons
impl Send for Daemons
impl Sync for Daemons
impl Unpin for Daemons
impl UnsafeUnpin for Daemons
impl UnwindSafe for Daemons
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