[][src]Struct git2::Mempack

pub struct Mempack<'odb> { /* fields omitted */ }

A structure to represent a mempack backend for the object database. The Mempack is bound to the Odb that it was created from, and cannot outlive that Odb.

Implementations

impl<'odb> Mempack<'odb>[src]

pub fn dump(&self, repo: &Repository, buf: &mut Buf) -> Result<(), Error>[src]

Dumps the contents of the mempack into the provided buffer.

pub fn reset(&self) -> Result<(), Error>[src]

Clears all data in the mempack.

Auto Trait Implementations

impl<'odb> RefUnwindSafe for Mempack<'odb>[src]

impl<'odb> !Send for Mempack<'odb>[src]

impl<'odb> !Sync for Mempack<'odb>[src]

impl<'odb> Unpin for Mempack<'odb>[src]

impl<'odb> UnwindSafe for Mempack<'odb>[src]

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.