pub struct BluetoothDevice { /* private fields */ }
Implementations§
Source§impl BluetoothDevice
impl BluetoothDevice
pub fn new(device_id: JsString, device_name: JsString) -> BluetoothDevice
pub fn device_id(&self) -> JsString
pub fn set_device_id(&mut self, value: JsString)
pub fn device_name(&self) -> JsString
pub fn set_device_name(&mut self, value: JsString)
Trait Implementations§
Source§impl Clone for BluetoothDevice
impl Clone for BluetoothDevice
Source§fn clone(&self) -> BluetoothDevice
fn clone(&self) -> BluetoothDevice
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BluetoothDevice
impl Debug for BluetoothDevice
Source§impl From<BluetoothDevice> for JsValue
impl From<BluetoothDevice> for JsValue
Source§fn from(value: BluetoothDevice) -> Self
fn from(value: BluetoothDevice) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for BluetoothDevice
impl FromWasmAbi for BluetoothDevice
Source§impl IntoWasmAbi for BluetoothDevice
impl IntoWasmAbi for BluetoothDevice
Source§impl LongRefFromWasmAbi for BluetoothDevice
impl LongRefFromWasmAbi for BluetoothDevice
Source§impl OptionFromWasmAbi for BluetoothDevice
impl OptionFromWasmAbi for BluetoothDevice
Source§impl OptionIntoWasmAbi for BluetoothDevice
impl OptionIntoWasmAbi for BluetoothDevice
Source§impl PartialEq for BluetoothDevice
impl PartialEq for BluetoothDevice
Source§impl RefFromWasmAbi for BluetoothDevice
impl RefFromWasmAbi for BluetoothDevice
Source§type Anchor = RcRef<BluetoothDevice>
type Anchor = RcRef<BluetoothDevice>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for BluetoothDevice
impl RefMutFromWasmAbi for BluetoothDevice
Source§impl TryFromJsValue for BluetoothDevice
impl TryFromJsValue for BluetoothDevice
Source§impl VectorFromWasmAbi for BluetoothDevice
impl VectorFromWasmAbi for BluetoothDevice
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[BluetoothDevice]>
Source§impl VectorIntoJsValue for BluetoothDevice
impl VectorIntoJsValue for BluetoothDevice
fn vector_into_jsvalue(vector: Box<[BluetoothDevice]>) -> JsValue
Source§impl VectorIntoWasmAbi for BluetoothDevice
impl VectorIntoWasmAbi for BluetoothDevice
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[BluetoothDevice]>) -> Self::Abi
Source§impl WasmDescribeVector for BluetoothDevice
impl WasmDescribeVector for BluetoothDevice
impl Eq for BluetoothDevice
impl StructuralPartialEq for BluetoothDevice
impl SupportsConstructor for BluetoothDevice
impl SupportsInstanceProperty for BluetoothDevice
impl SupportsStaticProperty for BluetoothDevice
Auto Trait Implementations§
impl Freeze for BluetoothDevice
impl RefUnwindSafe for BluetoothDevice
impl !Send for BluetoothDevice
impl !Sync for BluetoothDevice
impl Unpin for BluetoothDevice
impl UnwindSafe for BluetoothDevice
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.