pub struct FileIOClient { /* private fields */ }Implementations§
Source§impl FileIOClient
impl FileIOClient
pub fn new(wapm: &str) -> Self
pub fn new_with_instance(wapm: &str, instance: &str, access_token: &str) -> Self
pub fn attach(handle: CallHandle) -> Self
pub fn wait(self) -> Result<(), BusError>
pub fn try_wait(&mut self) -> Result<Option<()>, BusError>
pub async fn seek(&self, from: SeekFrom) -> Result<FsResult<u64>, BusError>
pub async fn flush(&self) -> Result<FsResult<()>, BusError>
pub async fn write(&self, data: Vec<u8>) -> Result<FsResult<u64>, BusError>
pub async fn read(&self, len: u64) -> Result<FsResult<Vec<u8>>, BusError>
pub fn blocking_seek(&self, from: SeekFrom) -> Result<FsResult<u64>, BusError>
pub fn blocking_flush(&self) -> Result<FsResult<()>, BusError>
pub fn blocking_write(&self, data: Vec<u8>) -> Result<FsResult<u64>, BusError>
pub fn blocking_read(&self, len: u64) -> Result<FsResult<Vec<u8>>, BusError>
Trait Implementations§
Source§impl Clone for FileIOClient
impl Clone for FileIOClient
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileIOClient
impl Debug for FileIOClient
Source§impl FileIO for FileIOClient
impl FileIO for FileIOClient
fn seek<'life0, 'async_trait>(
&'life0 self,
from: SeekFrom,
) -> Pin<Box<dyn Future<Output = Result<FsResult<u64>, BusError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn blocking_seek(&self, from: SeekFrom) -> Result<FsResult<u64>, BusError>
fn flush<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<FsResult<()>, BusError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn blocking_flush(&self) -> Result<FsResult<()>, BusError>
fn write<'life0, 'async_trait>(
&'life0 self,
data: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<FsResult<u64>, BusError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn blocking_write(&self, data: Vec<u8>) -> Result<FsResult<u64>, BusError>
fn read<'life0, 'async_trait>(
&'life0 self,
len: u64,
) -> Pin<Box<dyn Future<Output = Result<FsResult<Vec<u8>>, BusError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn blocking_read(&self, len: u64) -> Result<FsResult<Vec<u8>>, BusError>
fn as_client(&self) -> Option<FileIOClient>
Source§impl Future for FileIOClient
impl Future for FileIOClient
Auto Trait Implementations§
impl Freeze for FileIOClient
impl !RefUnwindSafe for FileIOClient
impl Send for FileIOClient
impl Sync for FileIOClient
impl Unpin for FileIOClient
impl !UnwindSafe for FileIOClient
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more