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 for StreamInformation
impl PartialEq for StreamInformation
impl StructuralPartialEq for StreamInformation
Auto Trait Implementations§
impl Freeze for StreamInformation
impl RefUnwindSafe for StreamInformation
impl Send for StreamInformation
impl Sync for StreamInformation
impl Unpin for StreamInformation
impl UnwindSafe for StreamInformation
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