pub struct AsyncWebcam<'a> { /* private fields */ }Expand description
Handle for a webcam net.
Stream URLs point at the box host as the client reached it; pass the URL to any MJPEG viewer (browser, VLC, OpenCV).
Implementations§
Source§impl<'a> AsyncWebcam<'a>
impl<'a> AsyncWebcam<'a>
Sourcepub async fn start(&self) -> Result<WebcamStream>
pub async fn start(&self) -> Result<WebcamStream>
Start the MJPEG stream (idempotent: reports already_running
when a stream is already up).
Sourcepub async fn status(&self) -> Result<WebcamStatus>
pub async fn status(&self) -> Result<WebcamStatus>
Current stream state (running, URL, port, device).
Trait Implementations§
Source§impl<'a> Clone for AsyncWebcam<'a>
impl<'a> Clone for AsyncWebcam<'a>
Source§fn clone(&self) -> AsyncWebcam<'a>
fn clone(&self) -> AsyncWebcam<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> !RefUnwindSafe for AsyncWebcam<'a>
impl<'a> !UnwindSafe for AsyncWebcam<'a>
impl<'a> Freeze for AsyncWebcam<'a>
impl<'a> Send for AsyncWebcam<'a>
impl<'a> Sync for AsyncWebcam<'a>
impl<'a> Unpin for AsyncWebcam<'a>
impl<'a> UnsafeUnpin for AsyncWebcam<'a>
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