fidl_fuchsia_bluetooth_hostTrait HostProxyInterface
Source pub trait HostProxyInterface: Send + Sync {
type WatchStateResponseFut: Future<Output = Result<HostInfo, Error>> + Send;
type SetLocalNameResponseFut: Future<Output = Result<HostSetLocalNameResult, Error>> + Send;
type SetDeviceClassResponseFut: Future<Output = Result<HostSetDeviceClassResult, Error>> + Send;
type SetConnectableResponseFut: Future<Output = Result<HostSetConnectableResult, Error>> + Send;
type SetDiscoverableResponseFut: Future<Output = Result<HostSetDiscoverableResult, Error>> + Send;
type ConnectResponseFut: Future<Output = Result<HostConnectResult, Error>> + Send;
type DisconnectResponseFut: Future<Output = Result<HostDisconnectResult, Error>> + Send;
type PairResponseFut: Future<Output = Result<HostPairResult, Error>> + Send;
type ForgetResponseFut: Future<Output = Result<HostForgetResult, Error>> + Send;
Show 20 methods
// Required methods
fn request_protocol(&self, payload: ProtocolRequest) -> Result<(), Error>;
fn shutdown(&self) -> Result<(), Error>;
fn watch_state(&self) -> Self::WatchStateResponseFut;
fn set_local_data(&self, payload: &HostData) -> Result<(), Error>;
fn set_peer_watcher(
&self,
peer_watcher: ServerEnd<PeerWatcherMarker>,
) -> Result<(), Error>;
fn set_local_name(&self, local_name: &str) -> Self::SetLocalNameResponseFut;
fn set_device_class(
&self,
device_class: &DeviceClass,
) -> Self::SetDeviceClassResponseFut;
fn start_discovery(
&self,
payload: HostStartDiscoveryRequest,
) -> Result<(), Error>;
fn set_connectable(&self, enabled: bool) -> Self::SetConnectableResponseFut;
fn set_discoverable(
&self,
enabled: bool,
) -> Self::SetDiscoverableResponseFut;
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;
fn enable_background_scan(&self, enabled: bool) -> Result<(), Error>;
fn enable_privacy(&self, enabled: bool) -> Result<(), Error>;
fn set_br_edr_security_mode(
&self,
bredr_security_mode: BrEdrSecurityMode,
) -> Result<(), Error>;
fn set_le_security_mode(
&self,
le_security_mode: LeSecurityMode,
) -> Result<(), Error>;
fn set_pairing_delegate(
&self,
input: InputCapability,
output: OutputCapability,
delegate: ClientEnd<PairingDelegateMarker>,
) -> Result<(), Error>;
fn set_bonding_delegate(
&self,
delegate: ServerEnd<BondingDelegateMarker>,
) -> Result<(), Error>;
}