fidl_fuchsia_bluetooth_sysTrait 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;
}