Struct openssh_sftp_protocol::open_options::OpenOptions
source · pub struct OpenOptions { /* private fields */ }
Implementations§
source§impl OpenOptions
impl OpenOptions
pub const fn new() -> Self
pub const fn read(self, read: bool) -> Self
pub const fn get_read(self) -> bool
pub const fn write(self, write: bool) -> Self
pub const fn get_write(self) -> bool
pub const fn append(self, append: bool) -> Self
pub const fn get_append(self) -> bool
pub const fn open(self, filename: Cow<'_, Path>) -> OpenFileRequest<'_>
pub const fn create( self, filename: Cow<'_, Path>, flags: CreateFlags, attrs: FileAttrs ) -> OpenFileRequest<'_>
Trait Implementations§
source§impl Clone for OpenOptions
impl Clone for OpenOptions
source§fn clone(&self) -> OpenOptions
fn clone(&self) -> OpenOptions
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 more