Struct RunHandle
pub struct RunHandle { /* private fields */ }Expand description
A typed, runtime-owned reference to a completed training run.
The reference is intentionally opaque at this interface. In particular,
callers must not assume it is a filesystem path; the command adapter is the
layer that interprets it for oniro_cli.
Implementations§
§impl RunHandle
impl RunHandle
pub fn from_reference(reference: impl Into<String>) -> Self
pub fn from_reference(reference: impl Into<String>) -> Self
Creates a handle from a runtime-owned reference token.
pub fn as_reference(&self) -> &str
pub fn as_reference(&self) -> &str
Returns the runtime-owned token for storage or a later request.
Trait Implementations§
impl Eq for RunHandle
impl StructuralPartialEq for RunHandle
Auto Trait Implementations§
impl Freeze for RunHandle
impl RefUnwindSafe for RunHandle
impl Send for RunHandle
impl Sync for RunHandle
impl Unpin for RunHandle
impl UnsafeUnpin for RunHandle
impl UnwindSafe for RunHandle
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