#[non_exhaustive]pub enum LeanExceptionKind {
Show 20 variants
AlreadyExists,
OtherError,
ResourceBusy,
ResourceVanished,
UnsupportedOperation,
HardwareFault,
UnsatisfiedConstraints,
IllegalOperation,
ProtocolError,
TimeExpired,
Interrupted,
NoFileOrDirectory,
InvalidArgument,
PermissionDenied,
ResourceExhausted,
InappropriateType,
NoSuchThing,
UnexpectedEof,
UserError,
Other,
}Expand description
Constructor tag for Lean’s IO.Error.
1:1 with IO.Error at the active Lean toolchain version (4.29.1 —
see src/lean/Init/System/IOError.lean), plus an Other catch-all
for tag values not in the declaration. The crate-internal decoder
maps the raw lean_obj_tag to a variant via a const table; a unit
test anchors the userError mapping against the live Lean runtime
and will fail if the constructor index drifts.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AlreadyExists
IO.Error.alreadyExists
OtherError
IO.Error.otherError
ResourceBusy
IO.Error.resourceBusy
ResourceVanished
IO.Error.resourceVanished
UnsupportedOperation
IO.Error.unsupportedOperation
HardwareFault
IO.Error.hardwareFault
UnsatisfiedConstraints
IO.Error.unsatisfiedConstraints
IllegalOperation
IO.Error.illegalOperation
ProtocolError
IO.Error.protocolError
TimeExpired
IO.Error.timeExpired
Interrupted
IO.Error.interrupted
NoFileOrDirectory
IO.Error.noFileOrDirectory
InvalidArgument
IO.Error.invalidArgument
PermissionDenied
IO.Error.permissionDenied
ResourceExhausted
IO.Error.resourceExhausted
InappropriateType
IO.Error.inappropriateType
NoSuchThing
IO.Error.noSuchThing
UnexpectedEof
IO.Error.unexpectedEof
UserError
IO.Error.userError
Other
Tag did not match any known IO.Error constructor at the active
Lean toolchain version.
Trait Implementations§
Source§impl Clone for LeanExceptionKind
impl Clone for LeanExceptionKind
Source§fn clone(&self) -> LeanExceptionKind
fn clone(&self) -> LeanExceptionKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LeanExceptionKind
impl Debug for LeanExceptionKind
Source§impl PartialEq for LeanExceptionKind
impl PartialEq for LeanExceptionKind
Source§fn eq(&self, other: &LeanExceptionKind) -> bool
fn eq(&self, other: &LeanExceptionKind) -> bool
self and other values to be equal, and is used by ==.