Trait fixity::core::storage::StorageWrite [−][src]
pub trait StorageWrite: Sync { #[must_use] fn write<'life0, 'async_trait, A, R>(
&'life0 self,
addr: A,
r: R
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>
where
A: AsRef<Addr> + 'static + Send,
R: AsyncRead + Unpin + Send,
A: 'async_trait,
R: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait; #[must_use] fn write_string<'life0, 'async_trait, A>(
&'life0 self,
addr: A,
s: String
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>
where
A: AsRef<Addr> + 'static + Send,
A: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait, { ... } }
Required methods
#[must_use]fn write<'life0, 'async_trait, A, R>(
&'life0 self,
addr: A,
r: R
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>> where
A: AsRef<Addr> + 'static + Send,
R: AsyncRead + Unpin + Send,
A: 'async_trait,
R: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn write<'life0, 'async_trait, A, R>(&'life0 self,
addr: A,
r: R
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>> where
A: AsRef<Addr> + 'static + Send,
R: AsyncRead + Unpin + Send,
A: 'async_trait,
R: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
Provided methods
#[must_use]fn write_string<'life0, 'async_trait, A>(
&'life0 self,
addr: A,
s: String
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>> where
A: AsRef<Addr> + 'static + Send,
A: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn write_string<'life0, 'async_trait, A>(&'life0 self,
addr: A,
s: String
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>> where
A: AsRef<Addr> + 'static + Send,
A: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
A helper to write the provided String into storage.
Implementations on Foreign Types
impl StorageWrite for ()
[src]
fn write<'life0, 'async_trait, A, R>(
&'life0 self,
__arg1: A,
__arg2: R
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>> where
A: AsRef<Addr> + 'static + Send,
R: AsyncRead + Unpin + Send,
A: 'async_trait,
R: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
__arg1: A,
__arg2: R
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>> where
A: AsRef<Addr> + 'static + Send,
R: AsyncRead + Unpin + Send,
A: 'async_trait,
R: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
Implementors
impl StorageWrite for Fs
[src]
fn write<'life0, 'async_trait, A, R>(
&'life0 self,
addr: A,
r: R
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>> where
A: AsRef<Addr> + 'static + Send,
R: AsyncRead + Unpin + Send,
A: 'async_trait,
R: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
addr: A,
r: R
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>> where
A: AsRef<Addr> + 'static + Send,
R: AsyncRead + Unpin + Send,
A: 'async_trait,
R: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,