pub struct XilaFileSystemDirectory { /* private fields */ }Expand description
Opaque shadow type generated for FFI pointer boundaries.
Implementations§
Source§impl XilaFileSystemDirectory
impl XilaFileSystemDirectory
Sourcepub const fn from_real(real: &mut SynchronousDirectory) -> *mut Self
pub const fn from_real(real: &mut SynchronousDirectory) -> *mut Self
Converts a real allocated instance into an opaque raw pointer handle.
Note: This moves the real object onto the heap via Box to ensure its memory remains valid after this function returns.
Sourcepub unsafe fn into_real(ptr: *mut Self) -> *mut SynchronousDirectory
pub unsafe fn into_real(ptr: *mut Self) -> *mut SynchronousDirectory
Consumes the opaque raw pointer handle and returns the original real type, reclaiming ownership and freeing the underlying heap allocation.
§Safety
The pointer must be non-null and must have been created by from_real.
Sourcepub unsafe fn as_real<'a>(ptr: *const Self) -> &'a SynchronousDirectory ⓘ
pub unsafe fn as_real<'a>(ptr: *const Self) -> &'a SynchronousDirectory ⓘ
Temporarily borrows the real type immutably from the opaque pointer.
§Safety
The pointer must be valid and dereferenceable for the duration of life ’a.
Sourcepub unsafe fn as_real_mut<'a>(ptr: *mut Self) -> &'a mut SynchronousDirectory ⓘ
pub unsafe fn as_real_mut<'a>(ptr: *mut Self) -> &'a mut SynchronousDirectory ⓘ
Temporarily borrows the real type mutably from the opaque pointer.
§Safety
The pointer must be valid, dereferenceable, and unaliased for the duration of life ’a.
Methods from Deref<Target = SynchronousDirectory>§
pub fn read(&mut self) -> Result<Option<Entry>, Error>
pub fn get_statistics(&mut self) -> Result<Statistics, Error>
pub fn get_position(&mut self) -> Result<u64, Error>
pub fn set_position(&mut self, position: u64) -> Result<(), Error>
pub fn rewind(&mut self) -> Result<(), Error>
pub fn get_access(&self) -> Result<AccessFlags, Error>
pub fn get_state(&self) -> Result<StateFlags, Error>
pub fn close_internal( &mut self, virtual_file_system: &VirtualFileSystem, ) -> Result<(), Error>
Trait Implementations§
Source§impl AsMut<SynchronousDirectory> for XilaFileSystemDirectory
impl AsMut<SynchronousDirectory> for XilaFileSystemDirectory
Source§fn as_mut(&mut self) -> &mut SynchronousDirectory ⓘ
fn as_mut(&mut self) -> &mut SynchronousDirectory ⓘ
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<SynchronousDirectory> for XilaFileSystemDirectory
impl AsRef<SynchronousDirectory> for XilaFileSystemDirectory
Source§fn as_ref(&self) -> &SynchronousDirectory ⓘ
fn as_ref(&self) -> &SynchronousDirectory ⓘ
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Deref for XilaFileSystemDirectory
impl Deref for XilaFileSystemDirectory
Auto Trait Implementations§
impl Freeze for XilaFileSystemDirectory
impl RefUnwindSafe for XilaFileSystemDirectory
impl Send for XilaFileSystemDirectory
impl Sync for XilaFileSystemDirectory
impl Unpin for XilaFileSystemDirectory
impl UnsafeUnpin for XilaFileSystemDirectory
impl UnwindSafe for XilaFileSystemDirectory
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