pub struct AddService {
pub method: AddServiceMethod,
pub params: AddServiceParams,
}Expand description
Adds a service with |serviceUuid| to the peripheral with |address|. addService
Fields§
§method: AddServiceMethod§params: AddServiceParamsImplementations§
Source§impl AddService
impl AddService
pub fn builder() -> AddServiceBuilder
Source§impl AddService
impl AddService
pub const IDENTIFIER: &'static str = "BluetoothEmulation.addService"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for AddService
impl Clone for AddService
Source§fn clone(&self) -> AddService
fn clone(&self) -> AddService
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 CommandResult for AddService
impl CommandResult for AddService
type Result = AddServiceResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl Debug for AddService
impl Debug for AddService
Source§impl<'de> Deserialize<'de> for AddService
impl<'de> Deserialize<'de> for AddService
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<AddService> for BluetoothEmulationCommands
impl From<AddService> for BluetoothEmulationCommands
Source§fn from(v: AddService) -> Self
fn from(v: AddService) -> Self
Converts to this type from the input type.
Source§impl From<AddService> for BrowserProtocolCommands
impl From<AddService> for BrowserProtocolCommands
Source§fn from(v: AddService) -> Self
fn from(v: AddService) -> Self
Converts to this type from the input type.
Source§impl From<AddService> for Command
impl From<AddService> for Command
Source§fn from(v: AddService) -> Self
fn from(v: AddService) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AddService
impl PartialEq for AddService
Source§impl Serialize for AddService
impl Serialize for AddService
Source§impl TryFrom<BluetoothEmulationCommands> for AddService
impl TryFrom<BluetoothEmulationCommands> for AddService
Source§type Error = BluetoothEmulationCommands
type Error = BluetoothEmulationCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BluetoothEmulationCommands,
) -> Result<Self, <AddService as TryFrom<BluetoothEmulationCommands>>::Error>
fn try_from( e: BluetoothEmulationCommands, ) -> Result<Self, <AddService as TryFrom<BluetoothEmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<BrowserProtocolCommands> for AddService
impl TryFrom<BrowserProtocolCommands> for AddService
Source§type Error = BrowserProtocolCommands
type Error = BrowserProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolCommands,
) -> Result<Self, <AddService as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <AddService as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for AddService
impl TryFrom<Command> for AddService
impl StructuralPartialEq for AddService
Auto Trait Implementations§
impl Freeze for AddService
impl RefUnwindSafe for AddService
impl Send for AddService
impl Sync for AddService
impl Unpin for AddService
impl UnsafeUnpin for AddService
impl UnwindSafe for AddService
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