pub enum KeyState {
Accepted {
expires_at: i64,
},
NoneKept,
KeptRefused,
Failed(String),
}Expand description
The state of the subscription key, as far as it was checked.
Variants§
Accepted
The gateway took it (GET /v1/models); it expires at these Unix
seconds.
NoneKept
None is kept yet, and none was issued here (visdom doctor).
KeptRefused
The kept one was refused; visdom issues another when it starts.
Failed(String)
None could be had, or the gateway refused it; the text says why.
Trait Implementations§
impl Eq for KeyState
impl StructuralPartialEq for KeyState
Auto Trait Implementations§
impl Forget for KeyState
impl Freeze for KeyState
impl Move for KeyState
impl RefUnwindSafe for KeyState
impl Send for KeyState
impl Sync for KeyState
impl Unpin for KeyState
impl UnsafeUnpin for KeyState
impl UnwindSafe for KeyState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.