pub enum FileState {
File,
Directory,
Link,
Absent,
Touch,
}
Expand description
File states for file management modules.
Used with file-related modules like file
, copy
, template
, etc.
§Examples
use ansible::FileState;
let state = FileState::Directory;
assert_eq!(state.to_string(), "directory");
Variants§
File
Path should be a regular file
Directory
Path should be a directory
Link
Path should be a symbolic link
Absent
Path should not exist
Touch
Path should exist (create if missing)
Trait Implementations§
impl StructuralPartialEq for FileState
Auto Trait Implementations§
impl Freeze for FileState
impl RefUnwindSafe for FileState
impl Send for FileState
impl Sync for FileState
impl Unpin for FileState
impl UnwindSafe for FileState
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