[−][src]Struct buildchain::Store
Methods
impl Store
[src]
impl Store
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( | [src] |
pub fn open_block(&self, sig: &[u8; 64]) -> Result<File> | [src] |
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T> Erased for T
impl<T> Erased for T
impl<T> Same for T
impl<T> Same for T
type Output = T
Should always be Self