pub struct File { /* private fields */ }
Implementations
Trait Implementations
sourceimpl IFile for File
impl IFile for File
fn read(
&mut self,
option: FileReadOption,
offset: usize,
size: usize,
buf: OutNonSecureMapAliasBuffer<u8>
) -> Result<usize>
fn write(
&mut self,
option: FileWriteOption,
offset: usize,
size: usize,
buf: InNonSecureMapAliasBuffer<u8>
) -> Result<()>
fn flush(&mut self) -> Result<()>
fn set_size(&mut self, size: usize) -> Result<()>
fn get_size(&mut self) -> Result<usize>
fn operate_range(
&mut self,
operation_id: OperationId,
offset: usize,
size: usize
) -> Result<FileQueryRangeInfo>
fn operate_range_with_buffer(
&mut self,
operation_id: OperationId,
offset: usize,
size: usize,
in_buf: InNonSecureMapAliasBuffer<u8>,
out_buf: OutNonSecureMapAliasBuffer<u8>
) -> Result<()>
fn sf_server_impl_read(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()>
fn sf_server_impl_write(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()>
fn sf_server_impl_flush(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()>
fn sf_server_impl_set_size(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()>
fn sf_server_impl_get_size(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()>
fn sf_server_impl_operate_range(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()>
fn sf_server_impl_operate_range_with_buffer(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()>
fn get_sf_command_metadata_table(&self) -> CommandMetadataTable
sourceimpl IObject for File
impl IObject for File
fn get_command_metadata_table(&self) -> CommandMetadataTable
fn call_self_server_command(
&mut self,
command_fn: CommandFn,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()>
impl ISessionObject for File
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> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more