pub struct FilePermissions {
pub owner_read: bool,
pub owner_write: bool,
pub owner_exec: bool,
pub group_read: bool,
pub group_write: bool,
pub group_exec: bool,
pub other_read: bool,
pub other_write: bool,
pub other_exec: bool,
}
Expand description
Represents permissions associated with a remote file
Fields§
§owner_read: bool
§owner_write: bool
§owner_exec: bool
§group_read: bool
§group_write: bool
§group_exec: bool
§other_read: bool
§other_write: bool
§other_exec: bool
Implementations§
Source§impl FilePermissions
impl FilePermissions
pub fn is_readonly(self) -> bool
Sourcepub fn from_unix_mode(mode: u32) -> Self
pub fn from_unix_mode(mode: u32) -> Self
Create from a unix mode bitset
Sourcepub fn to_unix_mode(self) -> u32
pub fn to_unix_mode(self) -> u32
Convert to a unix mode bitset
Trait Implementations§
Source§impl Clone for FilePermissions
impl Clone for FilePermissions
Source§fn clone(&self) -> FilePermissions
fn clone(&self) -> FilePermissions
Returns a duplicate 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 moreSource§impl Debug for FilePermissions
impl Debug for FilePermissions
Source§impl Hash for FilePermissions
impl Hash for FilePermissions
Source§impl PartialEq for FilePermissions
impl PartialEq for FilePermissions
impl Copy for FilePermissions
impl Eq for FilePermissions
impl StructuralPartialEq for FilePermissions
Auto Trait Implementations§
impl Freeze for FilePermissions
impl RefUnwindSafe for FilePermissions
impl Send for FilePermissions
impl Sync for FilePermissions
impl Unpin for FilePermissions
impl UnwindSafe for FilePermissions
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