pub struct OSInode {
readable: bool,
writable: bool,
inner: UPSafeCell<OSInodeInner>,
}
Expand description
A wrapper around a filesystem inode to implement File trait atop
Fields§
§readable: bool
§writable: bool
§inner: UPSafeCell<OSInodeInner>
Implementations§
source§impl OSInode
impl OSInode
sourcepub fn new(
readable: bool,
writable: bool,
inode: Arc<Inode<RawExclusiveLock, BLOCK_CACHE_SIZE, RawExclusiveLock, RawExclusiveLock>>
) -> Self
pub fn new( readable: bool, writable: bool, inode: Arc<Inode<RawExclusiveLock, BLOCK_CACHE_SIZE, RawExclusiveLock, RawExclusiveLock>> ) -> Self
Construct an OS inode from a inode
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for OSInode
impl Send for OSInode
impl Sync for OSInode
impl Unpin for OSInode
impl !UnwindSafe for OSInode
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