[−][src]Struct sunrise_fs::ipc::File
Represent a file in the IPC.
Fields
inner: Arc<Mutex<Box<dyn FileOperations>>>
The detail implementation of this ipc interface.
Implementations
impl File
[src]
pub fn new(inner: Box<dyn FileOperations>) -> Self
[src]
Create a new IFile instance from it's detail.
Trait Implementations
impl Clone for File
[src]
impl Debug for File
[src]
impl IFile for File
[src]
fn read(
&mut self,
_manager: WorkQueue<'static>,
_unknown_0: u32,
offset: u64,
length: u64,
out_buffer: &mut [u8]
) -> Result<u64, Error>
[src]
&mut self,
_manager: WorkQueue<'static>,
_unknown_0: u32,
offset: u64,
length: u64,
out_buffer: &mut [u8]
) -> Result<u64, Error>
fn write(
&mut self,
_manager: WorkQueue<'static>,
_unknown_0: u32,
offset: u64,
length: u64,
in_buffer: &[u8]
) -> Result<(), Error>
[src]
&mut self,
_manager: WorkQueue<'static>,
_unknown_0: u32,
offset: u64,
length: u64,
in_buffer: &[u8]
) -> Result<(), Error>
fn flush(&mut self, _manager: WorkQueue<'static>) -> Result<(), Error>
[src]
fn set_size(
&mut self,
_manager: WorkQueue<'static>,
new_size: u64
) -> Result<(), Error>
[src]
&mut self,
_manager: WorkQueue<'static>,
new_size: u64
) -> Result<(), Error>
fn get_size(&mut self, _manager: WorkQueue<'static>) -> Result<u64, Error>
[src]
fn dispatch(
&'a mut self,
manager: WorkQueue<'static>,
cmdid: u32,
buf: &'a mut [u8]
) -> FutureObj<'a, Result<(), Error>>
[src]
&'a mut self,
manager: WorkQueue<'static>,
cmdid: u32,
buf: &'a mut [u8]
) -> FutureObj<'a, Result<(), Error>>
Auto Trait Implementations
impl !RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl !UnwindSafe for File
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SizedIPCBuffer for T
[src]
fn size(&self) -> usize
[src]
fn is_cool(addr: usize, size: usize) -> bool
[src]
unsafe fn from_raw_parts<'a>(addr: usize, _size: usize) -> &'a T
[src]
unsafe fn from_raw_parts_mut<'a>(addr: usize, _size: usize) -> &'a mut T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,