Struct cameleon::u3v::stream_handle::StreamHandle
source · pub struct StreamHandle {
pub inner: Arc<Mutex<ReceiveChannel>>,
/* private fields */
}
Expand description
This type is used to receive stream packets from the device.
Fields§
§inner: Arc<Mutex<ReceiveChannel>>
Inner channel to receive payload data.
Implementations§
source§impl StreamHandle
impl StreamHandle
sourcepub fn params(&self) -> &StreamParams
pub fn params(&self) -> &StreamParams
Return params.
sourcepub fn params_mut(&mut self) -> &mut StreamParams
pub fn params_mut(&mut self) -> &mut StreamParams
Return mutable params.
Trait Implementations§
source§impl Drop for StreamHandle
impl Drop for StreamHandle
source§impl From<StreamHandle> for Box<dyn PayloadStream>
impl From<StreamHandle> for Box<dyn PayloadStream>
source§fn from(strm: StreamHandle) -> Self
fn from(strm: StreamHandle) -> Self
Converts to this type from the input type.
source§impl PayloadStream for StreamHandle
impl PayloadStream for StreamHandle
source§fn open(&mut self) -> StreamResult<()>
fn open(&mut self) -> StreamResult<()>
Opens the handle.
source§fn close(&mut self) -> StreamResult<()>
fn close(&mut self) -> StreamResult<()>
Closes the handle.
source§fn start_streaming_loop(
&mut self,
sender: PayloadSender,
ctrl: &mut dyn DeviceControl
) -> StreamResult<()>
fn start_streaming_loop( &mut self, sender: PayloadSender, ctrl: &mut dyn DeviceControl ) -> StreamResult<()>
Starts streaming.
source§fn stop_streaming_loop(&mut self) -> StreamResult<()>
fn stop_streaming_loop(&mut self) -> StreamResult<()>
Stops streaming.
source§fn is_loop_running(&self) -> bool
fn is_loop_running(&self) -> bool
Returns
true
if streaming loop is running.Auto Trait Implementations§
impl RefUnwindSafe for StreamHandle
impl Send for StreamHandle
impl Sync for StreamHandle
impl Unpin for StreamHandle
impl UnwindSafe for StreamHandle
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