pub enum Code {
Show 15 variants
DslParseError,
DslTypeError,
StreamReused,
StreamabilityUnknown,
InputOrderViolation,
CaptureOverlapUnsupported,
MissingValue,
DuplicateMember,
InvalidNumber,
ProtocolOrderError,
TargetValueUnrepresentable,
ResourceLimitExceeded,
InputInvalid,
OutputFailed,
Aborted,
}Expand description
The stable failure codes.
Variants§
DslParseError
The DSL source does not parse (reader or layout error).
DslTypeError
The DSL program does not type check, or names something unknown.
StreamReused
A one-shot stream was consumed twice.
StreamabilityUnknown
The plan’s streamability could not be established in strict mode.
InputOrderViolation
Input arrived in an order the plan’s contract forbids (a row before its metadata).
CaptureOverlapUnsupported
Two captures select overlapping scopes.
MissingValue
A required value is absent and no policy maps it.
DuplicateMember
An object repeats a member name under a policy that rejects that.
InvalidNumber
A number lexeme is not a valid number for the target.
ProtocolOrderError
A protocol event arrived out of sequence (a row before the schema, two schemas, a row of the wrong width, a missing end).
TargetValueUnrepresentable
The target format cannot represent the value (NaN in JSON, a table with no columns in CSV).
ResourceLimitExceeded
A configured limit was exceeded.
InputInvalid
The input did not parse, or is invalid for the source.
OutputFailed
Writing the output failed.
Aborted
The run was cancelled.
Implementations§
Trait Implementations§
impl Copy for Code
impl Eq for Code
impl StructuralPartialEq for Code
Auto Trait Implementations§
impl Freeze for Code
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnsafeUnpin for Code
impl UnwindSafe for Code
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
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<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.