pub struct AppStateBuilder {
pub config: Option<Config>,
pub stream_engine: Option<Arc<StreamEngine>>,
pub callrecord_sender: Option<CallRecordSender>,
pub callrecord_formatter: Option<Arc<dyn CallRecordFormatter>>,
pub cancel_token: Option<CancellationToken>,
pub create_invitation_handler: Option<FnCreateInvitationHandler>,
pub config_path: Option<String>,
pub message_inspector: Option<Box<dyn MessageInspector>>,
pub target_locator: Option<Box<dyn TargetLocator>>,
pub transport_inspector: Option<Box<dyn TransportEventInspector>>,
}Fields§
§config: Option<Config>§stream_engine: Option<Arc<StreamEngine>>§callrecord_sender: Option<CallRecordSender>§callrecord_formatter: Option<Arc<dyn CallRecordFormatter>>§cancel_token: Option<CancellationToken>§create_invitation_handler: Option<FnCreateInvitationHandler>§config_path: Option<String>§message_inspector: Option<Box<dyn MessageInspector>>§target_locator: Option<Box<dyn TargetLocator>>§transport_inspector: Option<Box<dyn TransportEventInspector>>Implementations§
Source§impl AppStateBuilder
impl AppStateBuilder
pub fn new() -> Self
pub fn with_config(self, config: Config) -> Self
pub fn with_stream_engine(self, stream_engine: Arc<StreamEngine>) -> Self
pub fn with_callrecord_sender(self, sender: CallRecordSender) -> Self
pub fn with_cancel_token(self, token: CancellationToken) -> Self
pub fn with_config_metadata(self, path: Option<String>) -> Self
pub fn with_inspector( &mut self, inspector: Box<dyn MessageInspector>, ) -> &mut Self
pub fn with_target_locator( &mut self, locator: Box<dyn TargetLocator>, ) -> &mut Self
pub fn with_transport_inspector( &mut self, inspector: Box<dyn TransportEventInspector>, ) -> &mut Self
pub async fn build(self) -> Result<AppState>
Auto Trait Implementations§
impl Freeze for AppStateBuilder
impl !RefUnwindSafe for AppStateBuilder
impl Send for AppStateBuilder
impl Sync for AppStateBuilder
impl Unpin for AppStateBuilder
impl UnsafeUnpin for AppStateBuilder
impl !UnwindSafe for AppStateBuilder
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
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