#[non_exhaustive]pub enum CaptureError {
VideoUnsupported,
CameraDenied,
CameraBusy,
CameraNotFound,
CameraLost,
CodecUnavailable,
ScreenUnsupported,
ScreenDenied,
PickerCancelled,
ScreenNotFound,
EncoderLost,
Failed(VideoError),
}Expand description
Video capture (video-core): cameras, screens, the OS picker, screen thumbnails and the
pre-join preview over a kessel-video backend, as the sources the publish side takes.
Video capture (video-core): cameras, screens, the OS picker, screen thumbnails and the
pre-join preview over a kessel-video backend, as the sources the publish side takes.
Video capture (video-core): cameras, screens, the OS picker, screen thumbnails and the
pre-join preview over a kessel-video backend, as the sources the publish side takes.
Why a camera or screen could not be opened. CaptureError::code is the plugin’s code.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
VideoUnsupported
No video here (the null backend, a backend shut down, no camera API).
CameraDenied
The OS camera permission is denied or restricted.
CameraBusy
Another app holds the camera.
CameraNotFound
No such camera (or none at all).
CameraLost
The camera went away while opening.
No encoder for the codecs wanted.
ScreenUnsupported
No screen capture here (Linux without the portal or libpipewire, phones), or no OS picker where one was asked for.
ScreenDenied
The OS screen-recording permission is denied.
PickerCancelled
The person cancelled the OS picker.
ScreenNotFound
The listed display or window is gone (or was never listed).
EncoderLost
An encoder failed and could not be reopened (the preview).
Failed(VideoError)
Any other backend failure (VideoError::code says which).
Implementations§
Trait Implementations§
Source§impl Clone for CaptureError
impl Clone for CaptureError
Source§impl Debug for CaptureError
impl Debug for CaptureError
Source§impl Display for CaptureError
impl Display for CaptureError
impl Eq for CaptureError
Source§impl Error for CaptureError
impl Error for CaptureError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for CaptureError
impl PartialEq for CaptureError
impl StructuralPartialEq for CaptureError
Auto Trait Implementations§
impl Forget for CaptureError
impl Freeze for CaptureError
impl Move for CaptureError
impl RefUnwindSafe for CaptureError
impl Send for CaptureError
impl Sync for CaptureError
impl Unpin for CaptureError
impl UnsafeUnpin for CaptureError
impl UnwindSafe for CaptureError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> CloneAny for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CryptoSafe for T
impl<T> CryptoSafe for T
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more