Struct sandkiste::errors::MachineError
source · pub struct MachineError {
pub boxed: Box<MachineErrorUnboxed>,
}
Expand description
Runtime or compiler errors that may refer to a specific position in code
Fields§
§boxed: Box<MachineErrorUnboxed>
Implementations§
source§impl MachineError
impl MachineError
sourcepub fn set_kind(self, kind: MachineErrorKind) -> Self
pub fn set_kind(self, kind: MachineErrorKind) -> Self
Builder-style method to set the MachineErrorKind
sourcepub fn set_message(self, message: String) -> Self
pub fn set_message(self, message: String) -> Self
Builder-style method to set an error message
sourcepub fn set_message_str(self, message: &str) -> Self
pub fn set_message_str(self, message: &str) -> Self
Builder-style method to set an error message
using a str
slice
sourcepub fn set_message_opt(self, message: Option<String>) -> Self
pub fn set_message_opt(self, message: Option<String>) -> Self
sourcepub fn set_machine_backtrace(self, machine_backtrace: String) -> Self
pub fn set_machine_backtrace(self, machine_backtrace: String) -> Self
Builder-style method to set machine_backtrace
sourcepub fn set_machine_backtrace_opt(
self,
machine_backtrace: Option<String>
) -> Self
pub fn set_machine_backtrace_opt( self, machine_backtrace: Option<String> ) -> Self
Builder-style method to set a machine_backtrace
option
sourcepub fn set_message_incl_chunk_name(self) -> Self
pub fn set_message_incl_chunk_name(self) -> Self
Builder-style method to set message_incl_chunk_name
to true
sourcepub fn set_message_incl_chunk_name_bool(
self,
message_incl_chunk_name: bool
) -> Self
pub fn set_message_incl_chunk_name_bool( self, message_incl_chunk_name: bool ) -> Self
Builder-style method to set message_incl_chunk_name
to bool
sourcepub fn set_chunk_name(self, chunk_name: String) -> Self
pub fn set_chunk_name(self, chunk_name: String) -> Self
Builder-style method to set chunk_name
sourcepub fn set_chunk_name_opt(self, chunk_name: Option<String>) -> Self
pub fn set_chunk_name_opt(self, chunk_name: Option<String>) -> Self
Builder-style method to set chunk_name
option
sourcepub fn set_message_incl_pos(self) -> Self
pub fn set_message_incl_pos(self) -> Self
Builder-style method to set message_incl_pos
to true
sourcepub fn set_message_incl_pos_bool(self, message_incl_pos: bool) -> Self
pub fn set_message_incl_pos_bool(self, message_incl_pos: bool) -> Self
Builder-style method to set message_incl_pos
to a bool
sourcepub fn set_column(self, column: usize) -> Self
pub fn set_column(self, column: usize) -> Self
Builder-style method to set column
sourcepub fn set_column_opt(self, column: Option<usize>) -> Self
pub fn set_column_opt(self, column: Option<usize>) -> Self
sourcepub fn set_position(self, position: usize) -> Self
pub fn set_position(self, position: usize) -> Self
Builder-style method to set position
Trait Implementations§
source§impl Clone for MachineError
impl Clone for MachineError
source§fn clone(&self) -> MachineError
fn clone(&self) -> MachineError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MachineError
impl Debug for MachineError
source§impl Default for MachineError
impl Default for MachineError
source§fn default() -> MachineError
fn default() -> MachineError
Returns the “default value” for a type. Read more
source§impl Deref for MachineError
impl Deref for MachineError
source§impl DerefMut for MachineError
impl DerefMut for MachineError
source§impl Display for MachineError
impl Display for MachineError
source§impl Error for MachineError
impl Error for MachineError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl<D> From<DatumConversionFailure<D>> for MachineError
impl<D> From<DatumConversionFailure<D>> for MachineError
source§fn from(failure: DatumConversionFailure<D>) -> Self
fn from(failure: DatumConversionFailure<D>) -> Self
Converts to this type from the input type.
source§impl From<TypeMismatch> for MachineError
impl From<TypeMismatch> for MachineError
source§fn from(datum_err: TypeMismatch) -> Self
fn from(datum_err: TypeMismatch) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for MachineError
impl Send for MachineError
impl Sync for MachineError
impl Unpin for MachineError
impl UnwindSafe for MachineError
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