pub struct AppState {
pub repos: Arc<RepoStore>,
pub p2p: Option<Arc<P2PManager>>,
pub consensus: Option<Arc<ConsensusEngine>>,
pub mempool: Option<Arc<Mempool>>,
pub collaboration: Arc<CollaborationStore>,
pub auth: Arc<AuthStore>,
pub realtime: Arc<EventHub>,
pub ci: Arc<CiStore>,
pub compat: Arc<CompatStore>,
}Expand description
Application state shared across handlers.
Fields§
§repos: Arc<RepoStore>Repository store.
p2p: Option<Arc<P2PManager>>Optional P2P manager for replication.
consensus: Option<Arc<ConsensusEngine>>Optional consensus engine for BFT consensus.
mempool: Option<Arc<Mempool>>Optional mempool for pending transactions.
collaboration: Arc<CollaborationStore>Collaboration store for PRs, Issues, etc.
auth: Arc<AuthStore>Authorization store for permissions, organizations, etc.
realtime: Arc<EventHub>Real-time event hub for WebSocket connections.
ci: Arc<CiStore>CI/CD store for workflows, runs, artifacts, and status checks.
compat: Arc<CompatStore>Compatibility store for users, tokens, SSH keys, releases.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AppState
impl !RefUnwindSafe for AppState
impl Send for AppState
impl Sync for AppState
impl Unpin for AppState
impl !UnwindSafe for AppState
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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