Eventual

Trait Eventual 

Source
pub trait Eventual: Client {
    // Provided methods
    fn invoke_delete(
        &self,
        bucket: &str,
        key: &str,
    ) -> impl Future<Output = Result<(Result<(), String>, Self::Transmission)>> + Send { ... }
    fn serve_delete(
        &self,
    ) -> impl Future<Output = Result<Self::InvocationStream<Self::Context, (String, String), <Self::Acceptor as Acceptor>::Transmitter>>> + Send { ... }
    fn invoke_exists(
        &self,
        bucket: &str,
        key: &str,
    ) -> impl Future<Output = Result<(Result<bool, String>, Self::Transmission)>> + Send { ... }
    fn serve_exists(
        &self,
    ) -> impl Future<Output = Result<Self::InvocationStream<Self::Context, (String, String), <Self::Acceptor as Acceptor>::Transmitter>>> + Send { ... }
    fn invoke_get(
        &self,
        bucket: &str,
        key: &str,
    ) -> impl Future<Output = Result<(Result<Option<IncomingInputStream>, String>, Self::Transmission)>> + Send { ... }
    fn serve_get(
        &self,
    ) -> impl Future<Output = Result<Self::InvocationStream<Self::Context, (String, String), <Self::Acceptor as Acceptor>::Transmitter>>> + Send { ... }
    fn invoke_set(
        &self,
        bucket: &str,
        key: &str,
        value: impl Stream<Item = Bytes> + Send + 'static,
    ) -> impl Future<Output = Result<(Result<(), String>, Self::Transmission)>> + Send { ... }
    fn serve_set(
        &self,
    ) -> impl Future<Output = Result<Self::InvocationStream<Self::Context, (String, String, IncomingInputStream), <Self::Acceptor as Acceptor>::Transmitter>>> + Send { ... }
}

Provided Methods§

Source

fn invoke_delete( &self, bucket: &str, key: &str, ) -> impl Future<Output = Result<(Result<(), String>, Self::Transmission)>> + Send

Source

fn serve_delete( &self, ) -> impl Future<Output = Result<Self::InvocationStream<Self::Context, (String, String), <Self::Acceptor as Acceptor>::Transmitter>>> + Send

Source

fn invoke_exists( &self, bucket: &str, key: &str, ) -> impl Future<Output = Result<(Result<bool, String>, Self::Transmission)>> + Send

Source

fn serve_exists( &self, ) -> impl Future<Output = Result<Self::InvocationStream<Self::Context, (String, String), <Self::Acceptor as Acceptor>::Transmitter>>> + Send

Source

fn invoke_get( &self, bucket: &str, key: &str, ) -> impl Future<Output = Result<(Result<Option<IncomingInputStream>, String>, Self::Transmission)>> + Send

Source

fn serve_get( &self, ) -> impl Future<Output = Result<Self::InvocationStream<Self::Context, (String, String), <Self::Acceptor as Acceptor>::Transmitter>>> + Send

Source

fn invoke_set( &self, bucket: &str, key: &str, value: impl Stream<Item = Bytes> + Send + 'static, ) -> impl Future<Output = Result<(Result<(), String>, Self::Transmission)>> + Send

Source

fn serve_set( &self, ) -> impl Future<Output = Result<Self::InvocationStream<Self::Context, (String, String, IncomingInputStream), <Self::Acceptor as Acceptor>::Transmitter>>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: Client> Eventual for T