pub enum ProtocolError {
EmptyMessageId,
ZeroTimeToLive,
ZeroAcknowledgementTimeout,
ZeroMaxAttempts,
TimeOverflow,
TimeMovedBackwards {
previous_ms: u64,
supplied_ms: u64,
},
SendAlreadyAwaitingAcknowledgement,
UnexpectedAcknowledgement,
DeliveryAlreadyTerminal,
AttemptsExhausted,
}Expand description
Invalid configuration, time, or protocol transition.
Variants§
EmptyMessageId
The envelope identifier was blank.
ZeroTimeToLive
The envelope time-to-live was zero.
ZeroAcknowledgementTimeout
The acknowledgement timeout was zero.
ZeroMaxAttempts
The maximum attempt count was zero.
TimeOverflow
Timestamp arithmetic overflowed.
TimeMovedBackwards
A timestamp was older than a previously observed timestamp.
SendAlreadyAwaitingAcknowledgement
A send was recorded while acknowledgement was already pending.
UnexpectedAcknowledgement
An acknowledgement arrived before any send was recorded.
DeliveryAlreadyTerminal
An operation was attempted after terminal completion.
AttemptsExhausted
A send was requested after all attempts were used.
Trait Implementations§
Source§impl Clone for ProtocolError
impl Clone for ProtocolError
Source§impl Debug for ProtocolError
impl Debug for ProtocolError
Source§impl Display for ProtocolError
impl Display for ProtocolError
impl Eq for ProtocolError
Source§impl Error for ProtocolError
impl Error for ProtocolError
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 ProtocolError
impl PartialEq for ProtocolError
impl StructuralPartialEq for ProtocolError
Auto Trait Implementations§
impl Freeze for ProtocolError
impl RefUnwindSafe for ProtocolError
impl Send for ProtocolError
impl Sync for ProtocolError
impl Unpin for ProtocolError
impl UnsafeUnpin for ProtocolError
impl UnwindSafe for ProtocolError
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