Trait avalanche_types::proto::pb::net::conn::conn_server::Conn
source · pub trait Conn: Send + Sync + 'static {
fn read<'life0, 'async_trait>(
&'life0 self,
request: Request<ReadRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<ReadResponse>, Status>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait;
fn write<'life0, 'async_trait>(
&'life0 self,
request: Request<WriteRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<WriteResponse>, Status>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait;
fn close<'life0, 'async_trait>(
&'life0 self,
request: Request<Empty>
) -> Pin<Box<dyn Future<Output = Result<Response<Empty>, Status>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait;
fn set_deadline<'life0, 'async_trait>(
&'life0 self,
request: Request<SetDeadlineRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<Empty>, Status>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait;
fn set_read_deadline<'life0, 'async_trait>(
&'life0 self,
request: Request<SetDeadlineRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<Empty>, Status>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait;
fn set_write_deadline<'life0, 'async_trait>(
&'life0 self,
request: Request<SetDeadlineRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<Empty>, Status>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Generated trait containing gRPC methods that should be implemented for use with ConnServer.