[][src]Struct buildchain::Store

pub struct Store { /* fields omitted */ }

Methods

impl Store
[src]

pub fn new<P: AsRef<Path>>(basedir: P) -> Store
[src]

pub fn remove_tmp_dir(&self) -> Result<(), String>
[src]

pub fn temp_path(&self) -> PathBuf
[src]

pub fn object_path(&self, key: &[u8; 48]) -> PathBuf
[src]

pub fn block_path(&self, sig: &[u8; 64]) -> PathBuf
[src]

pub fn import_object<P: AsRef<Path>>(&self, src: P) -> Result<[u8; 48], String>
[src]

pub fn import_artifacts(&self, time: u64) -> Result<Manifest, String>
[src]

pub fn write_object(&self, object: &[u8]) -> Result<[u8; 48], String>
[src]

pub fn write_manifest(&self, object: &[u8]) -> Result<[u8; 48], String>
[src]

pub fn open_object(&self, key: &[u8; 48]) -> Result<File>
[src]

pub fn write_block(&self, block: &[u8; 400]) -> Result<[u8; 64], String>
[src]

pub fn write_tail(
    &self,
    project: &str,
    branch: &str,
    block: &[u8; 400]
) -> Result<[u8; 64], String>
[src]

pub fn open_block(&self, sig: &[u8; 64]) -> Result<File>
[src]

Auto Trait Implementations

impl Send for Store

impl Sync for Store

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]

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self