pub enum FileMode {
Read,
Write,
Append,
Delete,
}Expand description
File access mode for GovernanceAction::FileAccess.
Variants§
Read
Open the file for reading only.
Write
Open the file for writing, truncating any existing content.
Append
Open the file for writing, appending to existing content.
Delete
Delete the file from the filesystem.
Trait Implementations§
impl StructuralPartialEq for FileMode
Auto Trait Implementations§
impl Freeze for FileMode
impl RefUnwindSafe for FileMode
impl Send for FileMode
impl Sync for FileMode
impl Unpin for FileMode
impl UnsafeUnpin for FileMode
impl UnwindSafe for FileMode
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