pub enum ContentState {
Resolved,
Pending,
Waiting,
Unavailable,
}Expand description
Where the content behind an address has got to.
A renderer that only knows “the bytes are not here” draws the same grey box for a transfer in flight and one that will never complete; the two must be distinguishable.
Variants§
Resolved
Pending
Waiting
Not here, and none of the devices that could hand it over is connected right now. It is fetched the moment one connects; nothing waits on a timer.
Not here, and nothing this store can reach is going to provide it: every device that could hold it said it does not.
Trait Implementations§
Source§impl Clone for ContentState
impl Clone for ContentState
impl Copy for ContentState
Source§impl Debug for ContentState
impl Debug for ContentState
Source§impl<'de> Deserialize<'de> for ContentState
impl<'de> Deserialize<'de> for ContentState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ContentState
Source§impl PartialEq for ContentState
impl PartialEq for ContentState
Source§impl Serialize for ContentState
impl Serialize for ContentState
impl StructuralPartialEq for ContentState
Auto Trait Implementations§
impl Forget for ContentState
impl Freeze for ContentState
impl Move for ContentState
impl RefUnwindSafe for ContentState
impl Send for ContentState
impl Sync for ContentState
impl Unpin for ContentState
impl UnsafeUnpin for ContentState
impl UnwindSafe for ContentState
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