pub enum GenericSmeRequest {
Query {
responder: GenericSmeQueryResponder,
},
GetClientSme {
sme_server: ServerEnd<ClientSmeMarker>,
responder: GenericSmeGetClientSmeResponder,
},
GetApSme {
sme_server: ServerEnd<ApSmeMarker>,
responder: GenericSmeGetApSmeResponder,
},
GetSmeTelemetry {
telemetry_server: ServerEnd<TelemetryMarker>,
responder: GenericSmeGetSmeTelemetryResponder,
},
GetFeatureSupport {
feature_support_server: ServerEnd<FeatureSupportMarker>,
responder: GenericSmeGetFeatureSupportResponder,
},
}
Variants§
Query
Query the underlying SME to determine basic properties. This should generally be called first to determine which SME protocol to request for the SME.
Fields
responder: GenericSmeQueryResponder
GetClientSme
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.
GetApSme
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.
GetSmeTelemetry
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.
GetFeatureSupport
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.
Fields
feature_support_server: ServerEnd<FeatureSupportMarker>
responder: GenericSmeGetFeatureSupportResponder
Implementations§
Source§impl GenericSmeRequest
impl GenericSmeRequest
pub fn into_query(self) -> Option<GenericSmeQueryResponder>
pub fn into_get_client_sme( self, ) -> Option<(ServerEnd<ClientSmeMarker>, GenericSmeGetClientSmeResponder)>
pub fn into_get_ap_sme( self, ) -> Option<(ServerEnd<ApSmeMarker>, GenericSmeGetApSmeResponder)>
pub fn into_get_sme_telemetry( self, ) -> Option<(ServerEnd<TelemetryMarker>, GenericSmeGetSmeTelemetryResponder)>
pub fn into_get_feature_support( self, ) -> Option<(ServerEnd<FeatureSupportMarker>, GenericSmeGetFeatureSupportResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL