pub struct RemoteStat {
pub mode: u32,
pub size: u64,
pub mtime: u64,
pub dev: u64,
pub ino: u64,
pub nlink: u32,
pub uid: u32,
pub gid: u32,
pub atime: u64,
pub ctime: u64,
}Expand description
File metadata returned by AdbWire::stat.
When the device supports STAT2, all fields are populated from the extended
response. On older devices only mode, size, and mtime are set (the
rest default to zero).
Fields§
§mode: u32File mode (type + permissions), e.g. 0o100644 for a regular file.
size: u64File size in bytes.
mtime: u64Last modification time as seconds since the Unix epoch.
dev: u64Device ID (STAT2 only).
ino: u64Inode number (STAT2 only).
nlink: u32Number of hard links (STAT2 only).
uid: u32Owner user ID (STAT2 only).
gid: u32Owner group ID (STAT2 only).
atime: u64Last access time as seconds since the Unix epoch (STAT2 only).
ctime: u64Status change time as seconds since the Unix epoch (STAT2 only).
Implementations§
Trait Implementations§
Source§impl Clone for RemoteStat
impl Clone for RemoteStat
Source§fn clone(&self) -> RemoteStat
fn clone(&self) -> RemoteStat
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for RemoteStat
impl RefUnwindSafe for RemoteStat
impl Send for RemoteStat
impl Sync for RemoteStat
impl Unpin for RemoteStat
impl UnsafeUnpin for RemoteStat
impl UnwindSafe for RemoteStat
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