pub enum PolicyValue {
Poa(Policy),
RelativeRoundtripTimeout(u64),
}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).
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 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 repository_id(&self) -> &'static str
pub fn repository_id(&self) -> &'static str
The repository id of the policy’s interface.
Trait Implementations§
Source§impl Clone for PolicyValue
impl Clone for PolicyValue
impl Copy for PolicyValue
Source§impl Debug for PolicyValue
impl Debug for PolicyValue
impl Eq for PolicyValue
Source§impl Hash for PolicyValue
impl Hash for PolicyValue
Source§impl PartialEq for PolicyValue
impl PartialEq for PolicyValue
impl StructuralPartialEq for PolicyValue
Auto Trait Implementations§
impl Freeze for PolicyValue
impl RefUnwindSafe for PolicyValue
impl Send for PolicyValue
impl Sync for PolicyValue
impl Unpin for PolicyValue
impl UnsafeUnpin for PolicyValue
impl UnwindSafe for PolicyValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more