pub struct VolumeState { /* private fields */ }
Expand description
Volume State Characteristic See VCS v1.0 Section 2.3.1
Trait Implementations§
Source§impl Clone for VolumeState
impl Clone for VolumeState
Source§fn clone(&self) -> VolumeState
fn clone(&self) -> VolumeState
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 VolumeState
impl Debug for VolumeState
Source§impl FromCharacteristic for VolumeState
impl FromCharacteristic for VolumeState
const UUID: Uuid
Source§fn from_chr(characteristic: Characteristic, value: &[u8]) -> Result<Self, Error>
fn from_chr(characteristic: Characteristic, value: &[u8]) -> Result<Self, Error>
Create this type from a Characteristic and an initial value.
Source§fn update(&mut self, new_value: &[u8]) -> Result<&mut Self, Error>
fn update(&mut self, new_value: &[u8]) -> Result<&mut Self, Error>
Attempt to update the type when supplied with the
new_value
, which may
or may not be the complete value.Source§fn try_read<T>(
characteristic: Characteristic,
service: &<T as GattTypes>::PeerService,
) -> impl Future<Output = Result<Self, Error>>where
T: GattTypes,
fn try_read<T>(
characteristic: Characteristic,
service: &<T as GattTypes>::PeerService,
) -> impl Future<Output = Result<Self, Error>>where
T: GattTypes,
Attempt to read a characteristic if it matches the provided
characteristic UUID.
Auto Trait Implementations§
impl Freeze for VolumeState
impl RefUnwindSafe for VolumeState
impl Send for VolumeState
impl Sync for VolumeState
impl Unpin for VolumeState
impl UnwindSafe for VolumeState
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