pub enum StateReadError {
NotFound,
Parse,
Io(Error),
}Expand description
Error returned by read_state_json. NotFound (absent) and Parse
(present-but-unreadable JSON / empty / atomic-rename window) are transient:
the poll loop retries. Io is a non-transient filesystem fault
(EACCES/EROFS/EISDIR) that Python lets propagate rather than mask as a
timeout — the poll loop surfaces it as a fatal error.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for StateReadError
impl !UnwindSafe for StateReadError
impl Freeze for StateReadError
impl Send for StateReadError
impl Sync for StateReadError
impl Unpin for StateReadError
impl UnsafeUnpin for StateReadError
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