pub struct Error(/* private fields */);
Expand description
A SCPI error
Implementations§
Source§impl Error
impl Error
Sourcepub fn custom(code: i16, desc: &'static [u8]) -> Self
pub fn custom(code: i16, desc: &'static [u8]) -> Self
Create new error with a custom (unchecked) code
Sourcepub fn extended(self, msg: &'static [u8]) -> Self
pub fn extended(self, 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
Sourcepub fn get_extended(&self) -> Option<&'static [u8]>
pub fn get_extended(&self) -> Option<&'static [u8]>
Get extended message of error
Trait Implementations§
Source§impl ResponseData for Error
impl ResponseData for Error
impl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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