pub struct FacadeArg { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl TryInto<AdvertisingData> for FacadeArg
Deserializes a serde json object according to the following schema
impl TryInto<AdvertisingData> for FacadeArg
Deserializes a serde json object according to the following schema
{ ‘advertising_data’: { ‘name’: Some(String), ‘appearance’: Some(u64), ‘service_data’: { ‘uuid’: [‘fb’, ‘34’, ‘9b’, ‘5f’, ‘80’, ‘00’, ‘00’, ‘80’, ‘00’, ‘10’, ‘00’, ‘00’, ‘01’, ‘18’, ‘00’, ‘00’]. ‘data’: “1” }, ‘service_uuids’: [ [‘fb’, ‘34’, ‘9b’, ‘5f’, ‘80’, ‘00’, ‘00’, ‘80’, ‘00’, ‘10’, ‘00’, ‘00’, ‘01’, ‘18’, ‘00’, ‘00’]. [‘fb’, ‘34’, ‘9b’, ‘5f’, ‘80’, ‘00’, ‘00’, ‘80’, ‘00’, ‘10’, ‘00’, ‘00’, ‘00’, ‘18’, ‘00’, ‘00’] ], ‘manufacturer_data’: { ‘id’: 10, ‘data’ }, ‘uris’: Some([‘telnet://192.0.2.16:80/’]), ‘tx_power_level’: Some(1),
}
}
Note: A human readable uuid is represented as a list of bytes: Example Human Readable UUID: ‘00001801-0000-1000-8000-00805f9b34fb’ Actual input: [‘fb’, ‘34’, ‘9b’, ‘5f’, ‘80’, ‘00’, ‘00’, ‘80’, ‘00’, ‘10’, ‘00’, ‘00’, ‘01’, ‘18’, ‘00’, ‘00’]
Source§impl TryInto<AdvertisingParameters> for FacadeArg
impl TryInto<AdvertisingParameters> for FacadeArg
Auto Trait Implementations§
impl Freeze for FacadeArg
impl RefUnwindSafe for FacadeArg
impl Send for FacadeArg
impl Sync for FacadeArg
impl Unpin for FacadeArg
impl UnwindSafe for FacadeArg
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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 more