pub struct EdgeRuntime { /* private fields */ }Expand description
Edge runtime for resource-constrained devices
Implementations§
Source§impl EdgeRuntime
impl EdgeRuntime
Sourcepub async fn new(config: EdgeConfig) -> Result<Self>
pub async fn new(config: EdgeConfig) -> Result<Self>
Create new edge runtime
Sourcepub fn state(&self) -> RuntimeState
pub fn state(&self) -> RuntimeState
Get current runtime state
Sourcepub fn compressor(&self) -> &Arc<AdaptiveCompressor>
pub fn compressor(&self) -> &Arc<AdaptiveCompressor>
Get compressor reference
Sourcepub fn resource_manager(&self) -> &Arc<ResourceManager>
pub fn resource_manager(&self) -> &Arc<ResourceManager>
Get resource manager reference
Sourcepub fn sync_manager(&self) -> Option<&Arc<SyncManager>>
pub fn sync_manager(&self) -> Option<&Arc<SyncManager>>
Get sync manager reference
Sourcepub fn health(&self) -> HealthStatus
pub fn health(&self) -> HealthStatus
Check health status
Sourcepub fn config(&self) -> &EdgeConfig
pub fn config(&self) -> &EdgeConfig
Get configuration
Sourcepub async fn wait_healthy(&self, timeout: Duration) -> Result<()>
pub async fn wait_healthy(&self, timeout: Duration) -> Result<()>
Wait for healthy state
Auto Trait Implementations§
impl Freeze for EdgeRuntime
impl !RefUnwindSafe for EdgeRuntime
impl Send for EdgeRuntime
impl Sync for EdgeRuntime
impl Unpin for EdgeRuntime
impl UnsafeUnpin for EdgeRuntime
impl !UnwindSafe for EdgeRuntime
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