pub struct SourcePac {
pub handle: Handle,
pub capabilities: Vec<PacRecord>,
}
Expand description
One Sink Published Audio Capability Characteristic, or Sink PAC, exposed on a service. More than one Sink PAC can exist on a given PACS service. If multiple are exposed, they are returned separately and can be notified by the server separately.
Fields§
§handle: Handle
§capabilities: Vec<PacRecord>
Trait Implementations§
Source§impl From<&SourcePac> for Characteristic
impl From<&SourcePac> for Characteristic
Source§impl FromCharacteristic for SourcePac
impl FromCharacteristic for SourcePac
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.
impl StructuralPartialEq for SourcePac
Auto Trait Implementations§
impl Freeze for SourcePac
impl RefUnwindSafe for SourcePac
impl Send for SourcePac
impl Sync for SourcePac
impl Unpin for SourcePac
impl UnwindSafe for SourcePac
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