pub enum StorageMode {
Production,
Development(u16),
Custom(PathBuf),
Test(Option<Arc<TempDir>>),
}
Expand description
An enum to define the operating mode of the Aleo node.
Variants§
Production
The production mode is used for running a node on the Aleo mainnet.
Development(u16)
The development mode is used for running a node on a local network.
Custom(PathBuf)
The custom mode is used for running a node on custom configurations.
Test(Option<Arc<TempDir>>)
Test-only ephemeral storage which self-destructs afterwards.
Implementations§
Trait Implementations§
Source§impl Clone for StorageMode
impl Clone for StorageMode
Source§fn clone(&self) -> StorageMode
fn clone(&self) -> StorageMode
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StorageMode
impl Debug for StorageMode
Source§impl From<PathBuf> for StorageMode
impl From<PathBuf> for StorageMode
Source§impl From<u16> for StorageMode
impl From<u16> for StorageMode
Source§impl PartialEq for StorageMode
impl PartialEq for StorageMode
impl Eq for StorageMode
Auto Trait Implementations§
impl Freeze for StorageMode
impl RefUnwindSafe for StorageMode
impl Send for StorageMode
impl Sync for StorageMode
impl Unpin for StorageMode
impl UnwindSafe for StorageMode
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