pub enum AvrcpService {
Target {
features: AvrcpTargetFeatures,
psm: Psm,
protocol_version: AvrcpProtocolVersion,
},
Controller {
features: AvrcpControllerFeatures,
psm: Psm,
protocol_version: AvrcpProtocolVersion,
},
}Expand description
Represents a discovered AVRCP service on a remote peer.
Variants§
Implementations§
Source§impl AvrcpService
impl AvrcpService
Sourcepub fn supports_browsing(&self) -> bool
pub fn supports_browsing(&self) -> bool
Returns true if the service supports browsing.
Sourcepub fn supports_absolute_volume(&self) -> bool
pub fn supports_absolute_volume(&self) -> bool
Returns true if the service supports absolute volume.
Per AVRCP v1.6.3, Table 3.1, Condition C4, support for Absolute Volume is mandatory if Category 2 is supported.
Sourcepub fn from_search_result(
protocol: Vec<ProtocolDescriptor>,
attributes: Vec<Attribute>,
) -> Result<AvrcpService, Error>
pub fn from_search_result( protocol: Vec<ProtocolDescriptor>, attributes: Vec<Attribute>, ) -> Result<AvrcpService, Error>
Attempts to parse an AvrcpService from a bredr.ServiceSearchResult.
Returns an Error if the provided search result is missing any of the required
AVRCP attributes.
Trait Implementations§
Source§impl Clone for AvrcpService
impl Clone for AvrcpService
Source§fn clone(&self) -> AvrcpService
fn clone(&self) -> AvrcpService
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 AvrcpService
impl Debug for AvrcpService
Source§impl PartialEq for AvrcpService
impl PartialEq for AvrcpService
impl Copy for AvrcpService
impl StructuralPartialEq for AvrcpService
Auto Trait Implementations§
impl Freeze for AvrcpService
impl RefUnwindSafe for AvrcpService
impl Send for AvrcpService
impl Sync for AvrcpService
impl Unpin for AvrcpService
impl UnwindSafe for AvrcpService
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more