pub trait IStorageAccessor: IObject {
fn get_size(&mut self) -> Result<usize>;
fn write(
&mut self,
offset: usize,
buf: InAutoSelectBuffer<u8>
) -> Result<()>;
fn read(
&mut self,
offset: usize,
buf: OutAutoSelectBuffer<u8>
) -> Result<()>;
fn sf_server_impl_get_size(
&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_read(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()> { ... }
fn get_sf_command_metadata_table(&self) -> CommandMetadataTable { ... }
}