pub enum PeerControllerRequest {
SetConfiguration {
responder: PeerControllerSetConfigurationResponder,
},
GetConfiguration {
responder: PeerControllerGetConfigurationResponder,
},
SuspendStream {
responder: PeerControllerSuspendStreamResponder,
},
SuspendAndReconfigure {
responder: PeerControllerSuspendAndReconfigureResponder,
},
EstablishStream {
responder: PeerControllerEstablishStreamResponder,
},
ReleaseStream {
responder: PeerControllerReleaseStreamResponder,
},
AbortStream {
responder: PeerControllerAbortStreamResponder,
},
StartStream {
responder: PeerControllerStartStreamResponder,
},
ReconfigureStream {
responder: PeerControllerReconfigureStreamResponder,
},
GetCapabilities {
responder: PeerControllerGetCapabilitiesResponder,
},
GetAllCapabilities {
responder: PeerControllerGetAllCapabilitiesResponder,
},
}Expand description
PeerController is an indirect control protocol used for driving the AVDTP library. This protocol provides the client with an interface for initiating AVDTP commands out of band. To drive end-to-end functionality of AVDTP see bt-profiles.
error PeerErrorindicates a procedure failure. The current Get*() & SetConfiguration() methods can be interpreted as only initiating an AVDTP procedure. The implementations of the Get*() and SetConfiguration() methods use generic capabilities and stream information.
Variants§
SetConfiguration
Initiate a stream configuration procedure. No configuration information is specified because generic config information will be used to initiate the procedure.
Fields
responder: PeerControllerSetConfigurationResponderGetConfiguration
Initiate a procedure to get the configuration information of the peer stream. The result is discarded because PeerController only initiates the procedure.
Fields
responder: PeerControllerGetConfigurationResponderSuspendStream
Initiate a suspend request to the stream. This command will not resume nor reconfigure the stream.
Fields
responder: PeerControllerSuspendStreamResponderSuspendAndReconfigure
A “chained” set of procedures on the current stream. SuspendStream() followed by ReconfigureStream(). Reconfigure() configures the stream that is currently open.
Fields
EstablishStream
Initiate stream establishment with the peer.
Fields
responder: PeerControllerEstablishStreamResponderReleaseStream
Release the current stream that is owned by the peer. If the streaming channel doesn’t exist, no action will be taken.
Fields
responder: PeerControllerReleaseStreamResponderAbortStream
Initiate an abort procedure on the current stream. If the streaming channel doesn’t exist, no action will be taken.
Fields
responder: PeerControllerAbortStreamResponderStartStream
Start streaming media on the current stream that is owned by the peer. If the streaming channel doesn’t exist, no action will be taken.
Fields
responder: PeerControllerStartStreamResponderReconfigureStream
Initiate a reconfiguration procedure for the current stream. No configuration information is specified because a generic set of config information will be used to initiate the procedure.
Fields
responder: PeerControllerReconfigureStreamResponderGetCapabilities
Initiate a procedure to get the capabilities of the peer. The result is discarded because PeerController only initiates the procedure.
Fields
responder: PeerControllerGetCapabilitiesResponderGetAllCapabilities
Initiate a procedure to get the capabilities of the peer. The result is discarded because PeerController only initiates the procedure.
Fields
responder: PeerControllerGetAllCapabilitiesResponderImplementations§
Source§impl PeerControllerRequest
impl PeerControllerRequest
pub fn into_set_configuration( self, ) -> Option<PeerControllerSetConfigurationResponder>
pub fn into_get_configuration( self, ) -> Option<PeerControllerGetConfigurationResponder>
pub fn into_suspend_stream(self) -> Option<PeerControllerSuspendStreamResponder>
pub fn into_suspend_and_reconfigure( self, ) -> Option<PeerControllerSuspendAndReconfigureResponder>
pub fn into_establish_stream( self, ) -> Option<PeerControllerEstablishStreamResponder>
pub fn into_release_stream(self) -> Option<PeerControllerReleaseStreamResponder>
pub fn into_abort_stream(self) -> Option<PeerControllerAbortStreamResponder>
pub fn into_start_stream(self) -> Option<PeerControllerStartStreamResponder>
pub fn into_reconfigure_stream( self, ) -> Option<PeerControllerReconfigureStreamResponder>
pub fn into_get_capabilities( self, ) -> Option<PeerControllerGetCapabilitiesResponder>
pub fn into_get_all_capabilities( self, ) -> Option<PeerControllerGetAllCapabilitiesResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL