#[non_exhaustive]pub struct LocalVideo {
pub source: VideoSource,
pub on: bool,
pub reason: Option<String>,
}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.
The local video’s state (CallEvent::LocalVideo).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.source: VideoSourceCamera or screen.
on: boolPublished now.
reason: Option<String>Why it went off (video_disabled, server_unpublished, lease_lost, …).
Implementations§
Source§impl LocalVideo
impl LocalVideo
Sourcepub fn new(source: VideoSource, on: bool, reason: Option<String>) -> LocalVideo
pub fn new(source: VideoSource, on: bool, reason: Option<String>) -> LocalVideo
source on or off, and why.
Trait Implementations§
Source§impl Clone for LocalVideo
impl Clone for LocalVideo
Source§impl Debug for LocalVideo
impl Debug for LocalVideo
impl Eq for LocalVideo
Source§impl PartialEq for LocalVideo
impl PartialEq for LocalVideo
Source§impl Serialize for LocalVideo
impl Serialize for LocalVideo
impl StructuralPartialEq for LocalVideo
Auto Trait Implementations§
impl Forget for LocalVideo
impl Freeze for LocalVideo
impl Move for LocalVideo
impl RefUnwindSafe for LocalVideo
impl Send for LocalVideo
impl Sync for LocalVideo
impl Unpin for LocalVideo
impl UnsafeUnpin for LocalVideo
impl UnwindSafe for LocalVideo
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
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> ⓘ
Converts
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> ⓘ
Converts
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