pub enum ModalityDegradationReason {
Disabled,
MissingEndpoint,
Unauthorized,
Unreachable,
UnexpectedStatus,
Unavailable,
TranscriptionError,
TranslationError,
TranslationUnavailable,
VisionError,
}Expand description
Why a modality capability (transcription, translation, vision, or a daemon capability probe) degraded.
The serialized snake_case names double as the marker strings written into
vault frontmatter (transcription_degradation, vision_degradation,
media_degradation) and daemon capability reports, so variants must keep
their names stable; use Self::as_str when embedding a marker in text.
Variants§
Disabled
Routing turned the capability off.
MissingEndpoint
No endpoint is configured for the capability.
The endpoint rejected the configured credentials.
Unreachable
The endpoint could not be reached.
UnexpectedStatus
The endpoint answered with an unexpected HTTP status.
The capability depends on something that was already degraded upstream.
TranscriptionError
Transcription was attempted and failed.
TranslationError
Translation was attempted and failed.
Translation support is not compiled in or configured.
VisionError
Vision extraction was attempted and failed.
Implementations§
Trait Implementations§
Source§impl Clone for ModalityDegradationReason
impl Clone for ModalityDegradationReason
Source§fn clone(&self) -> ModalityDegradationReason
fn clone(&self) -> ModalityDegradationReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ModalityDegradationReason
Source§impl Debug for ModalityDegradationReason
impl Debug for ModalityDegradationReason
Source§impl<'de> Deserialize<'de> for ModalityDegradationReason
impl<'de> Deserialize<'de> for ModalityDegradationReason
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>,
Source§impl Display for ModalityDegradationReason
impl Display for ModalityDegradationReason
impl Eq for ModalityDegradationReason
Source§impl PartialEq for ModalityDegradationReason
impl PartialEq for ModalityDegradationReason
Source§fn eq(&self, other: &ModalityDegradationReason) -> bool
fn eq(&self, other: &ModalityDegradationReason) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ModalityDegradationReason
Auto Trait Implementations§
impl Freeze for ModalityDegradationReason
impl RefUnwindSafe for ModalityDegradationReason
impl Send for ModalityDegradationReason
impl Sync for ModalityDegradationReason
impl Unpin for ModalityDegradationReason
impl UnsafeUnpin for ModalityDegradationReason
impl UnwindSafe for ModalityDegradationReason
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
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<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
key and return true if they are equal.