pub struct FilesystemRepositoryWriter { /* private fields */ }Expand description
A writable Debian repository backed by a filesystem.
Implementations§
Trait Implementations§
source§impl RepositoryWriter for FilesystemRepositoryWriter
impl RepositoryWriter for FilesystemRepositoryWriter
source§fn verify_path<'path, 'life0, 'async_trait>(
&'life0 self,
path: &'path str,
expected_content: Option<(u64, ContentDigest)>
) -> Pin<Box<dyn Future<Output = Result<RepositoryPathVerification<'path>>> + Send + 'async_trait>>where
Self: 'async_trait,
'path: 'async_trait,
'life0: 'async_trait,
fn verify_path<'path, 'life0, 'async_trait>(
&'life0 self,
path: &'path str,
expected_content: Option<(u64, ContentDigest)>
) -> Pin<Box<dyn Future<Output = Result<RepositoryPathVerification<'path>>> + Send + 'async_trait>>where
Self: 'async_trait,
'path: 'async_trait,
'life0: 'async_trait,
Verify the existence of a path with optional content integrity checking. Read more
source§fn write_path<'path, 'reader, 'life0, 'async_trait>(
&'life0 self,
path: Cow<'path, str>,
reader: Pin<Box<dyn AsyncRead + Send + 'reader>>
) -> Pin<Box<dyn Future<Output = Result<RepositoryWrite<'path>>> + Send + 'async_trait>>where
Self: 'async_trait,
'path: 'async_trait,
'reader: 'async_trait,
'life0: 'async_trait,
fn write_path<'path, 'reader, 'life0, 'async_trait>(
&'life0 self,
path: Cow<'path, str>,
reader: Pin<Box<dyn AsyncRead + Send + 'reader>>
) -> Pin<Box<dyn Future<Output = Result<RepositoryWrite<'path>>> + Send + 'async_trait>>where
Self: 'async_trait,
'path: 'async_trait,
'reader: 'async_trait,
'life0: 'async_trait,
Write data to a given path. Read more
source§fn copy_from<'path, 'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
reader: &'life1 dyn RepositoryRootReader,
source_path: Cow<'path, str>,
expected_content: Option<(u64, ContentDigest)>,
dest_path: Cow<'path, str>,
progress_cb: &'life2 Option<Box<dyn Fn(PublishEvent) + Sync>>
) -> Pin<Box<dyn Future<Output = Result<RepositoryWriteOperation<'path>>> + Send + 'async_trait>>where
Self: 'async_trait,
'path: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn copy_from<'path, 'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
reader: &'life1 dyn RepositoryRootReader,
source_path: Cow<'path, str>,
expected_content: Option<(u64, ContentDigest)>,
dest_path: Cow<'path, str>,
progress_cb: &'life2 Option<Box<dyn Fn(PublishEvent) + Sync>>
) -> Pin<Box<dyn Future<Output = Result<RepositoryWriteOperation<'path>>> + Send + 'async_trait>>where
Self: 'async_trait,
'path: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Copy a path from a reader to this writer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for FilesystemRepositoryWriter
impl Send for FilesystemRepositoryWriter
impl Sync for FilesystemRepositoryWriter
impl Unpin for FilesystemRepositoryWriter
impl UnwindSafe for FilesystemRepositoryWriter
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more