pub struct UpdateInfo { /* private fields */ }
Expand description
Immutable metadata for an update attempt.
Implementations§
Source§impl UpdateInfo
impl UpdateInfo
Source§impl UpdateInfo
impl UpdateInfo
Sourcepub fn download_size(&self) -> u64
pub fn download_size(&self) -> u64
Gets the download_size field.
Trait Implementations§
Source§impl Arbitrary for UpdateInfo
impl Arbitrary for UpdateInfo
Source§type Parameters = <u64 as Arbitrary>::Parameters
type Parameters = <u64 as Arbitrary>::Parameters
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.Source§type Strategy = Map<<u64 as Arbitrary>::Strategy, fn(_: u64) -> UpdateInfo>
type Strategy = Map<<u64 as Arbitrary>::Strategy, fn(_: u64) -> UpdateInfo>
The type of
Strategy
used to generate values of type Self
.Source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
Source§impl Clone for UpdateInfo
impl Clone for UpdateInfo
Source§fn clone(&self) -> UpdateInfo
fn clone(&self) -> UpdateInfo
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 UpdateInfo
impl Debug for UpdateInfo
Source§impl<'de> Deserialize<'de> for UpdateInfo
impl<'de> Deserialize<'de> for UpdateInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<UpdateInfo> for UpdateInfo
impl From<UpdateInfo> for UpdateInfo
Source§fn from(info: UpdateInfo) -> Self
fn from(info: UpdateInfo) -> Self
Converts to this type from the input type.
Source§impl PartialEq for UpdateInfo
impl PartialEq for UpdateInfo
Source§impl PartialOrd for UpdateInfo
impl PartialOrd for UpdateInfo
Source§impl Serialize for UpdateInfo
impl Serialize for UpdateInfo
Source§impl TryFrom<UpdateInfo> for UpdateInfo
impl TryFrom<UpdateInfo> for UpdateInfo
Source§type Error = DecodeUpdateInfoError
type Error = DecodeUpdateInfoError
The type returned in the event of a conversion error.
impl Copy for UpdateInfo
impl StructuralPartialEq for UpdateInfo
Auto Trait Implementations§
impl Freeze for UpdateInfo
impl RefUnwindSafe for UpdateInfo
impl Send for UpdateInfo
impl Sync for UpdateInfo
impl Unpin for UpdateInfo
impl UnwindSafe for UpdateInfo
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)