pub enum ModelSource {
Path(PathBuf),
Bytes(Arc<[u8]>),
Mock(MockProfile),
}Expand description
Model bytes, filesystem path, or built-in mock profile for session creation.
Variants§
Path(PathBuf)
Read model bytes from this path during session creation.
Bytes(Arc<[u8]>)
Immutable in-memory model bytes.
Mock(MockProfile)
Deterministic in-process mock profile (no ONNX / no weights).
Trait Implementations§
Source§impl Clone for ModelSource
impl Clone for ModelSource
Source§fn clone(&self) -> ModelSource
fn clone(&self) -> ModelSource
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 moreAuto Trait Implementations§
impl Freeze for ModelSource
impl RefUnwindSafe for ModelSource
impl Send for ModelSource
impl Sync for ModelSource
impl Unpin for ModelSource
impl UnsafeUnpin for ModelSource
impl UnwindSafe for ModelSource
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