pub enum IntersticeError {
Show 27 variants
NodeNotFound(NodeId),
AuthorityAlreadyTaken(String, String, String),
Unauthorized(Authority),
ModuleAlreadyExists(String),
ModuleNotFound(String, String),
ModuleVersionMismatch(String, String, Version, Version),
TableNotFound {
module_name: String,
table_name: String,
},
ReducerNotFound {
module: String,
reducer: String,
},
RowNotFound {
primary_key_value: IndexKey,
},
UniqueConstraintViolation {
table_name: String,
field_name: String,
},
IndexNotFound {
table_name: String,
field_name: String,
},
IndexQueryUnsupported {
table_name: String,
field_name: String,
},
AutoIncUpdateNotAllowed {
table_name: String,
field_name: String,
},
InvalidRow {
module: String,
table: String,
},
ReducerCycle {
module: String,
reducer: String,
},
MissingExport(&'static str),
WasmFuncNotFound(String),
BadSignature(String),
InvalidSchema,
AbiVersionMismatch {
expected: u16,
found: u16,
},
WasmTrap(String),
MemoryRead,
MemoryWrite,
NetworkSendFailed,
UnknownPeer,
ProtocolError(String),
Internal(String),
}Variants§
NodeNotFound(NodeId)
AuthorityAlreadyTaken(String, String, String)
ModuleAlreadyExists(String)
ModuleNotFound(String, String)
ModuleVersionMismatch(String, String, Version, Version)
TableNotFound
ReducerNotFound
RowNotFound
UniqueConstraintViolation
IndexNotFound
IndexQueryUnsupported
AutoIncUpdateNotAllowed
InvalidRow
ReducerCycle
MissingExport(&'static str)
WasmFuncNotFound(String)
BadSignature(String)
InvalidSchema
AbiVersionMismatch
WasmTrap(String)
MemoryRead
MemoryWrite
NetworkSendFailed
UnknownPeer
ProtocolError(String)
Internal(String)
Trait Implementations§
Source§impl Debug for IntersticeError
impl Debug for IntersticeError
Source§impl Display for IntersticeError
impl Display for IntersticeError
Source§impl Error for IntersticeError
impl Error for IntersticeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for IntersticeError
impl RefUnwindSafe for IntersticeError
impl Send for IntersticeError
impl Sync for IntersticeError
impl Unpin for IntersticeError
impl UnsafeUnpin for IntersticeError
impl UnwindSafe for IntersticeError
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
Source§impl<T> Colorize for Twhere
T: Display,
impl<T> Colorize for Twhere
T: Display,
Source§fn colorize(&self, color_code: &str) -> String
fn colorize(&self, color_code: &str) -> String
Returns a colored version of the string
Internal method to apply ANSI color codes to text.
This is used by all other coloring methods.
Source§fn bright_red(&self) -> String
fn bright_red(&self) -> String
Colors the text bright red using ANSI escape codes.
Source§fn bright_green(&self) -> String
fn bright_green(&self) -> String
Colors the text bright green using ANSI escape codes.
Source§fn bright_yellow(&self) -> String
fn bright_yellow(&self) -> String
Colors the text bright yellow using ANSI escape codes.
Source§fn bright_blue(&self) -> String
fn bright_blue(&self) -> String
Colors the text bright blue using ANSI escape codes.
Source§fn bright_magenta(&self) -> String
fn bright_magenta(&self) -> String
Colors the text bright magenta using ANSI escape codes.
Source§fn bright_cyan(&self) -> String
fn bright_cyan(&self) -> String
Colors the text bright cyan using ANSI escape codes.
Source§fn bright_white(&self) -> String
fn bright_white(&self) -> String
Colors the text bright white using ANSI escape codes.
Source§fn italic(&self) -> String
fn italic(&self) -> String
Makes the text italic using ANSI escape codes.
Note: Not all terminals support italic text.
Source§fn strikethrough(&self) -> String
fn strikethrough(&self) -> String
Adds a strikethrough to the text using ANSI escape codes.
Note: Not all terminals support strikethrough.
Source§fn on_magenta(&self) -> String
fn on_magenta(&self) -> String
Sets the background color to magenta using ANSI escape codes.
Source§fn rgb(&self, r: u8, g: u8, b: u8) -> String
fn rgb(&self, r: u8, g: u8, b: u8) -> String
Set text color using RGB values (0-255, compile-time enforced)
Source§fn on_rgb(&self, r: u8, g: u8, b: u8) -> String
fn on_rgb(&self, r: u8, g: u8, b: u8) -> String
Set background color using RGB values (0-255, compile-time enforced)
Source§fn hsl(&self, h: f32, s: f32, l: f32) -> String
fn hsl(&self, h: f32, s: f32, l: f32) -> String
Set text color using HSL values (hue: 0-360, saturation: 0-100, lightness: 0-100)
Source§fn on_hsl(&self, h: f32, s: f32, l: f32) -> String
fn on_hsl(&self, h: f32, s: f32, l: f32) -> String
Set background color using HSL values (hue: 0-360, saturation: 0-100, lightness: 0-100)
Source§fn hex(&self, hex: &str) -> String
fn hex(&self, hex: &str) -> String
Set text color using hex code (e.g., “#ff8000” or “ff8000”).
Returns uncolored text if the hex code is invalid.
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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