pub struct CpioDirectoryObject {
node: Arc<dyn VfsNode>,
position: RwLock<u64>,
}
Expand description
Directory object for CPIO directories
Fields§
§node: Arc<dyn VfsNode>
§position: RwLock<u64>
Implementations§
Trait Implementations§
Source§impl FileObject for CpioDirectoryObject
impl FileObject for CpioDirectoryObject
Source§fn seek(&self, _whence: SeekFrom) -> Result<u64, StreamError>
fn seek(&self, _whence: SeekFrom) -> Result<u64, StreamError>
Seek to a position in the file stream
Source§fn metadata(&self) -> Result<FileMetadata, StreamError>
fn metadata(&self) -> Result<FileMetadata, StreamError>
Get metadata about the file
Source§fn truncate(&self, _size: u64) -> Result<(), StreamError>
fn truncate(&self, _size: u64) -> Result<(), StreamError>
Truncate the file to the specified size Read more
Source§impl StreamOps for CpioDirectoryObject
impl StreamOps for CpioDirectoryObject
Source§fn read(&self, buf: &mut [u8]) -> Result<usize, StreamError>
fn read(&self, buf: &mut [u8]) -> Result<usize, StreamError>
Read data from the stream
Source§fn write(&self, _buf: &[u8]) -> Result<usize, StreamError>
fn write(&self, _buf: &[u8]) -> Result<usize, StreamError>
Write data to the stream