[][src]Trait git_odb::Write

pub trait Write {
    type Error: Error + From<Error>;
    fn write_stream(
        &self,
        kind: Kind,
        size: u64,
        from: impl Read,
        hash: HashKind
    ) -> Result<Id, Self::Error>; fn write(&self, object: &Object, hash: HashKind) -> Result<Id, Self::Error> { ... }
fn write_buf(
        &self,
        object: Kind,
        from: &[u8],
        hash: HashKind
    ) -> Result<Id, Self::Error> { ... } }

Associated Types

Loading content...

Required methods

fn write_stream(
    &self,
    kind: Kind,
    size: u64,
    from: impl Read,
    hash: HashKind
) -> Result<Id, Self::Error>

Loading content...

Provided methods

fn write(&self, object: &Object, hash: HashKind) -> Result<Id, Self::Error>

fn write_buf(
    &self,
    object: Kind,
    from: &[u8],
    hash: HashKind
) -> Result<Id, Self::Error>

Loading content...

Implementors

impl Write for Db[src]

type Error = Error

impl Write for Sink[src]

type Error = Error

Loading content...