pub struct Config {
pub roots: Vec<RootSpec>,
pub writable: bool,
pub hidden: bool,
pub no_ignore: bool,
pub max_file_bytes: u64,
pub max_results: usize,
pub max_chars: usize,
}Expand description
What the operator configured at start-up.
Fields§
§roots: Vec<RootSpec>The folders the server is confined to (at least one).
writable: boolAllow write, edit and move. Off by default.
Include hidden files and directories in list and search.
no_ignore: boolIgnore .gitignore, .ignore and git exclude files in list and search.
max_file_bytes: u64Largest file read, search, stat and edit will open, and largest write.
max_results: usizeMost entries list and matches search return.
max_chars: usizeMost characters of text one read returns.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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