#[non_exhaustive]pub enum CaptureEnd {
Closed,
DeviceLost,
UserStopped,
SourceClosed,
Revoked,
}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 source ended (terminal: drop it, unpublish, release the lease).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Closed
It was closed (the backend shut down).
DeviceLost
The device went away (unplugged, display disconnected).
UserStopped
The person stopped it from the OS’s UI (the share bar, the portal).
SourceClosed
The shared window closed.
Revoked
The OS permission was revoked while running.
Implementations§
Source§impl CaptureEnd
impl CaptureEnd
Sourcepub fn reason(self, kind: CaptureKind) -> &'static str
pub fn reason(self, kind: CaptureKind) -> &'static str
The local_video.reason for a kind source that ended this way: user_stopped,
source_closed (a screen’s display or window gone), camera_lost, camera_denied /
screen_denied (the permission revoked while sending), unpublished (closed).
Trait Implementations§
Source§impl Clone for CaptureEnd
impl Clone for CaptureEnd
impl Copy for CaptureEnd
Source§impl Debug for CaptureEnd
impl Debug for CaptureEnd
impl Eq for CaptureEnd
Source§impl Hash for CaptureEnd
impl Hash for CaptureEnd
Source§impl PartialEq for CaptureEnd
impl PartialEq for CaptureEnd
impl StructuralPartialEq for CaptureEnd
Auto Trait Implementations§
impl Forget for CaptureEnd
impl Freeze for CaptureEnd
impl Move for CaptureEnd
impl RefUnwindSafe for CaptureEnd
impl Send for CaptureEnd
impl Sync for CaptureEnd
impl Unpin for CaptureEnd
impl UnsafeUnpin for CaptureEnd
impl UnwindSafe for CaptureEnd
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