Struct openssh_sftp_protocol::file_attrs::FileAttrs
source · pub struct FileAttrs { /* private fields */ }
Implementations§
source§impl FileAttrs
impl FileAttrs
pub const fn new() -> Self
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§
source§impl<'de> Deserialize<'de> for FileAttrs
impl<'de> Deserialize<'de> for FileAttrs
source§fn 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