Struct openssh_sftp_protocol::file_attrs::FileAttrsBox
source · [−]pub struct FileAttrsBox(_);
Implementations
sourceimpl FileAttrsBox
impl FileAttrsBox
Methods from Deref<Target = FileAttrs>
pub fn set_size(&mut self, size: u64)
pub fn set_id(&mut self, uid: u32, gid: u32)
pub fn set_permissions(&mut self, permissions: Permissions)
pub fn set_time(&mut self, atime: UnixTimeStamp, mtime: UnixTimeStamp)
pub fn get_size(&self) -> Option<u64>
pub fn get_permissions(&self) -> Option<Permissions>
sourcepub fn get_filetype(&self) -> Option<FileType>
pub fn get_filetype(&self) -> Option<FileType>
filetype is only set by the sftp-server.
sourcepub fn get_time(&self) -> Option<(UnixTimeStamp, UnixTimeStamp)>
pub fn get_time(&self) -> Option<(UnixTimeStamp, UnixTimeStamp)>
Return atime and mtime
Trait Implementations
sourceimpl Clone for FileAttrsBox
impl Clone for FileAttrsBox
sourceimpl Debug for FileAttrsBox
impl Debug for FileAttrsBox
sourceimpl Default for FileAttrsBox
impl Default for FileAttrsBox
sourceimpl Deref for FileAttrsBox
impl Deref for FileAttrsBox
sourceimpl DerefMut for FileAttrsBox
impl DerefMut for FileAttrsBox
sourceimpl<'de> Deserialize<'de> for FileAttrsBox
impl<'de> Deserialize<'de> for FileAttrsBox
sourcefn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Pointer for FileAttrsBox
impl Pointer for FileAttrsBox
sourceimpl Serialize for FileAttrsBox
impl Serialize for FileAttrsBox
Auto Trait Implementations
impl !RefUnwindSafe for FileAttrsBox
impl Send for FileAttrsBox
impl Sync for FileAttrsBox
impl Unpin for FileAttrsBox
impl !UnwindSafe for FileAttrsBox
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more