#[repr(u32)]pub enum ClientDownloadBlobError {
NetworkRateLimit = 1,
Network = 2,
NotFound = 3,
NoSpace = 4,
Other = 5,
}Variants§
NetworkRateLimit = 1
HTTP GET failed with server status 429 “Too Many Requests”.
Network = 2
Download failed because of networking related reasons.
NotFound = 3
Download failed because the remote file could not be found.
NoSpace = 4
Download failed because the device is out of space.
Other = 5
Download failed for unspecified reasons.
Implementations§
Source§impl ClientDownloadBlobError
impl ClientDownloadBlobError
pub fn from_primitive(prim: u32) -> Option<Self>
pub const fn into_primitive(self) -> u32
Trait Implementations§
Source§impl Clone for ClientDownloadBlobError
impl Clone for ClientDownloadBlobError
Source§fn clone(&self) -> ClientDownloadBlobError
fn clone(&self) -> ClientDownloadBlobError
Returns a duplicate 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 ClientDownloadBlobError
impl Debug for ClientDownloadBlobError
Source§impl<D: ResourceDialect> Decode<ClientDownloadBlobError, D> for ClientDownloadBlobError
impl<D: ResourceDialect> Decode<ClientDownloadBlobError, D> for ClientDownloadBlobError
Source§impl<D: ResourceDialect> Encode<ClientDownloadBlobError, D> for ClientDownloadBlobError
impl<D: ResourceDialect> Encode<ClientDownloadBlobError, D> for ClientDownloadBlobError
Source§impl Hash for ClientDownloadBlobError
impl Hash for ClientDownloadBlobError
Source§impl Ord for ClientDownloadBlobError
impl Ord for ClientDownloadBlobError
Source§fn cmp(&self, other: &ClientDownloadBlobError) -> Ordering
fn cmp(&self, other: &ClientDownloadBlobError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ClientDownloadBlobError
impl PartialEq for ClientDownloadBlobError
Source§impl PartialOrd for ClientDownloadBlobError
impl PartialOrd for ClientDownloadBlobError
Source§impl TypeMarker for ClientDownloadBlobError
impl TypeMarker for ClientDownloadBlobError
Source§type Owned = ClientDownloadBlobError
type Owned = ClientDownloadBlobError
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for ClientDownloadBlobError
impl ValueTypeMarker for ClientDownloadBlobError
Source§type Borrowed<'a> = ClientDownloadBlobError
type Borrowed<'a> = ClientDownloadBlobError
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreimpl Copy for ClientDownloadBlobError
impl Eq for ClientDownloadBlobError
impl StructuralPartialEq for ClientDownloadBlobError
Auto Trait Implementations§
impl Freeze for ClientDownloadBlobError
impl RefUnwindSafe for ClientDownloadBlobError
impl Send for ClientDownloadBlobError
impl Sync for ClientDownloadBlobError
impl Unpin for ClientDownloadBlobError
impl UnsafeUnpin for ClientDownloadBlobError
impl UnwindSafe for ClientDownloadBlobError
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