#[repr(C)]pub struct BluetoothRemoteGATTServer {
reflector_: Reflector,
device: Dom<BluetoothDevice>,
connected: Cell<bool>,
}
Fields
reflector_: Reflector
device: Dom<BluetoothDevice>
connected: Cell<bool>
Implementations
sourceimpl BluetoothRemoteGATTServer
impl BluetoothRemoteGATTServer
fn __assert_parent_type(&self)
sourceimpl BluetoothRemoteGATTServer
impl BluetoothRemoteGATTServer
pub fn new_inherited(device: &BluetoothDevice) -> BluetoothRemoteGATTServer
pub fn new(
global: &GlobalScope,
device: &BluetoothDevice
) -> Root<Dom<BluetoothRemoteGATTServer>>
fn get_bluetooth_thread(&self) -> IpcSender<BluetoothRequest>
pub fn set_connected(&self, connected: bool)
Trait Implementations
sourceimpl AsyncBluetoothListener for BluetoothRemoteGATTServer
impl AsyncBluetoothListener for BluetoothRemoteGATTServer
fn handle_response(&self, response: BluetoothResponse, promise: &Rc<Promise>)
sourceimpl BluetoothRemoteGATTServerMethods for BluetoothRemoteGATTServer
impl BluetoothRemoteGATTServerMethods for BluetoothRemoteGATTServer
fn Device(&self) -> Root<Dom<BluetoothDevice>>
fn Connected(&self) -> bool
fn Connect(&self, comp: InRealm<'_>) -> Rc<Promise>
fn Disconnect(&self) -> Result<(), Error>
fn GetPrimaryService(&self, service: StringOrUnsignedLong) -> Rc<Promise>
fn GetPrimaryServices(
&self,
service: Option<StringOrUnsignedLong>
) -> Rc<Promise>
sourceimpl DomObject for BluetoothRemoteGATTServer
impl DomObject for BluetoothRemoteGATTServer
sourceimpl DomObjectWrap for BluetoothRemoteGATTServer
impl DomObjectWrap for BluetoothRemoteGATTServer
sourceconst WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::BluetoothRemoteGATTServerBinding::BluetoothRemoteGATTServerBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::bluetoothremotegattserver::BluetoothRemoteGATTServer>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::bluetoothremotegattserver::BluetoothRemoteGATTServer>>}
const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::BluetoothRemoteGATTServerBinding::BluetoothRemoteGATTServerBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::bluetoothremotegattserver::BluetoothRemoteGATTServer>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::bluetoothremotegattserver::BluetoothRemoteGATTServer>>}
Function pointer to the general wrap function type
sourceimpl HasParent for BluetoothRemoteGATTServer
impl HasParent for BluetoothRemoteGATTServer
sourceimpl MallocSizeOf for BluetoothRemoteGATTServer
impl MallocSizeOf for BluetoothRemoteGATTServer
sourcefn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself. Read more
sourceimpl MutDomObject for BluetoothRemoteGATTServer
impl MutDomObject for BluetoothRemoteGATTServer
sourceunsafe fn init_reflector(&self, obj: *mut JSObject)
unsafe fn init_reflector(&self, obj: *mut JSObject)
Initializes the Reflector
sourceimpl PartialEq<BluetoothRemoteGATTServer> for BluetoothRemoteGATTServer
impl PartialEq<BluetoothRemoteGATTServer> for BluetoothRemoteGATTServer
sourcefn eq(&self, other: &BluetoothRemoteGATTServer) -> bool
fn eq(&self, other: &BluetoothRemoteGATTServer) -> bool
sourceimpl ToJSValConvertible for BluetoothRemoteGATTServer
impl ToJSValConvertible for BluetoothRemoteGATTServer
sourceunsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)
unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)
Convert
self
to a JSVal
. JSAPI failure causes a panic.Auto Trait Implementations
impl !RefUnwindSafe for BluetoothRemoteGATTServer
impl !Send for BluetoothRemoteGATTServer
impl !Sync for BluetoothRemoteGATTServer
impl Unpin for BluetoothRemoteGATTServer
impl !UnwindSafe for BluetoothRemoteGATTServer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
sourcefn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
Convert
sourceimpl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
sourcefn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert