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, DefaultFuchsiaResourceDialect> ⓘ
pub fn set_configuration( &self, ) -> QueryResponseFut<PeerControllerSetConfigurationResult, DefaultFuchsiaResourceDialect> ⓘ
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, DefaultFuchsiaResourceDialect> ⓘ
pub fn get_configuration( &self, ) -> QueryResponseFut<PeerControllerGetConfigurationResult, DefaultFuchsiaResourceDialect> ⓘ
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, DefaultFuchsiaResourceDialect> ⓘ
pub fn suspend_stream( &self, ) -> QueryResponseFut<PeerControllerSuspendStreamResult, DefaultFuchsiaResourceDialect> ⓘ
Initiate a suspend request to the stream. This command will not resume nor reconfigure the stream.
Sourcepub fn suspend_and_reconfigure(
&self,
) -> QueryResponseFut<PeerControllerSuspendAndReconfigureResult, DefaultFuchsiaResourceDialect> ⓘ
pub fn suspend_and_reconfigure( &self, ) -> QueryResponseFut<PeerControllerSuspendAndReconfigureResult, DefaultFuchsiaResourceDialect> ⓘ
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, DefaultFuchsiaResourceDialect> ⓘ
pub fn establish_stream( &self, ) -> QueryResponseFut<PeerControllerEstablishStreamResult, DefaultFuchsiaResourceDialect> ⓘ
Initiate stream establishment with the peer.
Sourcepub fn release_stream(
&self,
) -> QueryResponseFut<PeerControllerReleaseStreamResult, DefaultFuchsiaResourceDialect> ⓘ
pub fn release_stream( &self, ) -> QueryResponseFut<PeerControllerReleaseStreamResult, DefaultFuchsiaResourceDialect> ⓘ
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, DefaultFuchsiaResourceDialect> ⓘ
pub fn abort_stream( &self, ) -> QueryResponseFut<PeerControllerAbortStreamResult, DefaultFuchsiaResourceDialect> ⓘ
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, DefaultFuchsiaResourceDialect> ⓘ
pub fn start_stream( &self, ) -> QueryResponseFut<PeerControllerStartStreamResult, DefaultFuchsiaResourceDialect> ⓘ
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, DefaultFuchsiaResourceDialect> ⓘ
pub fn reconfigure_stream( &self, ) -> QueryResponseFut<PeerControllerReconfigureStreamResult, DefaultFuchsiaResourceDialect> ⓘ
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, DefaultFuchsiaResourceDialect> ⓘ
pub fn get_capabilities( &self, ) -> QueryResponseFut<PeerControllerGetCapabilitiesResult, DefaultFuchsiaResourceDialect> ⓘ
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, DefaultFuchsiaResourceDialect> ⓘ
pub fn get_all_capabilities( &self, ) -> QueryResponseFut<PeerControllerGetAllCapabilitiesResult, DefaultFuchsiaResourceDialect> ⓘ
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§impl Debug for PeerControllerProxy
impl Debug for PeerControllerProxy
Source§impl PeerControllerProxyInterface for PeerControllerProxy
impl PeerControllerProxyInterface for PeerControllerProxy
type SetConfigurationResponseFut = QueryResponseFut<Result<(), PeerError>>
type GetConfigurationResponseFut = QueryResponseFut<Result<(), PeerError>>
type SuspendStreamResponseFut = QueryResponseFut<Result<(), PeerError>>
type SuspendAndReconfigureResponseFut = QueryResponseFut<Result<(), PeerError>>
type EstablishStreamResponseFut = QueryResponseFut<Result<(), PeerError>>
type ReleaseStreamResponseFut = QueryResponseFut<Result<(), PeerError>>
type AbortStreamResponseFut = QueryResponseFut<Result<(), PeerError>>
type StartStreamResponseFut = QueryResponseFut<Result<(), PeerError>>
type ReconfigureStreamResponseFut = QueryResponseFut<Result<(), PeerError>>
type GetCapabilitiesResponseFut = QueryResponseFut<Result<(), PeerError>>
type GetAllCapabilitiesResponseFut = QueryResponseFut<Result<(), PeerError>>
fn set_configuration(&self) -> Self::SetConfigurationResponseFut
fn get_configuration(&self) -> Self::GetConfigurationResponseFut
fn suspend_stream(&self) -> Self::SuspendStreamResponseFut
fn suspend_and_reconfigure(&self) -> Self::SuspendAndReconfigureResponseFut
fn establish_stream(&self) -> Self::EstablishStreamResponseFut
fn release_stream(&self) -> Self::ReleaseStreamResponseFut
fn abort_stream(&self) -> Self::AbortStreamResponseFut
fn start_stream(&self) -> Self::StartStreamResponseFut
fn reconfigure_stream(&self) -> Self::ReconfigureStreamResponseFut
fn get_capabilities(&self) -> Self::GetCapabilitiesResponseFut
fn get_all_capabilities(&self) -> Self::GetAllCapabilitiesResponseFut
Source§impl Proxy for PeerControllerProxy
impl Proxy for PeerControllerProxy
Source§type Protocol = PeerControllerMarker
type Protocol = PeerControllerMarker
Proxy controls.