pub enum IntegrationError {
InvalidMessageName,
InvalidCorrelationId,
InvalidTraceparent,
InvalidHeaderName,
InvalidHeaderValue,
TooManyHeaders,
EnvelopeTooLarge {
actual: usize,
maximum: usize,
},
Json(Error),
}Expand description
Validation or serialization error from shared integration primitives.
Variants§
InvalidMessageName
A stable envelope name was empty or too large.
InvalidCorrelationId
A correlation or causation identifier exceeded the safe bound.
InvalidTraceparent
A W3C traceparent value was malformed.
InvalidHeaderName
An envelope header name was malformed or exceeded its bound.
InvalidHeaderValue
An envelope header value exceeded its bound or contained a control byte.
TooManyHeaders
The configured header count bound was exceeded.
EnvelopeTooLarge
The serialized envelope exceeded the configured transport bound.
Json(Error)
JSON serialization or deserialization failed.
Trait Implementations§
Source§impl Debug for IntegrationError
impl Debug for IntegrationError
Source§impl Display for IntegrationError
impl Display for IntegrationError
Source§impl Error for IntegrationError
impl Error for IntegrationError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for IntegrationError
impl !UnwindSafe for IntegrationError
impl Freeze for IntegrationError
impl Send for IntegrationError
impl Sync for IntegrationError
impl Unpin for IntegrationError
impl UnsafeUnpin for IntegrationError
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