fidl_fuchsia_bluetooth_host

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

Required Associated Types§

Required Methods§

Source

fn request_protocol(&self, payload: ProtocolRequest) -> Result<(), Error>

Source

fn shutdown(&self) -> Result<(), Error>

Source

fn watch_state(&self) -> Self::WatchStateResponseFut

Source

fn set_local_data(&self, payload: &HostData) -> Result<(), Error>

Source

fn set_peer_watcher( &self, peer_watcher: ServerEnd<PeerWatcherMarker>, ) -> Result<(), Error>

Source

fn set_local_name(&self, local_name: &str) -> Self::SetLocalNameResponseFut

Source

fn set_device_class( &self, device_class: &DeviceClass, ) -> Self::SetDeviceClassResponseFut

Source

fn start_discovery( &self, payload: HostStartDiscoveryRequest, ) -> Result<(), Error>

Source

fn set_connectable(&self, enabled: bool) -> Self::SetConnectableResponseFut

Source

fn set_discoverable(&self, enabled: bool) -> Self::SetDiscoverableResponseFut

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

Source

fn enable_background_scan(&self, enabled: bool) -> Result<(), Error>

Source

fn enable_privacy(&self, enabled: bool) -> Result<(), Error>

Source

fn set_br_edr_security_mode( &self, bredr_security_mode: BrEdrSecurityMode, ) -> Result<(), Error>

Source

fn set_le_security_mode( &self, le_security_mode: LeSecurityMode, ) -> Result<(), Error>

Source

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

Source

fn set_bonding_delegate( &self, delegate: ServerEnd<BondingDelegateMarker>, ) -> Result<(), Error>

Implementors§

Source§

impl HostProxyInterface for HostProxy

Source§

type WatchStateResponseFut = QueryResponseFut<HostInfo>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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