#[repr(transparent)]pub struct DfuError(pub u8);Tuple Fields§
§0: u8Implementations§
Source§impl DfuError
impl DfuError
pub const Ok: DfuError
pub const Target: DfuError
pub const File: DfuError
pub const Write: DfuError
pub const Erase: DfuError
pub const CheckErased: DfuError
pub const Prog: DfuError
pub const Verify: DfuError
pub const Address: DfuError
pub const NotDone: DfuError
pub const Firmware: DfuError
pub const Vendor: DfuError
pub const UsbReset: DfuError
pub const PowerOnReset: DfuError
pub const Unknown: DfuError
pub const StalledPkt: DfuError
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DfuError
impl<'de> Deserialize<'de> for DfuError
Source§fn deserialize<D>(deserializer: D) -> Result<DfuError, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<DfuError, D::Error>where
D: Deserializer<'de>,
Deserializes the value by forwarding to deserialize_any.
deserialize_any will forward strings to the string visitor
and forward integers to the appropriate integer visitor.
Source§impl Error for DfuError
impl Error for DfuError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 FromBytes for DfuErrorwhere
u8: FromBytes,
impl FromBytes for DfuErrorwhere
u8: FromBytes,
Source§impl IntoBytes for DfuErrorwhere
u8: IntoBytes,
impl IntoBytes for DfuErrorwhere
u8: IntoBytes,
§fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
§fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
Source§impl Ord for DfuError
impl Ord for DfuError
Source§impl PartialOrd for DfuError
impl PartialOrd for DfuError
Source§impl TryFromBytes for DfuErrorwhere
u8: TryFromBytes,
impl TryFromBytes for DfuErrorwhere
u8: TryFromBytes,
§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
impl Copy for DfuError
impl Eq for DfuError
impl Immutable for DfuErrorwhere
u8: Immutable,
impl StructuralPartialEq for DfuError
Auto Trait Implementations§
impl Freeze for DfuError
impl RefUnwindSafe for DfuError
impl Send for DfuError
impl Sync for DfuError
impl Unpin for DfuError
impl UnwindSafe for DfuError
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