/// Gets a [`Stream`] of [`PortStatus`] for status changes from the device.
///
/// A sensible nonzero default buffer size will be used. It is encouraged
/// to use this function.
Gets a [`Stream`] of [`PortStatus`] for status changes from the device.
A sensible nonzero default buffer size will be used. It is encouraged
to use this function.
Gets a [ ` Stream ` ] of [ ` PortStatus ` ] for status changes from the device . A sensible nonzero default buffer size will be used . It is encouraged to use this function .
pub fn port_status_stream(
        &self,
        port: Port,
    ) -> Result<impl Stream<Item = Result<PortStatus>> + Unpin> {
        const DEFAULT_BUFFER_SIZE: u32 = 64;
        self.port_status_stream_with_buffer_size(port, DEFAULT_BUFFER_SIZE)
    }
pub fn port_status_stream ( & self , port : Port , ) -> Result < impl Stream < Item = Result < PortStatus > > + Unpin > { const DEFAULT_BUFFER_SIZE : u32 = 64 ; self . port_status_stream_with_buffer_size ( port , DEFAULT_BUFFER_SIZE ) }
Gets a [`Stream`] of [`PortStatus`] for status changes from the device.
Gets a [ ` Stream ` ] of [ ` PortStatus ` ] for status changes from the device .
&self
port
Port