pub enum ServiceCapability {
MediaTransport,
Reporting,
Recovery {
recovery_type: u8,
max_recovery_window_size: u8,
max_number_media_packets: u8,
},
MediaCodec {
media_type: MediaType,
codec_type: MediaCodecType,
codec_extra: Vec<u8>,
},
ContentProtection {
protection_type: ContentProtectionType,
extra: Vec<u8>,
},
HeaderCompression {
payload_len: u8,
},
Multiplexing {
payload_len: u8,
},
DelayReporting,
}
Expand description
Service Capabilities indicate possible services that can be provided by each stream endpoint. See AVDTP Spec section 8.21.
Variants§
MediaTransport
Indicates that the end point can provide at least basic media transport service as defined by RFC 3550 and outlined in section 7.2. Defined in section 8.21.2
Reporting
Indicates that the end point can provide reporting service as outlined in section 7.3 Defined in section 8.21.3
Recovery
Indicates the end point can provide recovery service as outlined in section 7.4 Defined in section 8.21.4
MediaCodec
Indicates the codec which is supported by this end point. |codec_extra| is defined within the relevant profiles (A2DP for Audio, etc). Defined in section 8.21.5
ContentProtection
Present when the device has content protection capability. |extra| is defined elsewhere. Defined in section 8.21.6
HeaderCompression
Indicates that header compression capabilities is offered by this end point. Defined in section 8.21.7 TODO(https://fxbug.dev/42114013): Implement header compression specific fields to use the payload.
Multiplexing
Indicates that multiplexing service is offered by this end point. Defined in section 8.21.8 TODO(https://fxbug.dev/42114015): Implement multiplexing specific fields to use the payload.
DelayReporting
Indicates that delay reporting is offered by this end point. Defined in section 8.21.9
Implementations§
Source§impl ServiceCapability
impl ServiceCapability
pub fn category(&self) -> ServiceCategory
pub fn is_codec(&self) -> bool
pub fn codec_type(&self) -> Option<&MediaCodecType>
Trait Implementations§
Source§impl Clone for ServiceCapability
impl Clone for ServiceCapability
Source§fn clone(&self) -> ServiceCapability
fn clone(&self) -> ServiceCapability
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ServiceCapability
impl Debug for ServiceCapability
Source§impl Decodable for ServiceCapability
impl Decodable for ServiceCapability
Source§impl Encodable for ServiceCapability
impl Encodable for ServiceCapability
Source§impl PartialEq for ServiceCapability
impl PartialEq for ServiceCapability
impl StructuralPartialEq for ServiceCapability
Auto Trait Implementations§
impl Freeze for ServiceCapability
impl RefUnwindSafe for ServiceCapability
impl Send for ServiceCapability
impl Sync for ServiceCapability
impl Unpin for ServiceCapability
impl UnwindSafe for ServiceCapability
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)