pub enum Unanswered {
Gone,
Garbled(Unreadable),
NoAnswerToThat,
Refused(String),
BesideThePoint(String),
}Expand description
Why an ask got no answer.
Variants§
Gone
The broker’s thread is not there any more: it ended, or it panicked. Either way there is nobody to answer, which is a thing to be told rather than a thing to wait for.
Garbled(Unreadable)
The bytes were not a message, in one direction or the other.
NoAnswerToThat
Ask::Done is the one message with no answer. Waiting for one is the
hang this refuses to perform.
Refused(String)
The broker will not open a session, and here is why. Belongs to the session: after it there is nothing to retry.
BesideThePoint(String)
It answered something that does not answer what was asked. Not a failure of the errand but of the vocabulary — the two sides do not agree about what this conversation is.
Trait Implementations§
Source§impl Clone for Unanswered
impl Clone for Unanswered
Source§fn clone(&self) -> Unanswered
fn clone(&self) -> Unanswered
Returns a duplicate of the value. Read more
1.0.0 · 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 Unanswered
impl Debug for Unanswered
Source§impl Display for Unanswered
impl Display for Unanswered
Source§impl Error for Unanswered
impl Error for Unanswered
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 Unanswered
impl PartialEq for Unanswered
impl Eq for Unanswered
impl StructuralPartialEq for Unanswered
Auto Trait Implementations§
impl Freeze for Unanswered
impl RefUnwindSafe for Unanswered
impl Send for Unanswered
impl Sync for Unanswered
impl Unpin for Unanswered
impl UnsafeUnpin for Unanswered
impl UnwindSafe for Unanswered
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