pub struct SetStat {
pub path: Path,
pub attrs: Attrs,
}Expand description
Request to change the attributes (metadata) of a file or directory.
This request is used for operations such as changing the ownership, permissions or access times, as well as for truncating a file.
An error will be returned if the specified file system object does not exist or the user does not have sufficient rights to modify the specified attributes.
It is answered with Status.
internal: SSH_FXP_SETSTAT
Fields§
§path: PathPath of the file or directory to change the attributes
attrs: AttrsNew attributes to apply
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SetStat
impl<'de> Deserialize<'de> for SetStat
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 SftpRequest for SetStat
impl SftpRequest for SetStat
impl Eq for SetStat
impl StructuralPartialEq for SetStat
Auto Trait Implementations§
impl Freeze for SetStat
impl RefUnwindSafe for SetStat
impl Send for SetStat
impl Sync for SetStat
impl Unpin for SetStat
impl UnwindSafe for SetStat
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