#[non_exhaustive]pub enum VideoError {
Show 18 variants
NotAllowed,
Disabled,
VideoSlotsFull,
ScreenSlotsFull,
MediaBusy {
retry_after: Option<u64>,
},
MediaCapacity,
NoLease,
Downgraded,
CodecUnavailable,
CameraDenied,
CameraBusy,
CameraNotFound,
NoFrames,
AlreadyPublished,
NotPublished,
PublishFailed(String),
Lease {
status: u16,
code: String,
},
Ended,
}Expand description
Video publishing: the engine’s frame API (Call::publish_video) and its types.
Video publishing: the engine’s frame API (Call::publish_video) and its types.
Video publishing: the engine’s frame API (Call::publish_video) and its types.
Why a lease or a publication failed: VideoError::code is the plugin’s error code.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NotAllowed
The join’s policy has video off, or this session may not hold the lease
(camera_allowed / screen_allowed).
Disabled
Sew refused: [voice.video] enabled = false (403 policy_denied video_disabled).
VideoSlotsFull
The room’s camera cap (422 video_slots_full).
ScreenSlotsFull
The room’s screen-share cap (422 screen_slots_full).
MediaBusy
The media budget refuses new video now (503 media_busy).
MediaCapacity
The install’s video publisher cap (503 media_capacity).
NoLease
No lease for the source (the publish check).
Downgraded
The SFU answered the publication without GCM: refused for the rest of the call.
No encoder for any codec the policy allows (or no layer opened).
CameraDenied
The camera permission is denied or restricted.
CameraBusy
Another app holds the camera.
CameraNotFound
No such camera.
NoFrames
The camera opened but gave no frame in time (2.5 s): nothing was published, the camera closed and the lease released.
AlreadyPublished
The source already has a publication.
NotPublished
The source has no publication.
PublishFailed(String)
The SFU refused the publication or did not answer in time.
Lease
Sew refused the lease for another reason (code, the HTTP status), or the door could
not be reached (status 0).
Ended
The call is over.
Implementations§
Trait Implementations§
Source§impl Clone for VideoError
impl Clone for VideoError
Source§impl Debug for VideoError
impl Debug for VideoError
Source§impl Display for VideoError
impl Display for VideoError
impl Eq for VideoError
Source§impl Error for VideoError
impl Error for VideoError
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 VideoError
impl PartialEq for VideoError
impl StructuralPartialEq for VideoError
Auto Trait Implementations§
impl Forget for VideoError
impl Freeze for VideoError
impl Move for VideoError
impl RefUnwindSafe for VideoError
impl Send for VideoError
impl Sync for VideoError
impl Unpin for VideoError
impl UnsafeUnpin for VideoError
impl UnwindSafe for VideoError
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