#[non_exhaustive]pub enum StreamErrorKind {
Unauthorized,
Forbidden,
InvalidRequest,
NotFound,
Refused,
UnexpectedResponse,
GaveUp,
}Expand description
Why a stream ended for good. Everything else is retried and never an error.
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.
The API refused the key (401).
Forbidden
The API refused the caller (403): a suspended organization.
InvalidRequest
The request is wrong (400): a filter the stream does not accept.
NotFound
The project the client is scoped to does not exist (404).
Refused
Any other answer that waiting does not fix.
UnexpectedResponse
A 200 that is not an event stream.
GaveUp
No open connection for the give-up time.
Implementations§
Trait Implementations§
Source§impl Clone for StreamErrorKind
impl Clone for StreamErrorKind
impl Copy for StreamErrorKind
Source§impl Debug for StreamErrorKind
impl Debug for StreamErrorKind
impl Eq for StreamErrorKind
Source§impl Hash for StreamErrorKind
impl Hash for StreamErrorKind
Source§impl PartialEq for StreamErrorKind
impl PartialEq for StreamErrorKind
impl StructuralPartialEq for StreamErrorKind
Auto Trait Implementations§
impl Freeze for StreamErrorKind
impl RefUnwindSafe for StreamErrorKind
impl Send for StreamErrorKind
impl Sync for StreamErrorKind
impl Unpin for StreamErrorKind
impl UnsafeUnpin for StreamErrorKind
impl UnwindSafe for StreamErrorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.