pub struct Runtime {
pub directory: PathBuf,
pub sdk: PathBuf,
pub simulate: bool,
pub sdk_simulation: Option<Value>,
}Fields§
§directory: PathBuf§sdk: PathBuf§simulate: bool§sdk_simulation: Option<Value>Implementations§
Source§impl Runtime
impl Runtime
pub async fn usb_command(&self, args: &[&str], seconds: u64) -> Result<String>
pub async fn spawn(&self, direct: bool, log: Diagnostic) -> Result<Worker>
Sourcepub async fn list(
&self,
direct: bool,
log: Diagnostic,
token: &CancellationToken,
) -> Result<Value>
pub async fn list( &self, direct: bool, log: Diagnostic, token: &CancellationToken, ) -> Result<Value>
SDK discovery is active hardware probing, even in a short-lived worker: ASIGetCameraProperty can internally open cameras owned by other processes. Cache results and schedule SDK discovery before imaging, not as live polling. Worker isolation bounds user-space calls, not side effects on shared USB.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Runtime
impl RefUnwindSafe for Runtime
impl Send for Runtime
impl Sync for Runtime
impl Unpin for Runtime
impl UnsafeUnpin for Runtime
impl UnwindSafe for Runtime
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