pub enum ObservationState {
Loading(RequestId),
Fresh,
Stale,
Error(ClientError),
}Expand description
Lifecycle of one cached observation.
Variants§
Loading(RequestId)
A request is currently loading this subject.
Fresh
The observation is the latest accepted value.
Stale
The value remains available but must be reobserved before use.
Error(ClientError)
The most recent observation attempt failed.
Trait Implementations§
Source§impl Clone for ObservationState
impl Clone for ObservationState
Source§impl Debug for ObservationState
impl Debug for ObservationState
impl Eq for ObservationState
Source§impl PartialEq for ObservationState
impl PartialEq for ObservationState
impl StructuralPartialEq for ObservationState
Auto Trait Implementations§
impl Freeze for ObservationState
impl RefUnwindSafe for ObservationState
impl Send for ObservationState
impl Sync for ObservationState
impl Unpin for ObservationState
impl UnsafeUnpin for ObservationState
impl UnwindSafe for ObservationState
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