Trait Relay Diagnostics Service
Generated from cargo doc --no-deps -p nemo-relay-builtins -p nemo-relay-diagnostics -p nemo-relay-logging -p nemo-relay-plugin-host -p nemo-relay-codecs -p nemo-relay -p nemo-relay-runtime -p nemo-relay-model-pricing -p nemo-relay-resource-metrics -p nemo-relay-observability -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.
pub trait RelayDiagnosticsService:
Send
+ Sync
+ 'static {
// Required methods
fn get_diagnostic_capabilities<'life0, 'async_trait>(
&'life0 self,
request: Request<GetDiagnosticCapabilitiesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetDiagnosticCapabilitiesResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn open_diagnostic_session<'life0, 'async_trait>(
&'life0 self,
request: Request<OpenDiagnosticSessionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<OpenDiagnosticSessionResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn submit_diagnostic<'life0, 'async_trait>(
&'life0 self,
request: Request<SubmitDiagnosticRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SubmitDiagnosticResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn read_diagnostic_page<'life0, 'async_trait>(
&'life0 self,
request: Request<ReadDiagnosticPageRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ReadDiagnosticPageResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_diagnostic_discovery<'life0, 'async_trait>(
&'life0 self,
request: Request<GetDiagnosticDiscoveryRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetDiagnosticDiscoveryResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn inspect_diagnostic_memory<'life0, 'async_trait>(
&'life0 self,
request: Request<InspectDiagnosticMemoryRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<InspectDiagnosticMemoryResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Generated trait containing gRPC methods that should be implemented for use with RelayDiagnosticsServiceServer.
Required Methods
get_diagnostic_capabilities
fn get_diagnostic_capabilities<'life0, 'async_trait>(
&'life0 self,
request: Request<GetDiagnosticCapabilitiesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetDiagnosticCapabilitiesResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns the host’s independent diagnostic limits, contracts, and read authority.
open_diagnostic_session
fn open_diagnostic_session<'life0, 'async_trait>(
&'life0 self,
request: Request<OpenDiagnosticSessionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<OpenDiagnosticSessionResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Opens or returns this activation’s live diagnostic session with confirmed policy.
submit_diagnostic
fn submit_diagnostic<'life0, 'async_trait>(
&'life0 self,
request: Request<SubmitDiagnosticRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SubmitDiagnosticResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Admits the next ordered diagnostic operation, preserving replay and receipt semantics.
read_diagnostic_page
fn read_diagnostic_page<'life0, 'async_trait>(
&'life0 self,
request: Request<ReadDiagnosticPageRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ReadDiagnosticPageResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Reads one bounded diagnostic page only when separate read authority has been granted.
get_diagnostic_discovery
fn get_diagnostic_discovery<'life0, 'async_trait>(
&'life0 self,
request: Request<GetDiagnosticDiscoveryRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetDiagnosticDiscoveryResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Reads side-effect-free diagnostic discovery under separately granted authority.
inspect_diagnostic_memory
fn inspect_diagnostic_memory<'life0, 'async_trait>(
&'life0 self,
request: Request<InspectDiagnosticMemoryRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<InspectDiagnosticMemoryResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Inspects bounded retained diagnostic backing and existing resource samples without collecting.