pub struct StatResponse { /* private fields */ }Expand description
Provider metadata response bound to the path it describes.
§Examples
use qubit_fs::metadata::{FileKind, FileMetadata};
use qubit_fs::path::Path;
use qubit_fs::spi::StatResponse;
let response = StatResponse::new(
Path::parse("/object")?,
FileMetadata::new(FileKind::File),
);
assert_eq!("/object", response.path().as_str());Implementations§
Source§impl StatResponse
impl StatResponse
Sourcepub fn new(path: Path, metadata: FileMetadata) -> Self
pub fn new(path: Path, metadata: FileMetadata) -> Self
Sourcepub const fn metadata(&self) -> &FileMetadata
pub const fn metadata(&self) -> &FileMetadata
Auto Trait Implementations§
impl Freeze for StatResponse
impl RefUnwindSafe for StatResponse
impl Send for StatResponse
impl Sync for StatResponse
impl Unpin for StatResponse
impl UnsafeUnpin for StatResponse
impl UnwindSafe for StatResponse
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