pub struct OtaImage {
pub file: String,
pub vendor_id: u16,
pub product_id: u16,
pub version: u32,
pub version_str: String,
pub min_applicable_version: Option<u32>,
pub max_applicable_version: Option<u32>,
pub size: u64,
/* private fields */
}Expand description
An OTA image file the controller offers.
Fields§
§file: StringThe file’s name in the OTA directory.
vendor_id: u16The vendor it is for; 0 for any.
product_id: u16The product it is for; 0 for any.
version: u32The software version it installs.
version_str: StringThe displayable version.
min_applicable_version: Option<u32>The oldest version it applies on top of.
max_applicable_version: Option<u32>The newest version it applies on top of.
size: u64The file’s size in bytes.
Implementations§
Trait Implementations§
impl Eq for OtaImage
impl StructuralPartialEq for OtaImage
Auto Trait Implementations§
impl Freeze for OtaImage
impl RefUnwindSafe for OtaImage
impl Send for OtaImage
impl Sync for OtaImage
impl Unpin for OtaImage
impl UnsafeUnpin for OtaImage
impl UnwindSafe for OtaImage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Init<T> for T
impl<T> Init<T> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T, I> IntoFallibleInit<T> for Iwhere
I: Init<T>,
impl<T, I> IntoFallibleInit<T> for Iwhere
I: Init<T>,
§fn into_fallible<E>(self) -> impl Init<T, E>
fn into_fallible<E>(self) -> impl Init<T, E>
Convert the infallible initializer to a fallible one.
impl<T> Loggable for T
impl<T> MaybeSend for Twhere
T: ?Sized,
impl<T> MaybeSendSync for Twhere
T: ?Sized,
§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.