[][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]

Auto Trait Implementations

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

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

impl<'repo> Unpin for OdbWriter<'repo>

impl<'repo> UnwindSafe for OdbWriter<'repo>

impl<'repo> RefUnwindSafe for OdbWriter<'repo>

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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