pub trait IDashboardApi {
// Required methods
fn auth<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ApiAuth> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn guardian_id<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = PeerId> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn guardian_names<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = BTreeMap<PeerId, String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn federation_name<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn session_count<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = usize> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn consensus_ord_latency<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Option<Duration>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn p2p_connection_status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = BTreeMap<PeerId, Option<Duration>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn federation_invite_code<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn federation_audit<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = AuditSummary> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_module_by_kind(&self, kind: ModuleKind) -> Option<&DynServerModule>;
// Provided method
fn into_dyn(self) -> DynDashboardApi
where Self: Sized + Send + Sync + 'static { ... }
}
Expand description
Interface for guardian dashboard API in a running federation
Required Methods§
Sourcefn auth<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ApiAuth> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn auth<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ApiAuth> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the guardian’s authentication details
Sourcefn guardian_id<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = PeerId> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn guardian_id<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = PeerId> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the guardian ID
Sourcefn guardian_names<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = BTreeMap<PeerId, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn guardian_names<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = BTreeMap<PeerId, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get a map of peer IDs to guardian names
Sourcefn federation_name<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn federation_name<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the federation name
Sourcefn session_count<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = usize> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn session_count<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = usize> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the current active session count
Sourcefn consensus_ord_latency<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Option<Duration>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn consensus_ord_latency<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Option<Duration>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
The time it took to order our last proposal in the current session
Sourcefn p2p_connection_status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = BTreeMap<PeerId, Option<Duration>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn p2p_connection_status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = BTreeMap<PeerId, Option<Duration>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns a map of peer ID to estimated round trip time
Sourcefn federation_invite_code<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn federation_invite_code<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the federation invite code to share with users
Sourcefn federation_audit<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = AuditSummary> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn federation_audit<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = AuditSummary> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the federation audit summary
Sourcefn get_module_by_kind(&self, kind: ModuleKind) -> Option<&DynServerModule>
fn get_module_by_kind(&self, kind: ModuleKind) -> Option<&DynServerModule>
Get reference to a server module instance by module kind