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