pub enum UnitRefusal {
TooLarge,
RecordTooLarge,
Withheld,
UnitAdmissionUnsupported,
Unreadable,
}Expand description
Why RootedUnitSource::admit_records refused the source. Content-free.
Variants§
TooLarge
More than max_total_bytes were read.
RecordTooLarge
One record alone is above unit_bytes.
Withheld
Admission withheld a unit or a seam, or delivered it for a reader only.
UnitAdmissionUnsupported
The active rules cannot be applied unit by unit.
Unreadable
A read failed, a unit is not UTF-8 text, or the caller’s sink failed.
Trait Implementations§
Source§impl Clone for UnitRefusal
impl Clone for UnitRefusal
Source§fn clone(&self) -> UnitRefusal
fn clone(&self) -> UnitRefusal
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UnitRefusal
Source§impl Debug for UnitRefusal
impl Debug for UnitRefusal
impl Eq for UnitRefusal
Source§impl PartialEq for UnitRefusal
impl PartialEq for UnitRefusal
impl StructuralPartialEq for UnitRefusal
Auto Trait Implementations§
impl Forget for UnitRefusal
impl Freeze for UnitRefusal
impl Move for UnitRefusal
impl RefUnwindSafe for UnitRefusal
impl Send for UnitRefusal
impl Sync for UnitRefusal
impl Unpin for UnitRefusal
impl UnsafeUnpin for UnitRefusal
impl UnwindSafe for UnitRefusal
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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