pub struct CallState {Show 24 fields
pub id: String,
pub peer: String,
pub outgoing: bool,
pub phase: Phase,
pub reason: Option<String>,
pub muted: bool,
pub peer_muted: bool,
pub mic_off: bool,
pub volume: f32,
pub active_ms: u64,
pub video_mine: Tracks,
pub video_peer: Tracks,
pub peer_decodes: Vec<String>,
pub video_offered: bool,
pub paused_by_peer: bool,
pub peer_away: bool,
pub stalled: bool,
pub share_audio_mine: bool,
pub share_audio_peer: bool,
pub share_volume: f32,
pub share_audio_native: bool,
pub share_audio_denied: bool,
pub name: String,
pub avatar: Option<String>,
}Fields§
§id: String§peer: String§outgoing: bool§phase: Phase§reason: Option<String>§muted: bool§peer_muted: bool§mic_off: boolThe call has no microphone (access refused, or none there): it stays muted.
volume: f32Listener-side volume, 1.0 is unity.
active_ms: u64Milliseconds since the call went active; 0 before that.
video_mine: TracksWhat I am sending on video, and what the peer is: either, both or neither.
video_peer: Tracks§peer_decodes: Vec<String>Codecs the peer can decode, from their offer or answer; empty means no video.
video_offered: boolThe offer asked for a video call.
paused_by_peer: boolThe peer has hidden our picture; the camera can rest.
peer_away: boolThe peer’s app is paused by their system; the call waits for it.
stalled: boolNothing has arrived from the peer for a few seconds.
The shared screen’s sound travels with it, each way.
Listener-side volume for their screen’s sound, 1.0 is unity.
This platform can capture the screen’s sound itself, without the webview.
The system has refused screen recording and will not ask again.
name: StringThe peer as this account shows them, for a phone’s own call notification.
avatar: Option<String>Trait Implementations§
Auto Trait Implementations§
impl Forget for CallState
impl Freeze for CallState
impl Move for CallState
impl RefUnwindSafe for CallState
impl Send for CallState
impl Sync for CallState
impl Unpin for CallState
impl UnsafeUnpin for CallState
impl UnwindSafe for CallState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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