pub struct Error(_);
Expand description
A SCPI error
If extended-error
feature is enabled, an optional extended
message can be added (Example: -241,"Hardware missing;Extended message"
).
Implementations
sourceimpl Error
impl Error
sourcepub fn extended(code: ErrorCode, _msg: &'static [u8]) -> Self
pub fn extended(code: ErrorCode, _msg: &'static [u8]) -> Self
Create new error with specified error code with an extended message
sourcepub fn get_message(&self) -> &'static [u8]
pub fn get_message(&self) -> &'static [u8]
Get message of error
Trait Implementations
sourceimpl Data for Error
impl Data for Error
fn format_response_data(&self, formatter: &mut dyn Formatter) -> Result<()>
impl Copy for Error
impl StructuralPartialEq for Error
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more