filament-core · instance
Source declarations, signatures and documentation for instance.
Read the current implementation boundaries before integration. This reference reproduces declarations; it omits source comments whose examples or readiness claims have not been verified.
Source: sigil/weave/filament/filament-core/src/instance.rs. SHA-256: 063fa1a1c9c3e56ba8db34cb0e2c2be2c1dd9a7bc38b1b74d94e90abbff7ab23.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
instance::InstanceMode
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum InstanceMode {
/// Shared instance accessible via RPC.
Shared,
/// Isolated instance (private to this process).
Isolated,
}Source line: 18.
instance::Instance
#[derive(Clone)]
pub struct Instance {
}Source line: 76.
instance::Instance::new
pub async fn new(config: Config) -> Result<Self>;Source line: 87.
instance::Instance::run
pub async fn run(&self) -> Result<()>;Source line: 177.
instance::Instance::shutdown
pub async fn shutdown(&self) -> Result<()>;Source line: 247.
instance::Instance::config
pub fn config(&self) -> Config;Source line: 298.
instance::Instance::mode
pub fn mode(&self) -> InstanceMode;Source line: 303.
instance::Instance::uptime_secs
pub fn uptime_secs(&self) -> u64;Source line: 308.
instance::Instance::metrics
pub fn metrics(&self) -> Metrics;Source line: 313.
instance::Instance::is_running
pub fn is_running(&self) -> bool;Source line: 318.
instance::Instance::is_shutting_down
pub fn is_shutting_down(&self) -> bool;Source line: 323.
instance::Instance::is_stopped
pub fn is_stopped(&self) -> bool;Source line: 328.