pub struct CallSpec {
pub call_type: ActiveCallType,
pub cancel_token: CancellationToken,
pub session_id: String,
pub invitation: Invitation,
pub app_state: AppState,
pub track_config: TrackConfig,
pub audio_receiver: Option<WebsocketBytesReceiver>,
pub dump_events: bool,
pub server_side_track_id: Option<TrackId>,
pub extras: Option<HashMap<String, Value>>,
}Expand description
Construction parameters for ActiveCall::new.
Fields§
§call_type: ActiveCallType§cancel_token: CancellationToken§session_id: String§invitation: Invitation§app_state: AppState§track_config: TrackConfig§audio_receiver: Option<WebsocketBytesReceiver>WebSocket audio receiver (WebSocket calls only), taken once by setup.
dump_events: bool§server_side_track_id: Option<TrackId>Overrides the default server-side track id.
extras: Option<HashMap<String, Value>>Initial session variables; built-ins (session id, call type, start time) are injected for missing keys.
Auto Trait Implementations§
impl !RefUnwindSafe for CallSpec
impl !UnwindSafe for CallSpec
impl Freeze for CallSpec
impl Send for CallSpec
impl Sync for CallSpec
impl Unpin for CallSpec
impl UnsafeUnpin for CallSpec
Blanket Implementations§
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<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