pub trait ServantLocator: Send + Sync {
// Required method
fn preinvoke(
&self,
id: &[u8],
adapter: &Poa,
operation: &str,
) -> Result<(Arc<dyn Servant>, Cookie), ServantManagerError>;
// Provided method
fn postinvoke(
&self,
id: &[u8],
adapter: &Poa,
operation: &str,
cookie: Cookie,
servant: Arc<dyn Servant>,
) { ... }
}Expand description
PortableServer::ServantLocator: the servant manager of a POA with the
NON_RETAIN and USE_SERVANT_MANAGER policies, asked for a servant for
every request.
Both methods are called on the thread that runs the request.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".