#[non_exhaustive]pub struct CameraRequest {
pub on: bool,
pub device: Option<String>,
pub temporal_layers: Option<u8>,
pub reason: Option<String>,
}Expand description
The video bridge: a kessel-video backend’s cameras, screens and encoders into a call, with
the in-call self-view.
The video bridge: a kessel-video backend’s cameras, screens and encoders into a call, with
the in-call self-view.
The video bridge: a kessel-video backend’s cameras, screens and encoders into a call, with
the in-call self-view.
What to do with the camera (VideoBridge::set_camera).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.on: boolOn or off.
device: Option<String>The camera (None: the default). With the camera on, another id switches to it.
temporal_layers: Option<u8>At most this many VP8 temporal layers (None: what the encoder offers, up to 3).
reason: Option<String>With the camera off: local_video’s reason (None: unpublished), so a log tells who
turned it off (the app’s button, the system’s call UI, …).
Implementations§
Source§impl CameraRequest
impl CameraRequest
Sourcepub fn on() -> CameraRequest
pub fn on() -> CameraRequest
The default camera on.
Sourcepub fn off() -> CameraRequest
pub fn off() -> CameraRequest
The camera off.
Sourcepub fn with_device(self, device: &str) -> CameraRequest
pub fn with_device(self, device: &str) -> CameraRequest
With camera device.
Sourcepub fn with_reason(self, reason: &str) -> CameraRequest
pub fn with_reason(self, reason: &str) -> CameraRequest
With reason as local_video’s reason for an off.
Sourcepub fn with_temporal_layers(self, n: u8) -> CameraRequest
pub fn with_temporal_layers(self, n: u8) -> CameraRequest
With at most n VP8 temporal layers.
Trait Implementations§
Source§impl Clone for CameraRequest
impl Clone for CameraRequest
Source§impl Debug for CameraRequest
impl Debug for CameraRequest
Source§impl Default for CameraRequest
impl Default for CameraRequest
impl Eq for CameraRequest
Source§impl PartialEq for CameraRequest
impl PartialEq for CameraRequest
impl StructuralPartialEq for CameraRequest
Auto Trait Implementations§
impl Forget for CameraRequest
impl Freeze for CameraRequest
impl Move for CameraRequest
impl RefUnwindSafe for CameraRequest
impl Send for CameraRequest
impl Sync for CameraRequest
impl Unpin for CameraRequest
impl UnsafeUnpin for CameraRequest
impl UnwindSafe for CameraRequest
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