#[repr(transparent)]pub struct DfuState(pub u8);Tuple Fields§
§0: u8Implementations§
Source§impl DfuState
impl DfuState
pub const AppIdle: DfuState
pub const AppDetach: DfuState
pub const Idle: DfuState
pub const DnLoadSync: DfuState
pub const DnLoadBusy: DfuState
pub const DnLoadIdle: DfuState
pub const ManifestSync: DfuState
pub const Manifest: DfuState
pub const ManifestWaitReset: DfuState
pub const UpLoadIdle: DfuState
pub const Error: DfuState
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DfuState
impl<'de> Deserialize<'de> for DfuState
Source§fn deserialize<D>(deserializer: D) -> Result<DfuState, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<DfuState, 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 FromBytes for DfuStatewhere
u8: FromBytes,
impl FromBytes for DfuStatewhere
u8: FromBytes,
Source§impl IntoBytes for DfuStatewhere
u8: IntoBytes,
impl IntoBytes for DfuStatewhere
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 DfuState
impl Ord for DfuState
Source§impl PartialOrd for DfuState
impl PartialOrd for DfuState
Source§impl TryFromBytes for DfuStatewhere
u8: TryFromBytes,
impl TryFromBytes for DfuStatewhere
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 DfuState
impl Eq for DfuState
impl Immutable for DfuStatewhere
u8: Immutable,
impl StructuralPartialEq for DfuState
Auto Trait Implementations§
impl Freeze for DfuState
impl RefUnwindSafe for DfuState
impl Send for DfuState
impl Sync for DfuState
impl Unpin for DfuState
impl UnwindSafe for DfuState
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