Struct fidl_fuchsia_sys2::RouteValidatorProxy
source · pub struct RouteValidatorProxy { /* private fields */ }
Implementations§
source§impl RouteValidatorProxy
impl RouteValidatorProxy
sourcepub fn take_event_stream(&self) -> RouteValidatorEventStream
pub fn take_event_stream(&self) -> RouteValidatorEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
sourcepub fn validate(
&self,
moniker: &str,
) -> QueryResponseFut<RouteValidatorValidateResult>
pub fn validate( &self, moniker: &str, ) -> QueryResponseFut<RouteValidatorValidateResult>
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.
sourcepub fn route(
&self,
moniker: &str,
targets: &[RouteTarget],
) -> QueryResponseFut<RouteValidatorRouteResult>
pub fn route( &self, moniker: &str, targets: &[RouteTarget], ) -> QueryResponseFut<RouteValidatorRouteResult>
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.
Trait Implementations§
source§impl Clone for RouteValidatorProxy
impl Clone for RouteValidatorProxy
source§fn clone(&self) -> RouteValidatorProxy
fn clone(&self) -> RouteValidatorProxy
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 RouteValidatorProxy
impl Debug for RouteValidatorProxy
source§impl Proxy for RouteValidatorProxy
impl Proxy for RouteValidatorProxy
§type Protocol = RouteValidatorMarker
type Protocol = RouteValidatorMarker
The protocol which this
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Attempt to convert the proxy back into a client end. Read more
source§impl RouteValidatorProxyInterface for RouteValidatorProxy
impl RouteValidatorProxyInterface for RouteValidatorProxy
type ValidateResponseFut = QueryResponseFut<Result<Vec<RouteReport>, Error>>
fn validate(&self, moniker: &str) -> Self::ValidateResponseFut
type RouteResponseFut = QueryResponseFut<Result<Vec<RouteReport>, RouteValidatorError>>
fn route( &self, moniker: &str, targets: &[RouteTarget], ) -> Self::RouteResponseFut
Auto Trait Implementations§
impl Freeze for RouteValidatorProxy
impl !RefUnwindSafe for RouteValidatorProxy
impl Send for RouteValidatorProxy
impl Sync for RouteValidatorProxy
impl Unpin for RouteValidatorProxy
impl !UnwindSafe for RouteValidatorProxy
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)