Struct git2::OdbWriter[][src]

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

A structure to represent a git ODB wstream


impl<'repo> OdbWriter<'repo>

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>

Executes the destructor for this type. Read more

impl<'repo> Write for OdbWriter<'repo>

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

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

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

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

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>