Struct git2::OdbPackwriter[][src]

pub struct OdbPackwriter<'repo> { /* fields omitted */ }

A stream to write a packfile to the ODB

Implementations

impl<'repo> OdbPackwriter<'repo>[src]

pub fn commit(&mut self) -> Result<i32, Error>[src]

Finish writing the packfile

pub fn progress<F>(&mut self, cb: F) -> &mut OdbPackwriter<'repo>

Notable traits for OdbPackwriter<'repo>

impl<'repo> Write for OdbPackwriter<'repo>
where
    F: FnMut(Progress<'_>) -> bool + 'repo, 
[src]

The callback through which progress is monitored. Be aware that this is called inline, so performance may be affected.

Trait Implementations

impl<'repo> Drop for OdbPackwriter<'repo>[src]

impl<'repo> Write for OdbPackwriter<'repo>[src]

Auto Trait Implementations

impl<'repo> !RefUnwindSafe for OdbPackwriter<'repo>

impl<'repo> !Send for OdbPackwriter<'repo>

impl<'repo> !Sync for OdbPackwriter<'repo>

impl<'repo> Unpin for OdbPackwriter<'repo>

impl<'repo> !UnwindSafe for OdbPackwriter<'repo>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.