[−][src]Struct buildchain::Store
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]
&self,
project: &str,
branch: &str,
block: &[u8; 400]
) -> Result<[u8; 64], String>
pub fn open_block(&self, sig: &[u8; 64]) -> Result<File>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
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]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T> Same for T
type Output = T
Should always be Self