pub struct GenericSmeProxy { /* private fields */ }
Implementations§
Source§impl GenericSmeProxy
impl GenericSmeProxy
Sourcepub fn take_event_stream(&self) -> GenericSmeEventStream
pub fn take_event_stream(&self) -> GenericSmeEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn query(
&self,
) -> QueryResponseFut<GenericSmeQuery, DefaultFuchsiaResourceDialect>
pub fn query( &self, ) -> QueryResponseFut<GenericSmeQuery, DefaultFuchsiaResourceDialect>
Query the underlying SME to determine basic properties. This should generally be called first to determine which SME protocol to request for the SME.
Sourcepub fn get_client_sme(
&self,
sme_server: ServerEnd<ClientSmeMarker>,
) -> QueryResponseFut<GenericSmeGetClientSmeResult, DefaultFuchsiaResourceDialect>
pub fn get_client_sme( &self, sme_server: ServerEnd<ClientSmeMarker>, ) -> QueryResponseFut<GenericSmeGetClientSmeResult, DefaultFuchsiaResourceDialect>
Attempt to establish a new connection to an underlying Client SME. Connections may be established for the whole lifetime of the SME, but concurrent connections might lead to unexpected behavior. Likely errors include: * NOT_SUPPORTED: The underlying SME is not a Client SME. * PEER_CLOSED: The underlying SME is shutting down.
Sourcepub fn get_ap_sme(
&self,
sme_server: ServerEnd<ApSmeMarker>,
) -> QueryResponseFut<GenericSmeGetApSmeResult, DefaultFuchsiaResourceDialect>
pub fn get_ap_sme( &self, sme_server: ServerEnd<ApSmeMarker>, ) -> QueryResponseFut<GenericSmeGetApSmeResult, DefaultFuchsiaResourceDialect>
Attempt to establish a new connection to an underlying AP SME. Connections may be established for the whole lifetime of the SME, but concurrent connections might lead to unexpected behavior. Likely errors include: * NOT_SUPPORTED: The underlying SME is not an AP SME. * PEER_CLOSED: The underlying SME is shutting down.
Sourcepub fn get_sme_telemetry(
&self,
telemetry_server: ServerEnd<TelemetryMarker>,
) -> QueryResponseFut<GenericSmeGetSmeTelemetryResult, DefaultFuchsiaResourceDialect>
pub fn get_sme_telemetry( &self, telemetry_server: ServerEnd<TelemetryMarker>, ) -> QueryResponseFut<GenericSmeGetSmeTelemetryResult, DefaultFuchsiaResourceDialect>
Attempt to establish a new connection to telemetry information for the underlying SME. Connections may be established for the whole lifetime of the SME, and concurrent connections are safe since this is a read-only API. Likely errors include: * NOT_SUPPORTED: The underlying SME does not support telemetry. * PEER_CLOSED: The underlying SME is shutting down.
Sourcepub fn get_feature_support(
&self,
feature_support_server: ServerEnd<FeatureSupportMarker>,
) -> QueryResponseFut<GenericSmeGetFeatureSupportResult, DefaultFuchsiaResourceDialect>
pub fn get_feature_support( &self, feature_support_server: ServerEnd<FeatureSupportMarker>, ) -> QueryResponseFut<GenericSmeGetFeatureSupportResult, DefaultFuchsiaResourceDialect>
Attempt to establish a new connection to feature support information for the underlying SME. Connections may be established for the whole lifetime of the SME, and concurrent connections are safe since this is a read-only API. Likely errors include: * PEER_CLOSED: The underlying SME is shutting down.
Trait Implementations§
Source§impl Clone for GenericSmeProxy
impl Clone for GenericSmeProxy
Source§fn clone(&self) -> GenericSmeProxy
fn clone(&self) -> GenericSmeProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for GenericSmeProxy
impl Debug for GenericSmeProxy
Source§impl GenericSmeProxyInterface for GenericSmeProxy
impl GenericSmeProxyInterface for GenericSmeProxy
type QueryResponseFut = QueryResponseFut<GenericSmeQuery>
type GetClientSmeResponseFut = QueryResponseFut<Result<(), i32>>
type GetApSmeResponseFut = QueryResponseFut<Result<(), i32>>
type GetSmeTelemetryResponseFut = QueryResponseFut<Result<(), i32>>
type GetFeatureSupportResponseFut = QueryResponseFut<Result<(), i32>>
fn query(&self) -> Self::QueryResponseFut
fn get_client_sme( &self, sme_server: ServerEnd<ClientSmeMarker>, ) -> Self::GetClientSmeResponseFut
fn get_ap_sme( &self, sme_server: ServerEnd<ApSmeMarker>, ) -> Self::GetApSmeResponseFut
fn get_sme_telemetry( &self, telemetry_server: ServerEnd<TelemetryMarker>, ) -> Self::GetSmeTelemetryResponseFut
fn get_feature_support( &self, feature_support_server: ServerEnd<FeatureSupportMarker>, ) -> Self::GetFeatureSupportResponseFut
Source§impl Proxy for GenericSmeProxy
impl Proxy for GenericSmeProxy
Source§type Protocol = GenericSmeMarker
type Protocol = GenericSmeMarker
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Auto Trait Implementations§
impl Freeze for GenericSmeProxy
impl !RefUnwindSafe for GenericSmeProxy
impl Send for GenericSmeProxy
impl Sync for GenericSmeProxy
impl Unpin for GenericSmeProxy
impl !UnwindSafe for GenericSmeProxy
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
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)
clone_to_uninit
)