pub enum StorageAccess {
ReadOnly,
ReadWrite,
}Expand description
Authority carried by a preopened storage reference.
Variants§
ReadOnly
Reads are admitted and mutations fail closed.
ReadWrite
Reads and admitted mutations are allowed.
Trait Implementations§
Source§impl Clone for StorageAccess
impl Clone for StorageAccess
Source§fn clone(&self) -> StorageAccess
fn clone(&self) -> StorageAccess
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StorageAccess
Source§impl Debug for StorageAccess
impl Debug for StorageAccess
impl Eq for StorageAccess
Source§impl PartialEq for StorageAccess
impl PartialEq for StorageAccess
impl StructuralPartialEq for StorageAccess
Auto Trait Implementations§
impl Freeze for StorageAccess
impl RefUnwindSafe for StorageAccess
impl Send for StorageAccess
impl Sync for StorageAccess
impl Unpin for StorageAccess
impl UnsafeUnpin for StorageAccess
impl UnwindSafe for StorageAccess
Blanket Implementations§
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