pub struct SinkPac {
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<&SinkPac> for Characteristic
impl From<&SinkPac> for Characteristic
Source§impl FromCharacteristic for SinkPac
impl FromCharacteristic for SinkPac
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 SinkPac
Auto Trait Implementations§
impl Freeze for SinkPac
impl RefUnwindSafe for SinkPac
impl Send for SinkPac
impl Sync for SinkPac
impl Unpin for SinkPac
impl UnwindSafe for SinkPac
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