Struct bt_avdtp::StreamInformation
source · pub struct StreamInformation { /* private fields */ }
Expand description
All information related to a stream. Part of the Discovery Response. See Sec 8.6.2
Implementations§
source§impl StreamInformation
impl StreamInformation
sourcepub fn new(
id: StreamEndpointId,
in_use: bool,
media_type: MediaType,
endpoint_type: EndpointType
) -> StreamInformation
pub fn new( id: StreamEndpointId, in_use: bool, media_type: MediaType, endpoint_type: EndpointType ) -> StreamInformation
Create a new StreamInformation from an ID. This will only fail if the ID given is out of the range of valid SEIDs (0x01 - 0x3E)
pub fn id(&self) -> &StreamEndpointId
pub fn media_type(&self) -> &MediaType
pub fn endpoint_type(&self) -> &EndpointType
pub fn in_use(&self) -> &bool
Trait Implementations§
source§impl Debug for StreamInformation
impl Debug for StreamInformation
source§impl Decodable for StreamInformation
impl Decodable for StreamInformation
source§impl Encodable for StreamInformation
impl Encodable for StreamInformation
source§impl PartialEq<StreamInformation> for StreamInformation
impl PartialEq<StreamInformation> for StreamInformation
source§fn eq(&self, other: &StreamInformation) -> bool
fn eq(&self, other: &StreamInformation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.