pub struct BundleWriter<W: Write> { /* private fields */ }Expand description
Incremental writer for bundle bytes (header + pack).
Implementations§
Source§impl<W: Write> BundleWriter<W>
impl<W: Write> BundleWriter<W>
Sourcepub fn new(inner: W) -> Self
pub fn new(inner: W) -> Self
Create a writer; call Self::write_header_and_pack to emit a complete bundle.
Sourcepub fn write_header_and_pack(
self,
repo: &Repository,
spec: &BundleSpec,
) -> Result<(), BundleError>
pub fn write_header_and_pack( self, repo: &Repository, spec: &BundleSpec, ) -> Result<(), BundleError>
Auto Trait Implementations§
impl<W> Freeze for BundleWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for BundleWriter<W>where
W: RefUnwindSafe,
impl<W> Send for BundleWriter<W>where
W: Send,
impl<W> Sync for BundleWriter<W>where
W: Sync,
impl<W> Unpin for BundleWriter<W>where
W: Unpin,
impl<W> UnsafeUnpin for BundleWriter<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for BundleWriter<W>where
W: UnwindSafe,
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