[−][src]Struct holochain_cas_implementations::cas::memory::MemoryStorage
Methods
impl MemoryStorage[src]
impl MemoryStoragepub fn new() -> Result<MemoryStorage, HolochainError>[src]
pub fn new() -> Result<MemoryStorage, HolochainError>Trait Implementations
impl Clone for MemoryStorage[src]
impl Clone for MemoryStoragefn clone(&self) -> MemoryStorage[src]
fn clone(&self) -> MemoryStorageReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialEq<MemoryStorage> for MemoryStorage[src]
impl PartialEq<MemoryStorage> for MemoryStoragefn eq(&self, other: &MemoryStorage) -> bool[src]
fn eq(&self, other: &MemoryStorage) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &MemoryStorage) -> bool[src]
fn ne(&self, other: &MemoryStorage) -> boolThis method tests for !=.
impl Debug for MemoryStorage[src]
impl Debug for MemoryStoragefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl ContentAddressableStorage for MemoryStorage[src]
impl ContentAddressableStorage for MemoryStoragefn add(&mut self, content: &AddressableContent) -> Result<(), HolochainError>[src]
fn add(&mut self, content: &AddressableContent) -> Result<(), HolochainError>adds AddressableContent to the ContentAddressableStorage by its Address as Content
fn contains(&self, address: &Address) -> Result<bool, HolochainError>[src]
fn contains(&self, address: &Address) -> Result<bool, HolochainError>true if the Address is in the Store, false otherwise. may be more efficient than retrieve depending on the implementation. Read more
fn fetch<AC: AddressableContent>(
&self,
address: &Address
) -> Result<Option<AC>, HolochainError>[src]
fn fetch<AC: AddressableContent>(
&self,
address: &Address
) -> Result<Option<AC>, HolochainError>returns Some AddressableContent if it is in the Store, else None AddressableContent::from_content() can be used to allow the compiler to infer the type @see the fetch implementation for ExampleCas in the cas module tests Read more
Auto Trait Implementations
impl Send for MemoryStorage
impl Send for MemoryStorageimpl Sync for MemoryStorage
impl Sync for MemoryStorageBlanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, type Owned = T
fn to_owned(&self) -> T[src]
fn to_owned(&self) -> TCreates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)[src]
fn clone_into(&self, target: &mut T)🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
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]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, 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]
fn get_type_id(&self) -> TypeId🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
Gets the TypeId of self. Read more
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]
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
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
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> Same for T[src]
impl<T> Same for Ttype Output = T
Should always be Self
impl<T> ActorArgs for T where
T: Send + Sync + Clone, [src]
impl<T> ActorArgs for T where
T: Send + Sync + Clone,