#[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