pub enum PolicyValue {
Poa(Policy),
RelativeRoundtripTimeout(u64),
SyncScope(i16),
}Expand description
A policy that Orb::create_policy makes: a POA policy, or a client
side policy that can override the defaults of a reference, a thread or
the ORB.
Variants§
Poa(Policy)
One of the seven POA policies, for create_POA.
RelativeRoundtripTimeout(u64)
Messaging::RelativeRoundtripTimeoutPolicy: how long a call may
take, as a TimeBase::TimeT (units of 100 nanoseconds).
SyncScope(i16)
Messaging::SyncScopePolicy: how far a oneway request goes before
the call returns, one of the Messaging::SyncScope values of
pi::sync_scope (SYNC_NONE to
SYNC_WITH_TARGET).
Implementations§
Source§impl PolicyValue
impl PolicyValue
Sourcepub fn policy_type(&self) -> PolicyType
pub fn policy_type(&self) -> PolicyType
The policy type (policy_type).
Sourcepub fn raw_value(&self) -> u64
pub fn raw_value(&self) -> u64
The value as a number: the enumerator of a POA policy, the
relative_expiry of a timeout, the synchronization of a
SyncScopePolicy. The bindings pass policies as this
pair; from_raw is the inverse.
Sourcepub fn from_raw(policy_type: PolicyType, value: u64) -> Option<PolicyValue>
pub fn from_raw(policy_type: PolicyType, value: u64) -> Option<PolicyValue>
The policy of type policy_type with the value value (see
raw_value), or None if rustorb does
not know the type or the value.
Sourcepub fn relative_expiry(&self) -> Option<Duration>
pub fn relative_expiry(&self) -> Option<Duration>
The timeout of a RelativeRoundtripTimeoutPolicy.
Sourcepub fn synchronization(&self) -> Option<i16>
pub fn synchronization(&self) -> Option<i16>
The synchronization of a SyncScopePolicy.
Sourcepub fn repository_id(&self) -> &'static str
pub fn repository_id(&self) -> &'static str
The repository id of the policy’s interface.