Enum async_nats::jetstream::stream::StorageType
source · #[repr(u8)]pub enum StorageType {
File = 0,
Memory = 1,
}
Expand description
determines how messages are stored for retention.
Variants§
File = 0
Stream data is kept in files. This is the default.
Memory = 1
Stream data is kept only in memory.
Trait Implementations§
source§impl Clone for StorageType
impl Clone for StorageType
source§fn clone(&self) -> StorageType
fn clone(&self) -> StorageType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StorageType
impl Debug for StorageType
source§impl Default for StorageType
impl Default for StorageType
source§fn default() -> StorageType
fn default() -> StorageType
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for StorageType
impl<'de> Deserialize<'de> for StorageType
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for StorageType
impl PartialEq for StorageType
source§impl Serialize for StorageType
impl Serialize for StorageType
impl Copy for StorageType
impl Eq for StorageType
impl StructuralPartialEq for StorageType
Auto Trait Implementations§
impl Freeze for StorageType
impl RefUnwindSafe for StorageType
impl Send for StorageType
impl Sync for StorageType
impl Unpin for StorageType
impl UnwindSafe for StorageType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)