pub struct DesktopCallMedia { /* private fields */ }Implementations§
Source§impl DesktopCallMedia
impl DesktopCallMedia
pub fn new() -> Arc<Self> ⓘ
pub fn configure( &self, muted: bool, video: bool, bitrate: u32, key_generation: u32, )
Sourcepub fn set_external_video(&self, enabled: bool)
pub fn set_external_video(&self, enabled: bool)
Select a platform-owned screen capture source instead of the camera. The platform must obtain explicit user consent before enabling this.
Sourcepub fn submit_video_frame(&self, width: u32, height: u32, rgba: Vec<u8>)
pub fn submit_video_frame(&self, width: u32, height: u32, rgba: Vec<u8>)
Supplies RGBA pixels to the existing bounded H.264 video worker.
Sourcepub fn audio_devices(&self) -> DesktopAudioDevices
pub fn audio_devices(&self) -> DesktopAudioDevices
Device discovery and switching run on the audio worker, never on the UI thread.
pub fn select_audio_devices(&self, microphone: String, speaker: String)
pub fn receive( &self, kind: u8, sequence: u32, timestamp_us: u64, key_frame: bool, data: Vec<u8>, )
Sourcepub fn poll(&self) -> Vec<DesktopCallEvent>
pub fn poll(&self) -> Vec<DesktopCallEvent>
Bounded output; a slow UI cannot accumulate old capture or video frames.
pub fn stop(&self)
Trait Implementations§
Source§impl Drop for DesktopCallMedia
impl Drop for DesktopCallMedia
Source§impl<UT> LiftRef<UT> for DesktopCallMedia
impl<UT> LiftRef<UT> for DesktopCallMedia
type LiftType = Arc<DesktopCallMedia>
Source§impl<UT> LowerError<UT> for DesktopCallMedia
impl<UT> LowerError<UT> for DesktopCallMedia
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Lower this value for scaffolding function return Read more
Source§impl<UT> LowerReturn<UT> for DesktopCallMedia
impl<UT> LowerReturn<UT> for DesktopCallMedia
Source§type ReturnType = <Arc<DesktopCallMedia> as LowerReturn<UniFfiTag>>::ReturnType
type ReturnType = <Arc<DesktopCallMedia> as LowerReturn<UniFfiTag>>::ReturnType
The type that should be returned by scaffolding functions for this type. Read more
Source§fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
Lower the return value from an scaffolding call Read more
Source§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Lower the return value for failed argument lifts Read more
Source§impl<UT> TypeId<UT> for DesktopCallMedia
impl<UT> TypeId<UT> for DesktopCallMedia
Auto Trait Implementations§
impl !Freeze for DesktopCallMedia
impl Forget for DesktopCallMedia
impl Move for DesktopCallMedia
impl RefUnwindSafe for DesktopCallMedia
impl Send for DesktopCallMedia
impl Sync for DesktopCallMedia
impl Unpin for DesktopCallMedia
impl UnsafeUnpin for DesktopCallMedia
impl UnwindSafe for DesktopCallMedia
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.