pub struct RuntimeClient { /* private fields */ }Implementations§
Source§impl RuntimeClient
impl RuntimeClient
pub fn auto() -> Self
pub fn daemon() -> Self
pub fn daemon_with_token(token: impl Into<String>) -> Self
pub fn local() -> Self
pub fn health(&self) -> Result<RuntimeRead<RuntimeHealth>>
pub fn snapshot(&self) -> Result<RuntimeRead<RuntimeSnapshot>>
pub fn dashboard(&self) -> Result<RuntimeRead<RuntimeDashboard>>
pub fn diagnostics(&self) -> Result<RuntimeRead<RuntimeDiagnostics>>
pub fn hygiene_preview(&self) -> Result<RuntimeRead<RuntimeHygienePreview>>
pub fn hygiene_archive(&self) -> Result<RuntimeRead<RuntimeHygieneArchive>>
pub fn task_detail(&self, id: &str) -> Result<RuntimeRead<RuntimeTaskDetail>>
pub fn approval_detail( &self, id: &str, ) -> Result<RuntimeRead<RuntimeApprovalDetail>>
pub fn checkpoint_detail( &self, id: &str, ) -> Result<RuntimeRead<RuntimeCheckpointDetail>>
pub fn list_tasks(&self, limit: usize) -> Result<RuntimeRead<Vec<TaskRecord>>>
pub fn list_processes( &self, limit: usize, ) -> Result<RuntimeRead<Vec<ProcessRecord>>>
pub fn list_approvals(&self) -> Result<RuntimeRead<Vec<ApprovalRecord>>>
pub fn list_tool_runs( &self, limit: usize, ) -> Result<RuntimeRead<Vec<ToolRunRecord>>>
pub fn list_checkpoints( &self, limit: usize, ) -> Result<RuntimeRead<Vec<CheckpointRecord>>>
pub fn list_plugins(&self) -> Result<RuntimeRead<Vec<PluginInstallRecord>>>
pub fn process_log( &self, id: &str, tail_bytes: Option<u64>, ) -> Result<RuntimeProcessLog>
pub fn stop_process(&self, id: &str) -> Result<RuntimeOne<ProcessRecord>>
pub fn restart_process(&self, id: &str) -> Result<RuntimeOne<ProcessRecord>>
pub fn open_process(&self, id: &str) -> Result<RuntimeProcessOpen>
pub fn ports(&self) -> Result<RuntimePorts>
pub fn approve(&self, id: &str) -> Result<RuntimeApprovalDecision>
pub fn deny(&self, id: &str) -> Result<RuntimeApprovalDecision>
pub fn restore_checkpoint(&self, id: &str) -> Result<RuntimeCheckpointRestore>
pub fn set_plugin_enabled(&self, id: &str, enabled: bool) -> Result<()>
pub fn model_info(&self, model: &str) -> Result<Value>
pub fn set_safety_mode(&self, mode: &str) -> Result<Value>
Trait Implementations§
Source§impl Clone for RuntimeClient
impl Clone for RuntimeClient
Source§fn clone(&self) -> RuntimeClient
fn clone(&self) -> RuntimeClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RuntimeClient
impl RefUnwindSafe for RuntimeClient
impl Send for RuntimeClient
impl Sync for RuntimeClient
impl Unpin for RuntimeClient
impl UnsafeUnpin for RuntimeClient
impl UnwindSafe for RuntimeClient
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more