pub struct Runtime {
pub sessions: Arc<dyn SessionSource>,
pub brain: Arc<dyn BrainView>,
pub coord: Arc<dyn CoordView>,
pub bus: Arc<dyn BusView>,
pub actions: Arc<dyn Actions>,
pub review: Arc<dyn BrainReviewView>,
pub orchestrator: Arc<dyn Orchestrator>,
pub hive: Arc<dyn HiveActions>,
}Expand description
Single struct the binary builds at startup and hands to the TUI.
All fields are Arc<dyn ...> so the TUI doesn’t care whether an impl is
a thin SQLite wrapper, a remote HTTP client, or an in-memory mock — they
all share the same shape.
Fields§
§sessions: Arc<dyn SessionSource>§brain: Arc<dyn BrainView>§coord: Arc<dyn CoordView>§bus: Arc<dyn BusView>§actions: Arc<dyn Actions>§review: Arc<dyn BrainReviewView>§orchestrator: Arc<dyn Orchestrator>§hive: Arc<dyn HiveActions>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Runtime
impl !UnwindSafe for Runtime
impl Freeze for Runtime
impl Send for Runtime
impl Sync for Runtime
impl Unpin for Runtime
impl UnsafeUnpin for Runtime
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> 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