Struct CommandLineRuntime
pub struct CommandLineRuntime { /* private fields */ }Expand description
Runtime adapter backed by the oniro_cli executable.
Implementations§
§impl CommandLineRuntime
impl CommandLineRuntime
pub fn with_invocation_root(self, root: impl Into<PathBuf>) -> Self
pub fn with_invocation_root(self, root: impl Into<PathBuf>) -> Self
Restricts returned and resumed run artifacts to one invocation root.
The root is canonicalized at each operation boundary. This makes the check safe when a caller supplied a symlink or when a directory was replaced between operations; a path is accepted only when its existing canonical target remains strictly below this root.
Trait Implementations§
§impl Clone for CommandLineRuntime
impl Clone for CommandLineRuntime
§fn clone(&self) -> CommandLineRuntime
fn clone(&self) -> CommandLineRuntime
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 more§impl Debug for CommandLineRuntime
impl Debug for CommandLineRuntime
§impl OniroRuntime for CommandLineRuntime
impl OniroRuntime for CommandLineRuntime
Auto Trait Implementations§
impl Freeze for CommandLineRuntime
impl RefUnwindSafe for CommandLineRuntime
impl Send for CommandLineRuntime
impl Sync for CommandLineRuntime
impl Unpin for CommandLineRuntime
impl UnsafeUnpin for CommandLineRuntime
impl UnwindSafe for CommandLineRuntime
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