[][src]Struct git2::OdbWriter

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

A structure to represent a git ODB wstream

Methods

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

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

Finish writing to an ODB stream

This method can be used to finalize writing object to the database and get an identifier. The object will take its final name and will be available to the odb. This method will fail if the total number of received bytes differs from the size declared with odb_writer() Attepting write after finishing will be ignored.

Trait Implementations

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

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

fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
1.0.0
[src]

Attempts to write an entire buffer into this writer. Read more

fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>
1.0.0
[src]

Writes a formatted string into this writer, returning any error encountered. Read more

fn by_ref(&mut self) -> &mut Self
1.0.0
[src]

Creates a "by reference" adaptor for this instance of Write. Read more

Auto Trait Implementations

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

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

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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