fidl_fuchsia_bluetooth_sys

Trait AccessProxyInterface

Source
pub trait AccessProxyInterface: Send + Sync {
    type MakeDiscoverableResponseFut: Future<Output = Result<AccessMakeDiscoverableResult, Error>> + Send;
    type StartDiscoveryResponseFut: Future<Output = Result<AccessStartDiscoveryResult, Error>> + Send;
    type WatchPeersResponseFut: Future<Output = Result<(Vec<Peer>, Vec<PeerId>), Error>> + Send;
    type ConnectResponseFut: Future<Output = Result<AccessConnectResult, Error>> + Send;
    type DisconnectResponseFut: Future<Output = Result<AccessDisconnectResult, Error>> + Send;
    type PairResponseFut: Future<Output = Result<AccessPairResult, Error>> + Send;
    type ForgetResponseFut: Future<Output = Result<AccessForgetResult, Error>> + Send;

    // Required methods
    fn set_pairing_delegate(
        &self,
        input: InputCapability,
        output: OutputCapability,
        delegate: ClientEnd<PairingDelegateMarker>,
    ) -> Result<(), Error>;
    fn set_local_name(&self, name: &str) -> Result<(), Error>;
    fn set_device_class(&self, device_class: &DeviceClass) -> Result<(), Error>;
    fn make_discoverable(
        &self,
        token: ServerEnd<ProcedureTokenMarker>,
    ) -> Self::MakeDiscoverableResponseFut;
    fn start_discovery(
        &self,
        token: ServerEnd<ProcedureTokenMarker>,
    ) -> Self::StartDiscoveryResponseFut;
    fn watch_peers(&self) -> Self::WatchPeersResponseFut;
    fn connect(&self, id: &PeerId) -> Self::ConnectResponseFut;
    fn disconnect(&self, id: &PeerId) -> Self::DisconnectResponseFut;
    fn pair(
        &self,
        id: &PeerId,
        options: &PairingOptions,
    ) -> Self::PairResponseFut;
    fn forget(&self, id: &PeerId) -> Self::ForgetResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn set_pairing_delegate( &self, input: InputCapability, output: OutputCapability, delegate: ClientEnd<PairingDelegateMarker>, ) -> Result<(), Error>

Source

fn set_local_name(&self, name: &str) -> Result<(), Error>

Source

fn set_device_class(&self, device_class: &DeviceClass) -> Result<(), Error>

Source

fn make_discoverable( &self, token: ServerEnd<ProcedureTokenMarker>, ) -> Self::MakeDiscoverableResponseFut

Source

fn start_discovery( &self, token: ServerEnd<ProcedureTokenMarker>, ) -> Self::StartDiscoveryResponseFut

Source

fn watch_peers(&self) -> Self::WatchPeersResponseFut

Source

fn connect(&self, id: &PeerId) -> Self::ConnectResponseFut

Source

fn disconnect(&self, id: &PeerId) -> Self::DisconnectResponseFut

Source

fn pair(&self, id: &PeerId, options: &PairingOptions) -> Self::PairResponseFut

Source

fn forget(&self, id: &PeerId) -> Self::ForgetResponseFut

Implementors§

Source§

impl AccessProxyInterface for AccessProxy

Source§

type MakeDiscoverableResponseFut = QueryResponseFut<Result<(), Error>>

Source§

type StartDiscoveryResponseFut = QueryResponseFut<Result<(), Error>>

Source§

type WatchPeersResponseFut = QueryResponseFut<(Vec<Peer>, Vec<PeerId>)>

Source§

type ConnectResponseFut = QueryResponseFut<Result<(), Error>>

Source§

type DisconnectResponseFut = QueryResponseFut<Result<(), Error>>

Source§

type PairResponseFut = QueryResponseFut<Result<(), Error>>

Source§

type ForgetResponseFut = QueryResponseFut<Result<(), Error>>