Enum rust_ipfs::StoragePath
source · pub enum StoragePath {
Disk(PathBuf),
Memory,
Custom {
blockstore: Option<Box<dyn BlockStore>>,
datastore: Option<Box<dyn DataStore>>,
lock: Option<Box<dyn Lock>>,
},
}
Variants§
Trait Implementations§
source§impl Debug for StoragePath
impl Debug for StoragePath
source§impl Default for StoragePath
impl Default for StoragePath
source§fn default() -> StoragePath
fn default() -> StoragePath
Returns the “default value” for a type. Read more
source§impl PartialEq for StoragePath
impl PartialEq for StoragePath
impl Eq for StoragePath
Auto Trait Implementations§
impl !RefUnwindSafe for StoragePath
impl Send for StoragePath
impl Sync for StoragePath
impl Unpin for StoragePath
impl !UnwindSafe for StoragePath
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.