pub trait ImportProxy<T: ?Sized + Service>: Sized {
// Required method
fn import_proxy(port: Weak<dyn Port>, handle: HandleToExchange) -> Self;
}Expand description
Conversion into a smart pointer of a service object, from HandleToExchange.
By attaching [remote_trait_object::service] on a trait, smart pointers of the trait will automatically implement this.
This is required if you want to create a proxy object from HandleToExchange or ServiceToImport.
Required Methods§
fn import_proxy(port: Weak<dyn Port>, handle: HandleToExchange) -> Self
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.