pub trait FileSend: Send + Sync + 'static {
    type DiffCopyStream: Stream<Item = Result<BytesMessage, Status>> + Send + 'static;

    // Required method
    fn diff_copy<'life0, 'async_trait>(
        &'life0 self,
        request: Request<Streaming<BytesMessage>>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::DiffCopyStream>, 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 FileSendServer.

Required Associated Types§

source

type DiffCopyStream: Stream<Item = Result<BytesMessage, Status>> + Send + 'static

Server streaming response type for the DiffCopy method.

Required Methods§

source

fn diff_copy<'life0, 'async_trait>( &'life0 self, request: Request<Streaming<BytesMessage>> ) -> Pin<Box<dyn Future<Output = Result<Response<Self::DiffCopyStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§