Struct gpiocdev_uapi::v1::UnderReadError
source · pub struct UnderReadError {
pub obj: &'static str,
pub expected: usize,
pub found: usize,
}
Expand description
A failure to read sufficient bytes to construct an object.
Fields§
§obj: &'static str
The struct that under read.
expected: usize
The number of bytes expected.
found: usize
The number of bytes read.
Trait Implementations§
source§impl Clone for UnderReadError
impl Clone for UnderReadError
source§fn clone(&self) -> UnderReadError
fn clone(&self) -> UnderReadError
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 UnderReadError
impl Debug for UnderReadError
source§impl Display for UnderReadError
impl Display for UnderReadError
source§impl Error for UnderReadError
impl Error for UnderReadError
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 From<UnderReadError> for Error
impl From<UnderReadError> for Error
source§fn from(source: UnderReadError) -> Self
fn from(source: UnderReadError) -> Self
Converts to this type from the input type.
source§impl PartialEq<UnderReadError> for UnderReadError
impl PartialEq<UnderReadError> for UnderReadError
source§fn eq(&self, other: &UnderReadError) -> bool
fn eq(&self, other: &UnderReadError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for UnderReadError
impl StructuralEq for UnderReadError
impl StructuralPartialEq for UnderReadError
Auto Trait Implementations§
impl RefUnwindSafe for UnderReadError
impl Send for UnderReadError
impl Sync for UnderReadError
impl Unpin for UnderReadError
impl UnwindSafe for UnderReadError
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