pub struct PolicyError {
pub reason: i16,
}Expand description
CORBA::PolicyError, raised by Orb::create_policy: the
PolicyErrorCode in reason.
Fields§
§reason: i16One of the *_POLICY* constants of this type.
Implementations§
Source§impl PolicyError
impl PolicyError
Sourcepub const BAD_POLICY: i16 = 0
pub const BAD_POLICY: i16 = 0
BAD_POLICY: the ORB does not know the policy type.
Sourcepub const UNSUPPORTED_POLICY: i16 = 1
pub const UNSUPPORTED_POLICY: i16 = 1
UNSUPPORTED_POLICY: the ORB knows the type but does not support
it.
Sourcepub const BAD_POLICY_TYPE: i16 = 2
pub const BAD_POLICY_TYPE: i16 = 2
BAD_POLICY_TYPE: the any has the wrong type for the policy.
Sourcepub const BAD_POLICY_VALUE: i16 = 3
pub const BAD_POLICY_VALUE: i16 = 3
BAD_POLICY_VALUE: the value is not one of the policy’s values.
Sourcepub const UNSUPPORTED_POLICY_VALUE: i16 = 4
pub const UNSUPPORTED_POLICY_VALUE: i16 = 4
UNSUPPORTED_POLICY_VALUE: the ORB does not support the value.
Trait Implementations§
Source§impl Clone for PolicyError
impl Clone for PolicyError
impl Copy for PolicyError
Source§impl Debug for PolicyError
impl Debug for PolicyError
Source§impl Display for PolicyError
impl Display for PolicyError
impl Eq for PolicyError
Source§impl Error for PolicyError
impl Error for PolicyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for PolicyError
impl PartialEq for PolicyError
impl StructuralPartialEq for PolicyError
Auto Trait Implementations§
impl Forget for PolicyError
impl Freeze for PolicyError
impl Move for PolicyError
impl RefUnwindSafe for PolicyError
impl Send for PolicyError
impl Sync for PolicyError
impl Unpin for PolicyError
impl UnsafeUnpin for PolicyError
impl UnwindSafe for PolicyError
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