pub struct AvailableAudioContexts {
pub handle: Handle,
pub sink: AvailableContexts,
pub source: AvailableContexts,
}
Fields§
§handle: Handle
§sink: AvailableContexts
§source: AvailableContexts
Trait Implementations§
Source§impl Clone for AvailableAudioContexts
impl Clone for AvailableAudioContexts
Source§fn clone(&self) -> AvailableAudioContexts
fn clone(&self) -> AvailableAudioContexts
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 AvailableAudioContexts
impl Debug for AvailableAudioContexts
Source§impl From<&AvailableAudioContexts> for Characteristic
impl From<&AvailableAudioContexts> for Characteristic
Source§fn from(_value: &AvailableAudioContexts) -> Self
fn from(_value: &AvailableAudioContexts) -> Self
Converts to this type from the input type.
Source§impl FromCharacteristic for AvailableAudioContexts
impl FromCharacteristic for AvailableAudioContexts
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 AvailableAudioContexts
impl RefUnwindSafe for AvailableAudioContexts
impl Send for AvailableAudioContexts
impl Sync for AvailableAudioContexts
impl Unpin for AvailableAudioContexts
impl UnwindSafe for AvailableAudioContexts
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