Struct git2::OdbWriter [] [src]

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

A structure to represent a git ODB wstream

Methods

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

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

[src]

Executes the destructor for this type. Read more

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

[src]

Write a buffer into this object, returning how many bytes were written. Read more

[src]

Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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