pub struct AppStateBuilder { /* private fields */ }Expand description
Builder for constructing AppState during server startup.
Each setter returns &mut Self for chaining. Call build
to produce the final AppState.
Implementations§
Source§impl AppStateBuilder
impl AppStateBuilder
pub fn config(self, config: Arc<Config>) -> Self
pub fn db(self, pool: AnyPool) -> Self
pub fn db_ro(self, pool: AnyPool) -> Self
pub fn db_kind(self, kind: DbKind) -> Self
pub fn cas(self, cas: IndexMap<String, Arc<CaState>>) -> Self
pub fn default_ca_id(self, id: String) -> Self
pub fn otp_store(self, store: Arc<OtpStore>) -> Self
pub fn hsm(self, ctx: Arc<HsmContext>) -> Self
pub fn audit(self, state: Arc<AuditState>) -> Self
pub fn ha_manager(self, manager: Arc<HaManager>) -> Self
pub fn gss_cred(self, cred: Arc<dyn Any + Send + Sync>) -> Self
pub fn star_manager(self, manager: Arc<StarManager>) -> Self
Trait Implementations§
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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