pub struct Runtime<A: Application> {
pub state: StateManager<A>,
pub records: RecordManager<A>,
pub streams: StreamManager<A>,
pub operations: OperationManager,
pub evidence: Evidence<A>,
/* private fields */
}Fields§
§state: StateManager<A>§records: RecordManager<A>§streams: StreamManager<A>§operations: OperationManager§evidence: Evidence<A>Implementations§
Source§impl<A: Application> Runtime<A>
impl<A: Application> Runtime<A>
pub async fn start_storage<C>(&self, storage: StorageManager<C>) -> Result<()>
pub fn storage(&self) -> Option<&StorageManager<ErasedCatalog>>
pub async fn stop_with_timeout(&self, timeout: Duration) -> Result<Position>
pub async fn stop(&self) -> Result<Position>
Source§impl<A: Application> Runtime<A>
impl<A: Application> Runtime<A>
pub fn builder( origin: impl Into<Origin<A::State>>, resources: impl Into<Arc<A::Resources>>, ) -> Builder<A>
pub async fn inspect( origin: impl Into<Origin<A::State>>, source: impl Source<A>, ) -> Result<Inspector<A>, Incompatible>
pub fn stop_participant(&self) -> StopParticipant
pub fn notices(&self) -> Receiver<Option<String>>
pub fn handle(&self) -> Handle<A>
Auto Trait Implementations§
impl<A> !Freeze for Runtime<A>
impl<A> !RefUnwindSafe for Runtime<A>
impl<A> !UnwindSafe for Runtime<A>
impl<A> Send for Runtime<A>where
StateManager<A>: Send,
RecordManager<A>: Send,
StreamManager<A>: Send,
Evidence<A>: Send,
Mutex<Stopping<A>>: Send,
impl<A> Sync for Runtime<A>where
StateManager<A>: Sync,
RecordManager<A>: Sync,
StreamManager<A>: Sync,
Evidence<A>: Sync,
Mutex<Stopping<A>>: Sync,
impl<A> Unpin for Runtime<A>where
StateManager<A>: Unpin,
RecordManager<A>: Unpin,
StreamManager<A>: Unpin,
Evidence<A>: Unpin,
Mutex<Stopping<A>>: Unpin,
impl<A> UnsafeUnpin for Runtime<A>where
StateManager<A>: UnsafeUnpin,
RecordManager<A>: UnsafeUnpin,
StreamManager<A>: UnsafeUnpin,
Evidence<A>: UnsafeUnpin,
Mutex<Stopping<A>>: UnsafeUnpin,
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