pub trait CallbackMetadataClient:
Clone
+ Send
+ Sync
+ 'static {
type Ownership: Clone + Send + Sync + 'static;
type Error: Display;
// Required method
fn invoke_metadata_callback(
&self,
ownership: Self::Ownership,
namespace: &str,
payload: Vec<u8>,
timeout: Duration,
) -> Result<(String, Vec<u8>), Self::Error>;
}Required Associated Types§
Required Methods§
fn invoke_metadata_callback( &self, ownership: Self::Ownership, namespace: &str, payload: Vec<u8>, timeout: Duration, ) -> Result<(String, Vec<u8>), Self::Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".