#[repr(C)]pub struct BluetoothRemoteGATTService {
eventtarget: EventTarget,
device: Dom<BluetoothDevice>,
uuid: DOMString,
is_primary: bool,
instance_id: String,
}
Fields§
§eventtarget: EventTarget
§device: Dom<BluetoothDevice>
§uuid: DOMString
§is_primary: bool
§instance_id: String
Implementations§
source§impl BluetoothRemoteGATTService
impl BluetoothRemoteGATTService
fn __assert_parent_type(&self)
source§impl BluetoothRemoteGATTService
impl BluetoothRemoteGATTService
pub fn new_inherited( device: &BluetoothDevice, uuid: DOMString, is_primary: bool, instance_id: String ) -> BluetoothRemoteGATTService
pub fn new( global: &GlobalScope, device: &BluetoothDevice, uuid: DOMString, isPrimary: bool, instanceID: String ) -> Root<Dom<BluetoothRemoteGATTService>>
fn get_instance_id(&self) -> String
Trait Implementations§
source§impl AsyncBluetoothListener for BluetoothRemoteGATTService
impl AsyncBluetoothListener for BluetoothRemoteGATTService
fn handle_response(&self, response: BluetoothResponse, promise: &Rc<Promise>)
source§impl BluetoothRemoteGATTServiceMethods for BluetoothRemoteGATTService
impl BluetoothRemoteGATTServiceMethods for BluetoothRemoteGATTService
fn Device(&self) -> Root<Dom<BluetoothDevice>>
fn IsPrimary(&self) -> bool
fn Uuid(&self) -> DOMString
fn GetCharacteristic(&self, characteristic: StringOrUnsignedLong) -> Rc<Promise>
fn GetCharacteristics( &self, characteristic: Option<StringOrUnsignedLong> ) -> Rc<Promise>
fn GetIncludedService(&self, service: StringOrUnsignedLong) -> Rc<Promise>
fn GetIncludedServices( &self, service: Option<StringOrUnsignedLong> ) -> Rc<Promise>
fn GetOnserviceadded(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnserviceadded(&self, listener: Option<Rc<EventHandlerNonNull>>)
fn GetOnservicechanged(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnservicechanged(&self, listener: Option<Rc<EventHandlerNonNull>>)
fn GetOnserviceremoved(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnserviceremoved(&self, listener: Option<Rc<EventHandlerNonNull>>)
source§impl Castable for BluetoothRemoteGATTService
impl Castable for BluetoothRemoteGATTService
source§impl DomObjectWrap for BluetoothRemoteGATTService
impl DomObjectWrap for BluetoothRemoteGATTService
source§const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Option<HandleObject<'_>>, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::BluetoothRemoteGATTServiceBinding::BluetoothRemoteGATTService_Binding::Wrap as for<'a, 'b> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::option::Option<js::rust::Handle<'b, *mut js::jsapi::JSObject>>, std::boxed::Box<dom::bluetoothremotegattservice::BluetoothRemoteGATTService>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::bluetoothremotegattservice::BluetoothRemoteGATTService>>}
const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Option<HandleObject<'_>>, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::BluetoothRemoteGATTServiceBinding::BluetoothRemoteGATTService_Binding::Wrap as for<'a, 'b> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::option::Option<js::rust::Handle<'b, *mut js::jsapi::JSObject>>, std::boxed::Box<dom::bluetoothremotegattservice::BluetoothRemoteGATTService>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::bluetoothremotegattservice::BluetoothRemoteGATTService>>}
Function pointer to the general wrap function type
source§impl HasParent for BluetoothRemoteGATTService
impl HasParent for BluetoothRemoteGATTService
source§fn as_parent(&self) -> &EventTarget
fn as_parent(&self) -> &EventTarget
This is used in a type assertion to ensure that the source and webidls agree as to what the parent type is
type Parent = EventTarget
source§impl MallocSizeOf for BluetoothRemoteGATTService
impl MallocSizeOf for BluetoothRemoteGATTService
source§fn 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.
source§impl MutDomObject for BluetoothRemoteGATTService
impl MutDomObject for BluetoothRemoteGATTService
source§unsafe fn init_reflector(&self, obj: *mut JSObject)
unsafe fn init_reflector(&self, obj: *mut JSObject)
Initializes the Reflector
source§impl PartialEq for BluetoothRemoteGATTService
impl PartialEq for BluetoothRemoteGATTService
source§fn eq(&self, other: &BluetoothRemoteGATTService) -> bool
fn eq(&self, other: &BluetoothRemoteGATTService) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl DerivedFrom<EventTarget> for BluetoothRemoteGATTService
Auto Trait Implementations§
impl !Freeze for BluetoothRemoteGATTService
impl !RefUnwindSafe for BluetoothRemoteGATTService
impl !Send for BluetoothRemoteGATTService
impl !Sync for BluetoothRemoteGATTService
impl Unpin for BluetoothRemoteGATTService
impl !UnwindSafe for BluetoothRemoteGATTService
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert