pub enum EngineStatus {
Unloaded,
Loading,
Ready,
Generating,
Error,
}Expand description
Lifecycle status of the inference engine.
Variants§
Unloaded
No model loaded.
Loading
Model is being downloaded / loaded into memory.
Ready
Model is loaded and ready to accept requests.
Generating
Model is currently running inference.
Error
An error occurred (model may or may not still be loaded).
Trait Implementations§
Source§impl Clone for EngineStatus
impl Clone for EngineStatus
Source§fn clone(&self) -> EngineStatus
fn clone(&self) -> EngineStatus
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 moreSource§impl<UT> ConvertError<UT> for EngineStatus
impl<UT> ConvertError<UT> for EngineStatus
impl Copy for EngineStatus
Source§impl Debug for EngineStatus
impl Debug for EngineStatus
Source§impl<'de> Deserialize<'de> for EngineStatus
impl<'de> Deserialize<'de> for EngineStatus
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EngineStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EngineStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for EngineStatus
impl Display for EngineStatus
impl Eq for EngineStatus
Source§impl<UT> FfiConverter<UT> for EngineStatus
impl<UT> FfiConverter<UT> for EngineStatus
Source§const TYPE_ID_META: MetadataBuffer
const TYPE_ID_META: MetadataBuffer
Type ID metadata, serialized into a MetadataBuffer.
Source§type FfiType = RustBuffer
type FfiType = RustBuffer
The low-level type used for passing values of this type over the FFI. Read more
Source§fn lower(v: EngineStatus) -> RustBuffer
fn lower(v: EngineStatus) -> RustBuffer
Lower a rust value of the target type, into an FFI value of type Self::FfiType. Read more
Source§fn try_lift(buf: RustBuffer) -> Result<EngineStatus, Error>
fn try_lift(buf: RustBuffer) -> Result<EngineStatus, Error>
Lift a rust value of the target type, from an FFI value of type Self::FfiType. Read more
Source§impl<UT> Lift<UT> for EngineStatus
impl<UT> Lift<UT> for EngineStatus
type FfiType = <EngineStatus as FfiConverter<UT>>::FfiType
fn try_lift( v: <EngineStatus as Lift<UT>>::FfiType, ) -> Result<EngineStatus, Error>
fn try_read(buf: &mut &[u8]) -> Result<EngineStatus, Error>
Source§fn try_lift_from_rust_buffer(v: RustBuffer) -> Result<Self, Error>
fn try_lift_from_rust_buffer(v: RustBuffer) -> Result<Self, Error>
Convenience method
Source§impl<UT> LiftRef<UT> for EngineStatus
impl<UT> LiftRef<UT> for EngineStatus
type LiftType = EngineStatus
Source§impl<UT> LiftReturn<UT> for EngineStatus
impl<UT> LiftReturn<UT> for EngineStatus
Source§type ReturnType = <EngineStatus as Lift<UT>>::FfiType
type ReturnType = <EngineStatus as Lift<UT>>::FfiType
FFI return type for trait interfaces
Source§fn try_lift_successful_return(
v: <EngineStatus as LiftReturn<UT>>::ReturnType,
) -> Result<EngineStatus, Error>
fn try_lift_successful_return( v: <EngineStatus as LiftReturn<UT>>::ReturnType, ) -> Result<EngineStatus, Error>
Lift a successfully returned value from a trait interface
Source§fn lift_foreign_return(
ffi_return: Self::ReturnType,
call_status: RustCallStatus,
) -> Self
fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self
Lift a foreign returned value from a trait interface Read more
Source§fn lift_error(_buf: RustBuffer) -> Self
fn lift_error(_buf: RustBuffer) -> Self
Lift a Rust value for a callback interface method error result Read more
Source§fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
Lift a Rust value for an unexpected callback interface error Read more
Source§impl<UT> Lower<UT> for EngineStatus
impl<UT> Lower<UT> for EngineStatus
type FfiType = <EngineStatus as FfiConverter<UT>>::FfiType
fn lower(obj: EngineStatus) -> <EngineStatus as Lower<UT>>::FfiType
fn write(obj: EngineStatus, buf: &mut Vec<u8>)
Source§fn lower_into_rust_buffer(obj: Self) -> RustBuffer
fn lower_into_rust_buffer(obj: Self) -> RustBuffer
Convenience method
Source§impl<UT> LowerError<UT> for EngineStatus
impl<UT> LowerError<UT> for EngineStatus
Source§fn lower_error(obj: EngineStatus) -> RustBuffer
fn lower_error(obj: EngineStatus) -> RustBuffer
Lower this value for scaffolding function return Read more
Source§impl<UT> LowerReturn<UT> for EngineStatus
impl<UT> LowerReturn<UT> for EngineStatus
Source§type ReturnType = <EngineStatus as Lower<UT>>::FfiType
type ReturnType = <EngineStatus as Lower<UT>>::FfiType
The type that should be returned by scaffolding functions for this type. Read more
Source§fn lower_return(
v: EngineStatus,
) -> Result<<EngineStatus as LowerReturn<UT>>::ReturnType, RustCallError>
fn lower_return( v: EngineStatus, ) -> Result<<EngineStatus as LowerReturn<UT>>::ReturnType, RustCallError>
Lower the return value from an scaffolding call Read more
Source§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Lower the return value for failed argument lifts Read more
Source§impl PartialEq for EngineStatus
impl PartialEq for EngineStatus
Source§impl Serialize for EngineStatus
impl Serialize for EngineStatus
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for EngineStatus
Source§impl<UT> TypeId<UT> for EngineStatus
impl<UT> TypeId<UT> for EngineStatus
Auto Trait Implementations§
impl Freeze for EngineStatus
impl RefUnwindSafe for EngineStatus
impl Send for EngineStatus
impl Sync for EngineStatus
impl Unpin for EngineStatus
impl UnsafeUnpin for EngineStatus
impl UnwindSafe for EngineStatus
Blanket Implementations§
impl<T> Boilerplate for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for T
impl<T> Downcast for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more