pub enum ConfigCell {
Loading {
id: i64,
},
Loaded(String),
Unset,
Error(String),
}Expand description
Per-key fetch state.
Variants§
Loading
A get-config request is in flight with this envelope id.
Loaded(String)
Reply received; the value is the string from :config-value.
Unset
The key has no value set — get-config returned (:config-value nil).
Error(String)
A genuine failure: server error, or an envelope/parse error.
Trait Implementations§
Source§impl Clone for ConfigCell
impl Clone for ConfigCell
Source§fn clone(&self) -> ConfigCell
fn clone(&self) -> ConfigCell
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConfigCell
impl Debug for ConfigCell
Source§impl PartialEq for ConfigCell
impl PartialEq for ConfigCell
impl StructuralPartialEq for ConfigCell
Auto Trait Implementations§
impl Freeze for ConfigCell
impl RefUnwindSafe for ConfigCell
impl Send for ConfigCell
impl Sync for ConfigCell
impl Unpin for ConfigCell
impl UnsafeUnpin for ConfigCell
impl UnwindSafe for ConfigCell
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more