Struct fadroma::prelude::cosmwasm_storage::ReadonlySingleton   
source · [−]pub struct ReadonlySingleton<'a, S, T> where
    S: ReadonlyStorage,
    T: Serialize + DeserializeOwned,  { /* private fields */ }Expand description
ReadonlySingleton only requires a ReadonlyStorage and exposes only the methods of Singleton that don’t modify state.
Implementations
sourceimpl<'a, S, T> ReadonlySingleton<'a, S, T> where
    S: ReadonlyStorage,
    T: Serialize + DeserializeOwned, 
 
impl<'a, S, T> ReadonlySingleton<'a, S, T> where
    S: ReadonlyStorage,
    T: Serialize + DeserializeOwned, 
Auto Trait Implementations
impl<'a, S, T> RefUnwindSafe for ReadonlySingleton<'a, S, T> where
    S: RefUnwindSafe,
    T: RefUnwindSafe, 
impl<'a, S, T> Send for ReadonlySingleton<'a, S, T> where
    S: Sync,
    T: Sync, 
impl<'a, S, T> Sync for ReadonlySingleton<'a, S, T> where
    S: Sync,
    T: Sync, 
impl<'a, S, T> Unpin for ReadonlySingleton<'a, S, T>
impl<'a, S, T> UnwindSafe for ReadonlySingleton<'a, S, T> where
    S: RefUnwindSafe,
    T: RefUnwindSafe, 
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more