pub struct BridgeState { /* private fields */ }Implementations§
Source§impl BridgeState
impl BridgeState
pub async fn runtime_snapshot(&self) -> RuntimeStatusSnapshot
pub async fn runtime_summaries(&self) -> Vec<RuntimeSummary>
pub async fn runtime_snapshot_for_client(&self) -> RuntimeStatusSnapshot
pub async fn runtime_summaries_for_client(&self) -> Vec<RuntimeSummary>
Source§impl BridgeState
impl BridgeState
pub async fn bootstrap(config: Config) -> Result<Arc<Self>>
pub fn subscribe_events(&self) -> Receiver<PersistedEvent>
pub fn config_token(&self) -> &str
pub async fn hello_payload( &self, device_id: &str, provided_ack_seq: Option<i64>, ) -> Result<(RuntimeStatusSnapshot, Vec<RuntimeSummary>, Vec<DirectoryBookmarkRecord>, Vec<DirectoryHistoryRecord>, Vec<PendingServerRequestRecord>, Vec<PersistedEvent>)>
pub fn ack_events(&self, device_id: &str, last_seq: i64) -> Result<()>
pub async fn handle_request( &self, action: &str, payload: Value, ) -> Result<Value>
Auto Trait Implementations§
impl !Freeze for BridgeState
impl !RefUnwindSafe for BridgeState
impl Send for BridgeState
impl Sync for BridgeState
impl Unpin for BridgeState
impl UnsafeUnpin for BridgeState
impl !UnwindSafe for BridgeState
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