Struct distant_protocol::UnixMetadata
source · pub struct UnixMetadata {
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 unix-specific metadata about some path on a remote machine.
Fields§
§owner_read: bool
Represents whether or not owner can read from the file.
owner_write: bool
Represents whether or not owner can write to the file.
owner_exec: bool
Represents whether or not owner can execute the file.
group_read: bool
Represents whether or not associated group can read from the file.
group_write: bool
Represents whether or not associated group can write to the file.
group_exec: bool
Represents whether or not associated group can execute the file.
other_read: bool
Represents whether or not other can read from the file.
other_write: bool
Represents whether or not other can write to the file.
other_exec: bool
Represents whether or not other can execute the file.
Implementations§
source§impl UnixMetadata
impl UnixMetadata
pub fn is_readonly(self) -> bool
Trait Implementations§
source§impl Clone for UnixMetadata
impl Clone for UnixMetadata
source§fn clone(&self) -> UnixMetadata
fn clone(&self) -> UnixMetadata
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 moresource§impl Debug for UnixMetadata
impl Debug for UnixMetadata
source§impl<'de> Deserialize<'de> for UnixMetadata
impl<'de> Deserialize<'de> for UnixMetadata
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<UnixMetadata> for u32
impl From<UnixMetadata> for u32
source§fn from(metadata: UnixMetadata) -> Self
fn from(metadata: UnixMetadata) -> Self
Convert to a unix mode bitset.
source§impl From<u32> for UnixMetadata
impl From<u32> for UnixMetadata
source§impl PartialEq<UnixMetadata> for UnixMetadata
impl PartialEq<UnixMetadata> for UnixMetadata
source§fn eq(&self, other: &UnixMetadata) -> bool
fn eq(&self, other: &UnixMetadata) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for UnixMetadata
impl Serialize for UnixMetadata
impl Copy for UnixMetadata
impl Eq for UnixMetadata
impl StructuralEq for UnixMetadata
impl StructuralPartialEq for UnixMetadata
Auto Trait Implementations§
impl RefUnwindSafe for UnixMetadata
impl Send for UnixMetadata
impl Sync for UnixMetadata
impl Unpin for UnixMetadata
impl UnwindSafe for UnixMetadata
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