#[non_exhaustive]pub enum CorbaException {
SystemException {
minor: u32,
message: &'static str,
},
UserException {
repository_id: String,
body: Vec<u8>,
endianness: Endianness,
},
}Expand description
CORBA system/user exception. Generated stubs/skeletons map all error paths onto this variant.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SystemException
CORBA system exception (Spec §3.17.1). Minor code per OMG.
Fields
UserException
User exception from IDL exception E { ... }; (§15.4.3 / §15.3.5.1).
body is the complete UserException reply body as a
contiguous CDR stream: string repository_id followed by the
exception members. Members are NOT extracted separately — their
CDR alignment is relative to the body start (which is 8-aligned in
the GIOP reply); a typed decoder first reads the repo-id (positioning
the reader), then the members. endianness is the byte order of body
(= reply byte order), required for correct member decoding.
Trait Implementations§
Source§impl Clone for CorbaException
impl Clone for CorbaException
Source§fn clone(&self) -> CorbaException
fn clone(&self) -> CorbaException
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CorbaException
impl Debug for CorbaException
Source§impl Display for CorbaException
impl Display for CorbaException
impl Eq for CorbaException
Source§impl Error for CorbaException
impl Error for CorbaException
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 CorbaException
impl PartialEq for CorbaException
Source§fn eq(&self, other: &CorbaException) -> bool
fn eq(&self, other: &CorbaException) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CorbaException
Auto Trait Implementations§
impl Freeze for CorbaException
impl RefUnwindSafe for CorbaException
impl Send for CorbaException
impl Sync for CorbaException
impl Unpin for CorbaException
impl UnsafeUnpin for CorbaException
impl UnwindSafe for CorbaException
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