pub enum SourceRefusal {
OutsideRoot,
Withheld,
TooLarge,
RecordTooLarge,
UnitAdmissionUnsupported,
TooManyFacts,
Changed,
Unreadable,
DatabaseUnreadable,
UnsupportedSchema,
}Expand description
Why a history source (a transcript file, a history database) was not read. Typed and content-free: no path, no byte of the source.
Variants§
OutsideRoot
It does not resolve inside any named root (symlinks resolved).
Withheld
A path rule, the project policy or the gateway withholds it, or it is delivered for a reader only and may not feed a store (E3).
TooLarge
It is larger than the total cap of its kind
(bounded::MAX_TRANSCRIPT_BYTES, database::MAX_HISTORY_DATABASE_BYTES;
the read cap for a single JSON document, which is one record). A
source is never read in part.
RecordTooLarge
One record of a transcript is larger than the per-record bound (the read cap). A record is never cut and never passed uninspected, so the transcript is not imported.
UnitAdmissionUnsupported
A transcript above the read cap cannot be admitted piece by piece without being judged more weakly than as a whole: a rule that is active now can match across lines without a bound (a policy-pack or configured pattern not proven single-line, a semantic detector), or a piece ends inside such a match of a built-in rule. It is not read — as it was not before transcripts above the cap were read at all.
TooManyFacts
One transcript or database yields more distinct facts than may be held
pending until it is read to its end (staging::MAX_PENDING_BYTES). It
is not imported in part.
Changed
It is no longer the file that was verified, or it was written while it was read: exchanged at its path, or changed in size or time.
Unreadable
It cannot be read as text (missing, binary, I/O error).
DatabaseUnreadable
A verified database that the engine cannot open, or whose rows cannot be stepped or decoded to their end. It is not imported in part.
UnsupportedSchema
A database without the tables and columns its importer reads.
Trait Implementations§
Source§impl Clone for SourceRefusal
impl Clone for SourceRefusal
impl Copy for SourceRefusal
Source§impl Debug for SourceRefusal
impl Debug for SourceRefusal
Source§impl Display for SourceRefusal
The fixed, content-free sentence of each refusal: no path, no byte of the
source, no engine or driver message.
impl Display for SourceRefusal
The fixed, content-free sentence of each refusal: no path, no byte of the source, no engine or driver message.
impl Eq for SourceRefusal
Source§impl PartialEq for SourceRefusal
impl PartialEq for SourceRefusal
impl StructuralPartialEq for SourceRefusal
Auto Trait Implementations§
impl Forget for SourceRefusal
impl Freeze for SourceRefusal
impl Move for SourceRefusal
impl RefUnwindSafe for SourceRefusal
impl Send for SourceRefusal
impl Sync for SourceRefusal
impl Unpin for SourceRefusal
impl UnsafeUnpin for SourceRefusal
impl UnwindSafe for SourceRefusal
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> ⓘ
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