pub struct AgentState { /* private fields */ }Implementations§
Source§impl AgentState
impl AgentState
pub fn new( db_pool: DbPool, config: Arc<Config>, jwt_provider: DynJwtValidationProvider, ) -> Self
pub fn with_user_provider(self, provider: DynUserProvider) -> Self
pub fn with_analytics_provider( self, provider: Arc<dyn AnalyticsProvider>, ) -> Self
pub fn with_session_analytics_provider( self, provider: DynSessionAnalyticsProvider, ) -> Self
pub fn with_file_upload_provider(self, provider: DynFileUploadProvider) -> Self
pub fn with_mcp_service_provider(self, provider: DynMcpServiceProvider) -> Self
pub fn with_process_cleanup_provider( self, provider: DynProcessCleanupProvider, ) -> Self
pub const fn db_pool(&self) -> &DbPool
pub fn config(&self) -> &Config
pub fn jwt_provider(&self) -> &DynJwtValidationProvider
pub fn user_provider(&self) -> Option<&DynUserProvider>
pub fn analytics_provider(&self) -> Option<&Arc<dyn AnalyticsProvider>>
pub fn session_analytics_provider(&self) -> Option<&DynSessionAnalyticsProvider>
pub fn file_upload_provider(&self) -> Option<&DynFileUploadProvider>
pub fn mcp_service_provider(&self) -> Option<&DynMcpServiceProvider>
pub fn process_cleanup_provider(&self) -> Option<&DynProcessCleanupProvider>
Trait Implementations§
Source§impl Clone for AgentState
impl Clone for AgentState
Source§fn clone(&self) -> AgentState
fn clone(&self) -> AgentState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AgentState
impl !RefUnwindSafe for AgentState
impl Send for AgentState
impl Sync for AgentState
impl Unpin for AgentState
impl !UnwindSafe for AgentState
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<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>
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