Enum nats::jetstream::StorageType
source · [−]#[repr(u8)]
pub enum StorageType {
File,
Memory,
}
Expand description
determines how messages are stored for retention.
Variants
File
Stream data is kept in files. This is the default.
Memory
Stream data is kept only in memory.
Trait Implementations
sourceimpl Clone for StorageType
impl Clone for StorageType
sourcefn clone(&self) -> StorageType
fn clone(&self) -> StorageType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StorageType
impl Debug for StorageType
sourceimpl Default for StorageType
impl Default for StorageType
sourcefn default() -> StorageType
fn default() -> StorageType
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for StorageType
impl<'de> Deserialize<'de> for StorageType
sourcefn 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
sourceimpl PartialEq<StorageType> for StorageType
impl PartialEq<StorageType> for StorageType
sourceimpl Serialize for StorageType
impl Serialize for StorageType
impl Copy for StorageType
impl Eq for StorageType
impl StructuralEq for StorageType
impl StructuralPartialEq for StorageType
Auto Trait Implementations
impl RefUnwindSafe for StorageType
impl Send for StorageType
impl Sync for StorageType
impl Unpin for StorageType
impl UnwindSafe for StorageType
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