pub struct PeerControllerProxy { /* private fields */ }
Implementations§
source§impl PeerControllerProxy
impl PeerControllerProxy
sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.bluetooth.avdtp.test/PeerController.
sourcepub fn take_event_stream(&self) -> PeerControllerEventStream
pub fn take_event_stream(&self) -> PeerControllerEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
sourcepub fn set_configuration(
&self
) -> QueryResponseFut<PeerControllerSetConfigurationResult>
pub fn set_configuration( &self ) -> QueryResponseFut<PeerControllerSetConfigurationResult>
Initiate a stream configuration procedure. No configuration information is specified because generic config information will be used to initiate the procedure.
sourcepub fn get_configuration(
&self
) -> QueryResponseFut<PeerControllerGetConfigurationResult>
pub fn get_configuration( &self ) -> QueryResponseFut<PeerControllerGetConfigurationResult>
Initiate a procedure to get the configuration information of the peer stream. The result is discarded because PeerController only initiates the procedure.
sourcepub fn suspend_stream(
&self
) -> QueryResponseFut<PeerControllerSuspendStreamResult>
pub fn suspend_stream( &self ) -> QueryResponseFut<PeerControllerSuspendStreamResult>
Initiate a suspend request to the stream. This command will not resume nor reconfigure the stream.
sourcepub fn suspend_and_reconfigure(
&self
) -> QueryResponseFut<PeerControllerSuspendAndReconfigureResult>
pub fn suspend_and_reconfigure( &self ) -> QueryResponseFut<PeerControllerSuspendAndReconfigureResult>
A “chained” set of procedures on the current stream. SuspendStream() followed by ReconfigureStream(). Reconfigure() configures the stream that is currently open.
sourcepub fn establish_stream(
&self
) -> QueryResponseFut<PeerControllerEstablishStreamResult>
pub fn establish_stream( &self ) -> QueryResponseFut<PeerControllerEstablishStreamResult>
Initiate stream establishment with the peer.
sourcepub fn release_stream(
&self
) -> QueryResponseFut<PeerControllerReleaseStreamResult>
pub fn release_stream( &self ) -> QueryResponseFut<PeerControllerReleaseStreamResult>
Release the current stream that is owned by the peer. If the streaming channel doesn’t exist, no action will be taken.
sourcepub fn abort_stream(&self) -> QueryResponseFut<PeerControllerAbortStreamResult>
pub fn abort_stream(&self) -> QueryResponseFut<PeerControllerAbortStreamResult>
Initiate an abort procedure on the current stream. If the streaming channel doesn’t exist, no action will be taken.
sourcepub fn start_stream(&self) -> QueryResponseFut<PeerControllerStartStreamResult>
pub fn start_stream(&self) -> QueryResponseFut<PeerControllerStartStreamResult>
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.
sourcepub fn reconfigure_stream(
&self
) -> QueryResponseFut<PeerControllerReconfigureStreamResult>
pub fn reconfigure_stream( &self ) -> QueryResponseFut<PeerControllerReconfigureStreamResult>
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.
sourcepub fn get_capabilities(
&self
) -> QueryResponseFut<PeerControllerGetCapabilitiesResult>
pub fn get_capabilities( &self ) -> QueryResponseFut<PeerControllerGetCapabilitiesResult>
Initiate a procedure to get the capabilities of the peer. The result is discarded because PeerController only initiates the procedure.
sourcepub fn get_all_capabilities(
&self
) -> QueryResponseFut<PeerControllerGetAllCapabilitiesResult>
pub fn get_all_capabilities( &self ) -> QueryResponseFut<PeerControllerGetAllCapabilitiesResult>
Initiate a procedure to get the capabilities of the peer. The result is discarded because PeerController only initiates the procedure.
Trait Implementations§
source§impl Clone for PeerControllerProxy
impl Clone for PeerControllerProxy
source§fn clone(&self) -> PeerControllerProxy
fn clone(&self) -> PeerControllerProxy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PeerControllerProxy
impl Debug for PeerControllerProxy
source§impl PeerControllerProxyInterface for PeerControllerProxy
impl PeerControllerProxyInterface for PeerControllerProxy
type SetConfigurationResponseFut = QueryResponseFut<Result<(), PeerError>>
fn set_configuration(&self) -> Self::SetConfigurationResponseFut
type GetConfigurationResponseFut = QueryResponseFut<Result<(), PeerError>>
fn get_configuration(&self) -> Self::GetConfigurationResponseFut
type SuspendStreamResponseFut = QueryResponseFut<Result<(), PeerError>>
fn suspend_stream(&self) -> Self::SuspendStreamResponseFut
type SuspendAndReconfigureResponseFut = QueryResponseFut<Result<(), PeerError>>
fn suspend_and_reconfigure(&self) -> Self::SuspendAndReconfigureResponseFut
type EstablishStreamResponseFut = QueryResponseFut<Result<(), PeerError>>
fn establish_stream(&self) -> Self::EstablishStreamResponseFut
type ReleaseStreamResponseFut = QueryResponseFut<Result<(), PeerError>>
fn release_stream(&self) -> Self::ReleaseStreamResponseFut
type AbortStreamResponseFut = QueryResponseFut<Result<(), PeerError>>
fn abort_stream(&self) -> Self::AbortStreamResponseFut
type StartStreamResponseFut = QueryResponseFut<Result<(), PeerError>>
fn start_stream(&self) -> Self::StartStreamResponseFut
type ReconfigureStreamResponseFut = QueryResponseFut<Result<(), PeerError>>
fn reconfigure_stream(&self) -> Self::ReconfigureStreamResponseFut
type GetCapabilitiesResponseFut = QueryResponseFut<Result<(), PeerError>>
fn get_capabilities(&self) -> Self::GetCapabilitiesResponseFut
type GetAllCapabilitiesResponseFut = QueryResponseFut<Result<(), PeerError>>
fn get_all_capabilities(&self) -> Self::GetAllCapabilitiesResponseFut
source§impl Proxy for PeerControllerProxy
impl Proxy for PeerControllerProxy
§type Protocol = PeerControllerMarker
type Protocol = PeerControllerMarker
Proxy
controls.