pub struct PoaManager { /* private fields */ }Expand description
PortableServer::POAManager: switches the processing of requests for
the POAs it manages. A manager starts in the holding state.
A cheap handle; clones manage the same POAs.
Implementations§
Source§impl PoaManager
impl PoaManager
Sourcepub fn state(&self) -> PoaManagerState
pub fn state(&self) -> PoaManagerState
The current state.
Sourcepub fn activate(&self) -> Result<(), PoaError>
pub fn activate(&self) -> Result<(), PoaError>
Starts processing requests, including those held so far. Fails
with AdapterInactive after deactivate.
Sourcepub fn hold_requests(&self, wait_for_completion: bool) -> Result<(), PoaError>
pub fn hold_requests(&self, wait_for_completion: bool) -> Result<(), PoaError>
Queues new requests until the manager is activated again. With
wait_for_completion, returns once the requests in progress have
finished (BAD_INV_ORDER when called from a servant).
Sourcepub fn discard_requests(
&self,
wait_for_completion: bool,
) -> Result<(), PoaError>
pub fn discard_requests( &self, wait_for_completion: bool, ) -> Result<(), PoaError>
Refuses new requests with TRANSIENT, and the held ones too.
Sourcepub fn deactivate(
&self,
etherealize: bool,
wait_for_completion: bool,
) -> Result<(), PoaError>
pub fn deactivate( &self, etherealize: bool, wait_for_completion: bool, ) -> Result<(), PoaError>
Refuses new requests with OBJ_ADAPTER for good, and the held ones
too. With etherealize, the objects of the POAs it manages that
have a ServantActivator are deactivated and etherealized once
their requests have finished (before this returns with
wait_for_completion).