pub enum RoutingError {
Show 29 variants
RouteSourceNotFound {
moniker: Moniker,
verb: RouteVerb,
counter_verb: RouteVerb,
source: PrettyPrintRef,
capability_type: CapabilityTypeName,
capability_name: RelativePath,
},
RouteRequestUnset {
moniker: ExtendedMoniker,
},
RouteRequestMissingField {
moniker: ExtendedMoniker,
missing_field: String,
},
RouteRequestFailedToParseField {
moniker: ExtendedMoniker,
field: String,
parse_error: String,
},
ComponentNotInIdIndex {
source_moniker: Moniker,
target_name: Option<ChildName>,
},
UseFromRootEnvironmentNotAllowed {
moniker: Moniker,
capability_type: String,
capability_name: Name,
},
ExposeFromFrameworkNotFound {
moniker: Moniker,
capability_id: String,
},
UseFromRootExposeNotFound {
capability_id: String,
},
UnsupportedRouteSource {
source_type: String,
moniker: ExtendedMoniker,
},
UnsupportedCapabilityType {
type_name: CapabilityTypeName,
moniker: ExtendedMoniker,
},
DynamicDictionariesNotAllowed {
moniker: Moniker,
},
BedrockNotPresentInDictionary {
name: String,
moniker: ExtendedMoniker,
},
BedrockWrongCapabilityType {
actual: String,
expected: String,
moniker: ExtendedMoniker,
},
BedrockFailedToSend {
moniker: ExtendedMoniker,
capability_id: String,
},
SourceUnknown {
moniker: ExtendedMoniker,
capability_id: String,
},
RouteSourceShutdown {
moniker: Moniker,
},
ComponentInstanceError(ComponentInstanceError),
EventsRoutingError(EventsRoutingError),
RightsRoutingError(RightsRoutingError),
AvailabilityRoutingError(AvailabilityRoutingError),
PolicyError(PolicyError),
SourceCapabilityIsVoid {
moniker: ExtendedMoniker,
},
NonDebugRoutesUnsupported {
moniker: ExtendedMoniker,
},
DebugRoutesUnsupported {
moniker: ExtendedMoniker,
},
RouteUnexpectedUnavailable {
type_name: CapabilityTypeName,
moniker: ExtendedMoniker,
},
PathTooLong {
moniker: ExtendedMoniker,
path: String,
keyword: String,
},
ConflictingDictionaryEntries {
moniker: ExtendedMoniker,
conflicting_names: Vec<Name>,
},
RemoteFIDLError {
moniker: Moniker,
},
RemoteRouterError {
moniker: Moniker,
error_code: i32,
},
}Expand description
Errors produced during routing.
Variants§
RouteSourceNotFound
RouteRequestUnset
Fields
§
moniker: ExtendedMonikerRouteRequestMissingField
RouteRequestFailedToParseField
ComponentNotInIdIndex
UseFromRootEnvironmentNotAllowed
ExposeFromFrameworkNotFound
UseFromRootExposeNotFound
UnsupportedRouteSource
UnsupportedCapabilityType
DynamicDictionariesNotAllowed
BedrockNotPresentInDictionary
BedrockWrongCapabilityType
BedrockFailedToSend
SourceUnknown
RouteSourceShutdown
ComponentInstanceError(ComponentInstanceError)
EventsRoutingError(EventsRoutingError)
RightsRoutingError(RightsRoutingError)
AvailabilityRoutingError(AvailabilityRoutingError)
PolicyError(PolicyError)
SourceCapabilityIsVoid
Fields
§
moniker: ExtendedMonikerNonDebugRoutesUnsupported
Fields
§
moniker: ExtendedMonikerDebugRoutesUnsupported
Fields
§
moniker: ExtendedMonikerPathTooLong
ConflictingDictionaryEntries
RemoteFIDLError
RemoteRouterError
Implementations§
Source§impl RoutingError
impl RoutingError
Sourcepub fn as_fidl_error(&self) -> Error
pub fn as_fidl_error(&self) -> Error
Convert this error into its approximate fuchsia.component.Error equivalent.
pub fn expose_from_framework_not_found( moniker: &Moniker, capability_id: impl Into<String>, ) -> Self
pub fn unsupported_route_source( moniker: impl Into<ExtendedMoniker>, source: impl Into<String>, ) -> Self
pub fn unsupported_capability_type( moniker: impl Into<ExtendedMoniker>, type_name: impl Into<CapabilityTypeName>, ) -> Self
Trait Implementations§
Source§impl Clone for RoutingError
impl Clone for RoutingError
Source§fn clone(&self) -> RoutingError
fn clone(&self) -> RoutingError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RoutingError
impl Debug for RoutingError
Source§impl Display for RoutingError
impl Display for RoutingError
Source§impl Error for RoutingError
impl Error for RoutingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl Explain for RoutingError
impl Explain for RoutingError
Source§fn as_zx_status(&self) -> Status
fn as_zx_status(&self) -> Status
Convert this error into its approximate zx::Status equivalent.
Source§impl From<AvailabilityRoutingError> for RoutingError
impl From<AvailabilityRoutingError> for RoutingError
Source§fn from(source: AvailabilityRoutingError) -> Self
fn from(source: AvailabilityRoutingError) -> Self
Converts to this type from the input type.
Source§impl From<ComponentInstanceError> for RoutingError
impl From<ComponentInstanceError> for RoutingError
Source§fn from(source: ComponentInstanceError) -> Self
fn from(source: ComponentInstanceError) -> Self
Converts to this type from the input type.
Source§impl From<EventsRoutingError> for RoutingError
impl From<EventsRoutingError> for RoutingError
Source§fn from(source: EventsRoutingError) -> Self
fn from(source: EventsRoutingError) -> Self
Converts to this type from the input type.
Source§impl From<PolicyError> for RoutingError
impl From<PolicyError> for RoutingError
Source§fn from(source: PolicyError) -> Self
fn from(source: PolicyError) -> Self
Converts to this type from the input type.
Source§impl From<RightsRoutingError> for RoutingError
impl From<RightsRoutingError> for RoutingError
Source§fn from(source: RightsRoutingError) -> Self
fn from(source: RightsRoutingError) -> Self
Converts to this type from the input type.
Source§impl From<RoutingError> for ExtendedMoniker
impl From<RoutingError> for ExtendedMoniker
Source§fn from(err: RoutingError) -> ExtendedMoniker
fn from(err: RoutingError) -> ExtendedMoniker
Converts to this type from the input type.
Source§impl From<RoutingError> for RouterError
impl From<RoutingError> for RouterError
Source§fn from(value: RoutingError) -> Self
fn from(value: RoutingError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RoutingError
impl PartialEq for RoutingError
impl StructuralPartialEq for RoutingError
Source§impl TryFrom<RouterError> for RoutingError
impl TryFrom<RouterError> for RoutingError
Source§type Error = RouterError
type Error = RouterError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for RoutingError
impl RefUnwindSafe for RoutingError
impl Send for RoutingError
impl Sync for RoutingError
impl Unpin for RoutingError
impl UnsafeUnpin for RoutingError
impl UnwindSafe for RoutingError
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§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more