Struct dav_server::fs::OpenOptions [−][src]
pub struct OpenOptions {
pub read: bool,
pub write: bool,
pub append: bool,
pub truncate: bool,
pub create: bool,
pub create_new: bool,
pub size: Option<u64>,
}Expand description
OpenOptions for open().
Fields
read: boolopen for reading
write: boolopen for writing
append: boolopen in write-append mode
truncate: booltruncate file first when writing
create: boolcreate file if it doesn’t exist
create_new: boolmust create new file, fail if it already exists.
size: Option<u64>write file total size
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for OpenOptions
impl Send for OpenOptions
impl Sync for OpenOptions
impl Unpin for OpenOptions
impl UnwindSafe for OpenOptions
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
