#[repr(u32)]pub enum RealmBuilderError {
Show 23 variants
ChildAlreadyExists = 0,
InvalidManifestExtension = 1,
InvalidComponentDecl = 2,
NoSuchChild = 3,
ChildDeclNotVisible = 4,
NoSuchSource = 5,
NoSuchTarget = 6,
CapabilitiesEmpty = 7,
TargetsEmpty = 8,
SourceAndTargetMatch = 9,
DeclNotFound = 10,
DeclReadError = 11,
BuildAlreadyCalled = 12,
CapabilityInvalid = 13,
InvalidChildRealmHandle = 14,
ImmutableProgram = 15,
UrlIsNotRelative = 16,
InvalidPkgDirHandle = 17,
NoConfigSchema = 18,
NoSuchConfigField = 19,
ConfigValueInvalid = 20,
ConfigOverrideUnsupported = 21,
InvalidChildDecl = 22,
}
Expand description
Errors that may be returned by the Realm
and Builder
protocols.
Will be renamed to RealmBuilderError
once the other definition under this
name earlier in this file is removed.
Variants§
ChildAlreadyExists = 0
Child cannot be added to the realm, as there is already a child in the realm with that name.
InvalidManifestExtension = 1
A legacy component URL was given to AddChild
, or a modern component
url was given to AddLegacyChild
.
InvalidComponentDecl = 2
A component declaration failed validation.
NoSuchChild = 3
The referenced child does not exist.
ChildDeclNotVisible = 4
The component declaration for the referenced child cannot be viewed nor manipulated by RealmBuilder, because the child was added to the realm using an URL that was neither a fragment-only nor a legacy URL.
NoSuchSource = 5
The source does not exist.
NoSuchTarget = 6
A target does not exist.
CapabilitiesEmpty = 7
The capabilities
field is empty.
TargetsEmpty = 8
The targets
field is empty.
SourceAndTargetMatch = 9
The from
value is equal to one of the elements in to
.
DeclNotFound = 10
The test package does not contain the component declaration referenced by a fragment-only component URL.
DeclReadError = 11
Encountered an I/O error when attempting to read a component declaration referenced by a fragment-only component URL from the test package.
BuildAlreadyCalled = 12
The Build
function has been called multiple times on this channel.
CapabilityInvalid = 13
A capability is invalid. This may occur if a required field is empty or if an unsupported type is received.
InvalidChildRealmHandle = 14
The handle the client provided for the child realm is not usable.
ImmutableProgram = 15
ReplaceComponentDecl
was called on a legacy or local component with a
program declaration that did not match the one from the old component
declaration. This could render a legacy or local component
non-functional, and is disallowed.
UrlIsNotRelative = 16
The URL provided to RealmBuilderFactory.CreateFromRelativeURL
is not a
fragment-only component URL.
InvalidPkgDirHandle = 17
The handle the client provided for the test’s pkg directory is not usable.
NoConfigSchema = 18
The component does not have a config schema defined. Attempting to set a config value is not allowed.
NoSuchConfigField = 19
The component’s config schema does not have a field with that name.
ConfigValueInvalid = 20
A config value is invalid. This may mean a type mismatch or an issue with constraints like string/vector length.
ConfigOverrideUnsupported = 21
A config value cannot be set because the realm has not chosen its override policy.
InvalidChildDecl = 22
A child declaration failed validation.
Implementations§
source§impl RealmBuilderError
impl RealmBuilderError
pub fn from_primitive(prim: u32) -> Option<Self>
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
is_unknown
Trait Implementations§
source§impl Clone for RealmBuilderError
impl Clone for RealmBuilderError
source§fn clone(&self) -> RealmBuilderError
fn clone(&self) -> RealmBuilderError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RealmBuilderError
impl Debug for RealmBuilderError
source§impl Decode<RealmBuilderError> for RealmBuilderError
impl Decode<RealmBuilderError> for RealmBuilderError
source§impl Encode<RealmBuilderError> for RealmBuilderError
impl Encode<RealmBuilderError> for RealmBuilderError
source§impl Hash for RealmBuilderError
impl Hash for RealmBuilderError
source§impl Ord for RealmBuilderError
impl Ord for RealmBuilderError
source§fn cmp(&self, other: &RealmBuilderError) -> Ordering
fn cmp(&self, other: &RealmBuilderError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for RealmBuilderError
impl PartialEq for RealmBuilderError
source§fn eq(&self, other: &RealmBuilderError) -> bool
fn eq(&self, other: &RealmBuilderError) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RealmBuilderError
impl PartialOrd for RealmBuilderError
source§fn partial_cmp(&self, other: &RealmBuilderError) -> Option<Ordering>
fn partial_cmp(&self, other: &RealmBuilderError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TypeMarker for RealmBuilderError
impl TypeMarker for RealmBuilderError
§type Owned = RealmBuilderError
type Owned = RealmBuilderError
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
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
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 RealmBuilderError
impl ValueTypeMarker for RealmBuilderError
§type Borrowed<'a> = RealmBuilderError
type Borrowed<'a> = RealmBuilderError
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more