pub enum Answer<'a> {
Available {
uri: &'a str,
software_version: u32,
software_version_string: &'a str,
update_token: &'a [u8],
user_consent_needed: bool,
},
Busy {
delay_s: u32,
},
NotAvailable,
ProtocolNotSupported,
}Expand description
What the provider has for a requestor.
Variants§
Available
§11.20.6.4’s UpdateAvailable: here it is.
Fields
Busy
Busy: there may be one, but not yet. Come back after delay_s.
NotAvailable
NotAvailable: “there is definitely no update currently available”.
ProtocolNotSupported
DownloadProtocolNotSupported: there is an image, but not one this requestor can fetch.
Trait Implementations§
impl<'a> Copy for Answer<'a>
impl<'a> Eq for Answer<'a>
impl<'a> StructuralPartialEq for Answer<'a>
Auto Trait Implementations§
impl<'a> Forget for Answer<'a>
impl<'a> Freeze for Answer<'a>
impl<'a> Move for Answer<'a>
impl<'a> RefUnwindSafe for Answer<'a>
impl<'a> Send for Answer<'a>
impl<'a> Sync for Answer<'a>
impl<'a> Unpin for Answer<'a>
impl<'a> UnsafeUnpin for Answer<'a>
impl<'a> UnwindSafe for Answer<'a>
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