[pbs-devel] [RFC proxmox-backup 07/24] server: sync: move reader trait to common sync module
Gabriel Goller
g.goller at proxmox.com
Tue Jul 16 11:53:13 CEST 2024
On 15.07.2024 12:15, Christian Ebner wrote:
> pub(crate) struct PullTarget {
> store: Arc<DataStore>,
> ns: BackupNamespace,
>@@ -97,7 +85,7 @@ trait PullSource: Send + Sync {
> &self,
> ns: &BackupNamespace,
> dir: &BackupDir,
>- ) -> Result<Arc<dyn PullReader>, Error>;
>+ ) -> Result<Arc<dyn SyncSourceReader>, Error>;
> }
>
> #[async_trait::async_trait]
AFAIK we are currently on rust 1.79.0, which has async fn's in traits
already stabilized. This means we can remove the async_trait create.
https://releases.rs/docs/1.75.0/
More information about the pbs-devel
mailing list