pub enum RouteValidatorRequest {
Validate {
moniker: String,
responder: RouteValidatorValidateResponder,
},
Route {
moniker: String,
targets: Vec<RouteTarget>,
responder: RouteValidatorRouteResponder,
},
}
Variants§
Validate
Routes all incoming and exposed capabilities of a component identified by the given moniker. If the routing failed, an error is returned in the response. This function may cause components to be resolved.
Errors:
- INVALID_ARGUMENTS: The given moniker is not valid.
- INSTANCE_NOT_FOUND: No instance was found matching the given moniker.
Route
Routes a component’s used or exposed capabilities, and returns information about them.
If targets
is empty, returns results for all the component’s used and
exposed capabilities. Otherwise, returns only results for capabilities
specified in targets
.
This method only supports routing namespace capabilities (protocols, directories, services, and storage).
Errors:
- INVALID_ARGUMENTS: The given moniker or name is not valid, or
name
is not a namespace capability. - INSTANCE_NOT_FOUND: No instance was found matching the given moniker.
- RESOURCE_NOT_FOUND: No capability was found matching one of the given names.
Implementations§
Source§impl RouteValidatorRequest
impl RouteValidatorRequest
pub fn into_validate(self) -> Option<(String, RouteValidatorValidateResponder)>
pub fn into_route( self, ) -> Option<(String, Vec<RouteTarget>, RouteValidatorRouteResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RouteValidatorRequest
impl !RefUnwindSafe for RouteValidatorRequest
impl Send for RouteValidatorRequest
impl Sync for RouteValidatorRequest
impl Unpin for RouteValidatorRequest
impl !UnwindSafe for RouteValidatorRequest
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