pub struct RuntimeReporter { /* private fields */ }Expand description
Lightweight scheduler and transport for agent heartbeat/snapshot reporting.
Implementations§
Source§impl RuntimeReporter
impl RuntimeReporter
Sourcepub fn new(
config: AgentReportingConfig,
runtime_version: String,
active_spec_hash: String,
capabilities: RuntimeCapabilityDocument,
approval_trust: Option<AgentApprovalTrustStatus>,
) -> Self
pub fn new( config: AgentReportingConfig, runtime_version: String, active_spec_hash: String, capabilities: RuntimeCapabilityDocument, approval_trust: Option<AgentApprovalTrustStatus>, ) -> Self
Construct a runtime reporter from explicit config.
Sourcepub fn report_heartbeat_now(&self) -> Result<(), String>
pub fn report_heartbeat_now(&self) -> Result<(), String>
Send a heartbeat immediately.
Sourcepub fn report_heartbeat_if_due(&mut self) -> Result<(), String>
pub fn report_heartbeat_if_due(&mut self) -> Result<(), String>
Send a heartbeat when its interval has elapsed.
Trait Implementations§
Source§impl Clone for RuntimeReporter
impl Clone for RuntimeReporter
Source§fn clone(&self) -> RuntimeReporter
fn clone(&self) -> RuntimeReporter
Returns a duplicate of the value. Read more
1.0.0 · 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 RuntimeReporter
impl RefUnwindSafe for RuntimeReporter
impl Send for RuntimeReporter
impl Sync for RuntimeReporter
impl Unpin for RuntimeReporter
impl UnwindSafe for RuntimeReporter
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