pub trait ServantActivator: Send + Sync {
// Required method
fn incarnate(
&self,
id: &[u8],
adapter: &Poa,
) -> Result<Arc<dyn Servant>, ServantManagerError>;
// Provided method
fn etherealize(
&self,
id: &[u8],
adapter: &Poa,
servant: Arc<dyn Servant>,
cleanup_in_progress: bool,
remaining_activations: bool,
) { ... }
}Expand description
PortableServer::ServantActivator: the servant manager of a POA with
the RETAIN and USE_SERVANT_MANAGER policies. It is asked for a servant
the first time an object that is not in the active object map gets a
request, and the servant stays in the map until the object is
deactivated.
Both methods are called on the ORB’s upcall threads.
Required Methods§
Provided Methods§
Sourcefn etherealize(
&self,
id: &[u8],
adapter: &Poa,
servant: Arc<dyn Servant>,
cleanup_in_progress: bool,
remaining_activations: bool,
)
fn etherealize( &self, id: &[u8], adapter: &Poa, servant: Arc<dyn Servant>, cleanup_in_progress: bool, remaining_activations: bool, )
The object id was deactivated, and its last request finished.
cleanup_in_progress is true when the POA is destroyed or its
manager deactivated; remaining_activations whether servant is
still active under other ObjectIds.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".