#[repr(u32)]pub enum ResolverError {
Internal = 1,
Io = 2,
InvalidArgs = 3,
NotSupported = 4,
ManifestNotFound = 5,
PackageNotFound = 6,
NoSpace = 7,
ResourceUnavailable = 8,
InvalidManifest = 9,
ConfigValuesNotFound = 10,
AbiRevisionNotFound = 11,
InvalidAbiRevision = 12,
}
Expand description
The possible error conditions returned by ComponentResolver.
Variants§
Internal = 1
An unexpected error occurred.
Io = 2
A general IO error occurred.
InvalidArgs = 3
The component URL was malformed.
NotSupported = 4
The repository specified in the URL is unsupported.
ManifestNotFound = 5
The component manifest was not found.
PackageNotFound = 6
The component’s package was not found.
NoSpace = 7
Insufficient space on device to store component’s package.
The component is temporarily unavailable.
InvalidManifest = 9
The component manifest could not be parsed or it contained invalid configuration.
ConfigValuesNotFound = 10
The component specifies configuration fields but the values were not found.
AbiRevisionNotFound = 11
The ABI revision file could not be found.
InvalidAbiRevision = 12
The ABI revision value could not be parsed.
Implementations§
Source§impl ResolverError
impl ResolverError
pub fn from_primitive(prim: u32) -> Option<Self>
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
👎Deprecated: Strict enums should not use
is_unknown
Trait Implementations§
Source§impl Clone for ResolverError
impl Clone for ResolverError
Source§fn clone(&self) -> ResolverError
fn clone(&self) -> ResolverError
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 ResolverError
impl Debug for ResolverError
Source§impl<D: ResourceDialect> Decode<ResolverError, D> for ResolverError
impl<D: ResourceDialect> Decode<ResolverError, D> for ResolverError
Source§impl<D: ResourceDialect> Encode<ResolverError, D> for ResolverError
impl<D: ResourceDialect> Encode<ResolverError, D> for ResolverError
Source§impl Hash for ResolverError
impl Hash for ResolverError
Source§impl Ord for ResolverError
impl Ord for ResolverError
Source§fn cmp(&self, other: &ResolverError) -> Ordering
fn cmp(&self, other: &ResolverError) -> 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 ResolverError
impl PartialEq for ResolverError
Source§impl PartialOrd for ResolverError
impl PartialOrd for ResolverError
Source§impl TypeMarker for ResolverError
impl TypeMarker for ResolverError
Source§type Owned = ResolverError
type Owned = ResolverError
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 ResolverError
impl ValueTypeMarker for ResolverError
Source§type Borrowed<'a> = ResolverError
type Borrowed<'a> = ResolverError
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 ResolverError
impl Eq for ResolverError
impl StructuralPartialEq for ResolverError
Auto Trait Implementations§
impl Freeze for ResolverError
impl RefUnwindSafe for ResolverError
impl Send for ResolverError
impl Sync for ResolverError
impl Unpin for ResolverError
impl UnwindSafe for ResolverError
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
)