pub struct GenericSmeSynchronousProxy { /* private fields */ }
Implementations§
Source§impl GenericSmeSynchronousProxy
impl GenericSmeSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<GenericSmeEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<GenericSmeEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn query(
&self,
___deadline: MonotonicInstant,
) -> Result<GenericSmeQuery, Error>
pub fn query( &self, ___deadline: MonotonicInstant, ) -> Result<GenericSmeQuery, Error>
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>,
___deadline: MonotonicInstant,
) -> Result<GenericSmeGetClientSmeResult, Error>
pub fn get_client_sme( &self, sme_server: ServerEnd<ClientSmeMarker>, ___deadline: MonotonicInstant, ) -> Result<GenericSmeGetClientSmeResult, Error>
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>,
___deadline: MonotonicInstant,
) -> Result<GenericSmeGetApSmeResult, Error>
pub fn get_ap_sme( &self, sme_server: ServerEnd<ApSmeMarker>, ___deadline: MonotonicInstant, ) -> Result<GenericSmeGetApSmeResult, Error>
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>,
___deadline: MonotonicInstant,
) -> Result<GenericSmeGetSmeTelemetryResult, Error>
pub fn get_sme_telemetry( &self, telemetry_server: ServerEnd<TelemetryMarker>, ___deadline: MonotonicInstant, ) -> Result<GenericSmeGetSmeTelemetryResult, Error>
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>,
___deadline: MonotonicInstant,
) -> Result<GenericSmeGetFeatureSupportResult, Error>
pub fn get_feature_support( &self, feature_support_server: ServerEnd<FeatureSupportMarker>, ___deadline: MonotonicInstant, ) -> Result<GenericSmeGetFeatureSupportResult, Error>
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 Debug for GenericSmeSynchronousProxy
impl Debug for GenericSmeSynchronousProxy
Source§impl SynchronousProxy for GenericSmeSynchronousProxy
impl SynchronousProxy for GenericSmeSynchronousProxy
Source§type Proxy = GenericSmeProxy
type Proxy = GenericSmeProxy
Source§type Protocol = GenericSmeMarker
type Protocol = GenericSmeMarker
Proxy
controls.