pub struct ErrorCodes(/* private fields */);Implementations§
Source§impl ErrorCodes
impl ErrorCodes
pub fn new() -> Self
pub fn set_command_not_supported(self) -> Self
pub fn set_invalid_element_number(self) -> Self
pub fn set_ddi_not_supported(self) -> Self
pub fn set_trigger_not_supported(self) -> Self
pub fn set_not_settable(self) -> Self
pub fn set_invalid_threshold(self) -> Self
pub fn set_not_conform_to_ddi(self) -> Self
pub fn set_value_out_of_range(self) -> Self
pub fn set_command(self, command: Command) -> Self
pub fn get_command(&self) -> Command
pub fn get_command_not_supported(&self) -> bool
pub fn get_invalid_element_number(&self) -> bool
pub fn get_ddi_not_supported(&self) -> bool
pub fn get_trigger_not_supported(&self) -> bool
pub fn get_not_settable(&self) -> bool
pub fn get_invalid_threshold(&self) -> bool
pub fn get_not_conform_to_ddi(&self) -> bool
pub fn get_value_out_of_range(&self) -> bool
pub fn get(&self) -> i32
pub fn set(&mut self, code: i32)
pub fn get_error_code(&self) -> u8
Trait Implementations§
Source§impl Clone for ErrorCodes
impl Clone for ErrorCodes
Source§fn clone(&self) -> ErrorCodes
fn clone(&self) -> ErrorCodes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ErrorCodes
impl Eq for ErrorCodes
Source§impl Format for ErrorCodes
impl Format for ErrorCodes
Source§impl PartialEq for ErrorCodes
impl PartialEq for ErrorCodes
Source§fn eq(&self, other: &ErrorCodes) -> bool
fn eq(&self, other: &ErrorCodes) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ErrorCodes
Auto Trait Implementations§
impl Freeze for ErrorCodes
impl RefUnwindSafe for ErrorCodes
impl Send for ErrorCodes
impl Sync for ErrorCodes
impl Unpin for ErrorCodes
impl UnsafeUnpin for ErrorCodes
impl UnwindSafe for ErrorCodes
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