pub trait BluetoothRemoteGATTServerMethods<D: DomTypes> {
// Required methods
fn Device(&self) -> DomRoot<D::BluetoothDevice>;
fn Connected(&self) -> bool;
fn Connect(
&self,
realm: &mut CurrentRealm<'_>,
) -> <D::Promise as PromiseHelpers<D>>::StackRoot;
fn Disconnect(&self, cx: &mut JSContext) -> Fallible<()>;
fn GetPrimaryService(
&self,
realm: &mut CurrentRealm<'_>,
service: StringOrUnsignedLong,
) -> <D::Promise as PromiseHelpers<D>>::StackRoot;
fn GetPrimaryServices(
&self,
realm: &mut CurrentRealm<'_>,
service: Option<StringOrUnsignedLong>,
) -> <D::Promise as PromiseHelpers<D>>::StackRoot;
}Required Methods§
fn Device(&self) -> DomRoot<D::BluetoothDevice>
fn Connected(&self) -> bool
fn Connect( &self, realm: &mut CurrentRealm<'_>, ) -> <D::Promise as PromiseHelpers<D>>::StackRoot
fn Disconnect(&self, cx: &mut JSContext) -> Fallible<()>
fn GetPrimaryService( &self, realm: &mut CurrentRealm<'_>, service: StringOrUnsignedLong, ) -> <D::Promise as PromiseHelpers<D>>::StackRoot
fn GetPrimaryServices( &self, realm: &mut CurrentRealm<'_>, service: Option<StringOrUnsignedLong>, ) -> <D::Promise as PromiseHelpers<D>>::StackRoot
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".