pub struct AppState {
pub os: Arc<AgentOs>,
pub read_store: Arc<dyn ThreadReader>,
pub mailbox_service: Arc<MailboxService>,
}Fields§
§os: Arc<AgentOs>§read_store: Arc<dyn ThreadReader>§mailbox_service: Arc<MailboxService>Implementations§
Source§impl AppState
impl AppState
pub fn new( os: Arc<AgentOs>, read_store: Arc<dyn ThreadReader>, mailbox_service: Arc<MailboxService>, ) -> Self
pub fn mailbox_store(&self) -> &Arc<dyn MailboxStore>
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