#[repr(C)]pub enum FileStorage_Mode {
READ = 0,
WRITE = 1,
APPEND = 2,
MEMORY = 4,
FORMAT_MASK = 56,
FORMAT_XML = 8,
FORMAT_YAML = 16,
FORMAT_JSON = 24,
BASE64 = 64,
WRITE_BASE64 = 65,
}
Expand description
file storage mode
Variants§
READ = 0
value, open the file for reading
WRITE = 1
value, open the file for writing
APPEND = 2
value, open the file for appending
MEMORY = 4
< flag, read data from source or write data to the internal buffer (which is returned by FileStorage::release)
FORMAT_MASK = 56
mask for format flags
FORMAT_XML = 8
flag, XML format
FORMAT_YAML = 16
flag, YAML format
FORMAT_JSON = 24
flag, JSON format
BASE64 = 64
flag, write rawdata in Base64 by default. (consider using WRITE_BASE64)
WRITE_BASE64 = 65
flag, enable both WRITE and BASE64
Trait Implementations§
Source§impl Clone for FileStorage_Mode
impl Clone for FileStorage_Mode
Source§fn clone(&self) -> FileStorage_Mode
fn clone(&self) -> FileStorage_Mode
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 FileStorage_Mode
impl Debug for FileStorage_Mode
Source§impl From<FileStorage_Mode> for i32
impl From<FileStorage_Mode> for i32
Source§fn from(v: FileStorage_Mode) -> Self
fn from(v: FileStorage_Mode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FileStorage_Mode
impl PartialEq for FileStorage_Mode
Source§impl TryFrom<i32> for FileStorage_Mode
impl TryFrom<i32> for FileStorage_Mode
impl Copy for FileStorage_Mode
impl Eq for FileStorage_Mode
impl StructuralPartialEq for FileStorage_Mode
Auto Trait Implementations§
impl Freeze for FileStorage_Mode
impl RefUnwindSafe for FileStorage_Mode
impl Send for FileStorage_Mode
impl Sync for FileStorage_Mode
impl Unpin for FileStorage_Mode
impl UnwindSafe for FileStorage_Mode
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