#[non_exhaustive]pub enum Error {
Show 22 variants
Cdr(Error),
BadMagic([u8; 4]),
UnsupportedVersion(Version),
UnknownMessageType(u8),
InvalidFlags(u8),
Truncated {
expected: usize,
actual: usize,
},
TrailingBytes(usize),
MessageTooLarge(usize),
InvalidAddressingDisposition(i16),
TargetNotKey,
InvalidReplyStatus(u32),
InvalidLocateStatus(u32),
UnexpectedFragment,
FragmentInProgress,
FragmentMismatch,
FragmentTooLarge(usize),
FragmentNotSupported,
InvalidIorString(&'static str),
InvalidObjectUrl(&'static str),
UnexpectedProfileTag(u32),
UnsupportedIiopVersion(Version),
ComponentsInIiop1_0,
}Expand description
Errors raised while reading or writing GIOP messages.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Cdr(Error)
A CDR error in a header or body.
BadMagic([u8; 4])
The message did not start with GIOP.
UnsupportedVersion(Version)
The GIOP version is not 1.0, 1.1 or 1.2.
UnknownMessageType(u8)
The message type is unknown or not valid for the version.
InvalidFlags(u8)
The GIOP 1.0 byte order octet was neither 0 nor 1.
Truncated
Fewer bytes than the header and message size require.
TrailingBytes(usize)
Bytes left over after the message.
MessageTooLarge(usize)
The message does not fit in the 32-bit message size.
InvalidAddressingDisposition(i16)
A TargetAddress had an unknown discriminator.
TargetNotKey
GIOP 1.0 and 1.1 can only address an object by key.
InvalidReplyStatus(u32)
A ReplyStatusType value was unknown.
InvalidLocateStatus(u32)
A LocateStatusType value was unknown.
UnexpectedFragment
A fragment arrived with no message to continue.
FragmentInProgress
A GIOP 1.1 message started fragmenting while another was in progress, or a GIOP 1.2 request id was reused while in progress.
FragmentMismatch
A fragment’s version or byte order differs from the first message.
FragmentTooLarge(usize)
The reassembled message would exceed the configured limit.
FragmentNotSupported
GIOP 1.0 has no fragmentation.
InvalidIorString(&'static str)
A stringified IOR was malformed.
InvalidObjectUrl(&'static str)
A corbaloc: or corbaname: URL was malformed, or had an unknown
scheme.
UnexpectedProfileTag(u32)
A profile had a different tag than the one being read.
UnsupportedIiopVersion(Version)
An IIOP profile’s major version was not 1.
ComponentsInIiop1_0
An IIOP 1.0 profile cannot carry tagged components.
Trait Implementations§
impl Eq for Error
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()