pub struct BLEDescriptor { /* private fields */ }Implementations§
Source§impl BLEDescriptor
impl BLEDescriptor
pub fn set_value(&mut self, value: &[u8]) -> &mut Self
pub fn set_from<T: Sized>(&mut self, value: &T) -> &mut Self
👎Deprecated:
Please use set_value + zerocopy::IntoBytes
pub fn value_mut(&mut self) -> &mut AttValue
pub fn on_read( &mut self, callback: impl FnMut(&mut AttValue, &BLEConnDesc) + Send + Sync + 'static, ) -> &mut Self
pub fn on_write( &mut self, callback: impl FnMut(&mut OnWriteDescriptorArgs<'_>) + Send + Sync + 'static, ) -> &mut Self
Auto Trait Implementations§
impl Freeze for BLEDescriptor
impl !RefUnwindSafe for BLEDescriptor
impl Send for BLEDescriptor
impl Sync for BLEDescriptor
impl Unpin for BLEDescriptor
impl UnsafeUnpin for BLEDescriptor
impl !UnwindSafe for BLEDescriptor
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more