[][src]Trait tink_testing_server::proto::metadata_server::Metadata

pub trait Metadata: Send + Sync + 'static {
#[must_use]    fn get_server_info<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ServerInfoRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<ServerInfoResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Generated trait containing gRPC methods that should be implemented for use with MetadataServer.

Required methods

#[must_use]fn get_server_info<'life0, 'async_trait>(
    &'life0 self,
    request: Request<ServerInfoRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<ServerInfoResponse>, Status>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Returns some server information. A test may use this information to verify that it is talking to the right server.

Loading content...

Implementors

impl Metadata for MetadataServerImpl[src]

Loading content...