Struct distant_core::data::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
sourceimpl UnixMetadata
impl UnixMetadata
pub fn is_readonly(self) -> bool
Trait Implementations
sourceimpl Clone for UnixMetadata
impl Clone for UnixMetadata
sourcefn clone(&self) -> UnixMetadata
fn clone(&self) -> UnixMetadata
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UnixMetadata
impl Debug for UnixMetadata
sourceimpl<'de> Deserialize<'de> for UnixMetadata
impl<'de> Deserialize<'de> for UnixMetadata
sourcefn 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
sourceimpl From<UnixMetadata> for u32
impl From<UnixMetadata> for u32
sourcefn from(metadata: UnixMetadata) -> Self
fn from(metadata: UnixMetadata) -> Self
Convert to a unix mode bitset
sourceimpl PartialEq<UnixMetadata> for UnixMetadata
impl PartialEq<UnixMetadata> for UnixMetadata
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &UnixMetadata) -> bool
fn ne(&self, other: &UnixMetadata) -> bool
This method tests for !=
.
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more