pub enum BodyRefusal {
Short,
Leb128,
Time,
Id,
Order,
Flags,
Run,
Trailing,
}Expand description
Why a page’s body is refused, by its reading or by a writer, which writes nothing the reading refuses (core §7.5, “Reading a snapshot’s body”). The variants are in §7.5’s order, the first that applies reading the fields in order, and for one field the first in this order.
Variants§
Short
The body ends before a byte a field needs, an integer’s last byte included.
Leb128
An integer whose fifth byte has its high bit set, one above 2^32 − 1, or one not in its shortest form.
Time
A time or a conf whose ms16 is unused: above 999, or any but 0 with t32 all ones.
Id
An id that is neither empty nor plain chunks joined by /.
Order
An id not above the one before it in its list, or a tombstone’s id that a live entry of the body has.
Flags
A flags byte with a bit from 3 to 0 set, bit 4 without bit 7, confirmation 3, or a tombstone’s confirmation other than 0.
Run
An entry’s own run that is the header’s, in width and value.
Trailing
A byte after the last tombstone.
Implementations§
Trait Implementations§
Source§impl Clone for BodyRefusal
impl Clone for BodyRefusal
impl Copy for BodyRefusal
Source§impl Debug for BodyRefusal
impl Debug for BodyRefusal
Source§impl Display for BodyRefusal
impl Display for BodyRefusal
impl Eq for BodyRefusal
Source§impl Error for BodyRefusal
impl Error for BodyRefusal
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl Hash for BodyRefusal
impl Hash for BodyRefusal
Source§impl PartialEq for BodyRefusal
impl PartialEq for BodyRefusal
impl StructuralPartialEq for BodyRefusal
Auto Trait Implementations§
impl Forget for BodyRefusal
impl Freeze for BodyRefusal
impl Move for BodyRefusal
impl RefUnwindSafe for BodyRefusal
impl Send for BodyRefusal
impl Sync for BodyRefusal
impl Unpin for BodyRefusal
impl UnsafeUnpin for BodyRefusal
impl UnwindSafe for BodyRefusal
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> ⓘ
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> ⓘ
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