pub struct RuntimeId(/* private fields */);Expand description
The identifier of a runtime adapter that can execute a model.
Implementations§
Source§impl RuntimeId
impl RuntimeId
Sourcepub fn whisper_cpp() -> Self
pub fn whisper_cpp() -> Self
The well-known whisper-cpp value.
Sourcepub fn apple_foundation() -> Self
pub fn apple_foundation() -> Self
The well-known apple-foundation value.
Sourcepub fn openai_endpoint() -> Self
pub fn openai_endpoint() -> Self
The well-known generic:openai-server value.
Sourcepub fn embeddings() -> Self
pub fn embeddings() -> Self
The well-known python:embeddings value.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RuntimeId
impl<'de> Deserialize<'de> for RuntimeId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RuntimeId
Source§impl Ord for RuntimeId
impl Ord for RuntimeId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for RuntimeId
impl PartialOrd for RuntimeId
impl StructuralPartialEq for RuntimeId
Auto Trait Implementations§
impl Freeze for RuntimeId
impl RefUnwindSafe for RuntimeId
impl Send for RuntimeId
impl Sync for RuntimeId
impl Unpin for RuntimeId
impl UnsafeUnpin for RuntimeId
impl UnwindSafe for RuntimeId
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