#[non_exhaustive]pub enum CallState {
Connecting,
Connected,
Reconnecting {
attempt: u32,
},
ConsentRequired {
recording_id: String,
notice_version: u32,
},
Ended {
reason: EndReason,
},
}Expand description
The call’s state (state event).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Connecting
Getting media and keys up.
Connected
Media is up and a key epoch is active: you can hear and be heard.
Reconnecting
Resuming or reconnecting (attempt counts from 1).
ConsentRequired
Held (Sew 0.7.3): the room is recorded and Sew refused the join until the person
answers its notice (409 recording_consent_required). No media, no keys, nothing is
captured or sent. The notice is Call::recording’s consent_prompt; answer with
Call::consent (the engine re-joins with the answer) or give up with
Call::leave. Waits as long as the host does (a lock-screen answer may take a while).
Fields
§
recording_id: StringThe recording (Sew’s id, a decimal string), or auto for an auto-record channel’s
first join.
§
notice_version: u32The notice’s version: what Call::consent echoes.
Ended
Over.
Trait Implementations§
impl Eq for CallState
impl StructuralPartialEq for CallState
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
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