pub struct Unreadable {
pub reason: String,
pub stored: u32,
pub expected: u32,
}Expand description
A document that does not read as its resource: what a view shows in place of stale state, and why each action is unavailable.
Fields§
§reason: StringWhy, in the words of the read: where it failed and what it expected.
stored: u32The storage version the document names.
expected: u32The version the app reads.
Implementations§
Source§impl Unreadable
impl Unreadable
Sourcepub fn of<R: Resource>(doc: &Doc, error: &ModelError) -> Self
pub fn of<R: Resource>(doc: &Doc, error: &ModelError) -> Self
Why doc did not read as R, from the read’s error.
Trait Implementations§
Source§impl Clone for Unreadable
impl Clone for Unreadable
Source§impl Debug for Unreadable
impl Debug for Unreadable
Source§impl Display for Unreadable
impl Display for Unreadable
impl Eq for Unreadable
Source§impl PartialEq for Unreadable
impl PartialEq for Unreadable
impl StructuralPartialEq for Unreadable
Auto Trait Implementations§
impl Forget for Unreadable
impl Freeze for Unreadable
impl Move for Unreadable
impl RefUnwindSafe for Unreadable
impl Send for Unreadable
impl Sync for Unreadable
impl Unpin for Unreadable
impl UnsafeUnpin for Unreadable
impl UnwindSafe for Unreadable
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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