pub enum ErrorCode {
Show 39 variants DnsTimeout, DnsError(DnsErrorPayload), DestinationNotFound, DestinationUnavailable, DestinationIpProhibited, DestinationIpUnroutable, ConnectionRefused, ConnectionTerminated, ConnectionTimeout, ConnectionReadTimeout, ConnectionWriteTimeout, ConnectionLimitReached, TlsProtocolError, TlsCertificateError, TlsAlertReceived(TlsAlertReceivedPayload), HttpRequestDenied, HttpRequestLengthRequired, HttpRequestBodySize(Option<u64>), HttpRequestMethodInvalid, HttpRequestUriInvalid, HttpRequestUriTooLong, HttpRequestHeaderSectionSize(Option<u32>), HttpRequestHeaderSize(Option<FieldSizePayload>), HttpRequestTrailerSectionSize(Option<u32>), HttpRequestTrailerSize(FieldSizePayload), HttpResponseIncomplete, HttpResponseHeaderSectionSize(Option<u32>), HttpResponseHeaderSize(FieldSizePayload), HttpResponseBodySize(Option<u64>), HttpResponseTrailerSectionSize(Option<u32>), HttpResponseTrailerSize(FieldSizePayload), HttpResponseTransferCoding(Option<String>), HttpResponseContentCoding(Option<String>), HttpResponseTimeout, HttpUpgradeFailed, HttpProtocolError, LoopDetected, ConfigurationError, InternalError(Option<String>),
}

Variants§

§

DnsTimeout

§

DnsError(DnsErrorPayload)

§

DestinationNotFound

§

DestinationUnavailable

§

DestinationIpProhibited

§

DestinationIpUnroutable

§

ConnectionRefused

§

ConnectionTerminated

§

ConnectionTimeout

§

ConnectionReadTimeout

§

ConnectionWriteTimeout

§

ConnectionLimitReached

§

TlsProtocolError

§

TlsCertificateError

§

TlsAlertReceived(TlsAlertReceivedPayload)

§

HttpRequestDenied

§

HttpRequestLengthRequired

§

HttpRequestBodySize(Option<u64>)

§

HttpRequestMethodInvalid

§

HttpRequestUriInvalid

§

HttpRequestUriTooLong

§

HttpRequestHeaderSectionSize(Option<u32>)

§

HttpRequestHeaderSize(Option<FieldSizePayload>)

§

HttpRequestTrailerSectionSize(Option<u32>)

§

HttpRequestTrailerSize(FieldSizePayload)

§

HttpResponseIncomplete

§

HttpResponseHeaderSectionSize(Option<u32>)

§

HttpResponseHeaderSize(FieldSizePayload)

§

HttpResponseBodySize(Option<u64>)

§

HttpResponseTrailerSectionSize(Option<u32>)

§

HttpResponseTrailerSize(FieldSizePayload)

§

HttpResponseTransferCoding(Option<String>)

§

HttpResponseContentCoding(Option<String>)

§

HttpResponseTimeout

§

HttpUpgradeFailed

§

HttpProtocolError

§

LoopDetected

§

ConfigurationError

§

InternalError(Option<String>)

Trait Implementations§

source§

impl Clone for ErrorCode

source§

fn clone(&self) -> ErrorCode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ErrorCode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl EncodeSync for ErrorCode

source§

fn encode_sync(self, payload: impl BufMut) -> Result<()>

source§

fn encode_sync_option( v: Option<Self>, payload: impl BufMut ) -> Result<(), Error>

source§

fn encode_sync_list(vs: Vec<Self>, payload: impl BufMut) -> Result<(), Error>

source§

impl PartialEq for ErrorCode

source§

fn eq(&self, other: &ErrorCode) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Receive for ErrorCode

source§

fn receive<'a, 'life0, 'async_trait, T>( payload: impl 'async_trait + Buf + Send + 'a, rx: &'life0 mut (impl 'async_trait + Stream<Item = Result<Bytes>> + Send + Sync + Unpin), _sub: Option<AsyncSubscription<T>> ) -> Pin<Box<dyn Future<Output = Result<(Self, Box<dyn Buf + Send + 'a>)>> + Send + 'async_trait>>
where T: Stream<Item = Result<Bytes>> + Send + Sync + 'static + 'async_trait, Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

source§

fn receive_sync<'a, 'life0, 'async_trait>( payload: impl Buf + Send + 'async_trait + 'a, rx: &'life0 mut (impl Stream<Item = Result<Bytes, Error>> + Send + Sync + Unpin + 'async_trait) ) -> Pin<Box<dyn Future<Output = Result<(Self, Box<dyn Buf + Send + 'a>), Error>> + Send + 'async_trait>>
where 'a: 'async_trait, 'life0: 'async_trait, Self: Send + 'async_trait,

source§

impl Eq for ErrorCode

source§

impl StructuralPartialEq for ErrorCode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> Encode for T
where T: EncodeSync + Send,

source§

fn encode<'life0, 'async_trait>( self, payload: &'life0 mut (impl BufMut + Send + 'async_trait) ) -> Pin<Box<dyn Future<Output = Result<Option<AsyncValue>, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, T: 'async_trait,

source§

fn encode_dynamic_future( fut: impl Future<Output = Result<Option<Value>, Error>> + Send + Unpin + 'static, payload: impl BufMut + Send ) -> impl Future<Output = Result<Option<AsyncValue>, Error>>
where Self: Sized,

source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<R, Ctx> ReceiveContext<Ctx> for R
where R: Receive + Send, Ctx: Send + Sync + 'static,

source§

fn receive_context<'a, 'life0, 'life1, 'async_trait, T>( _cx: &'life0 Ctx, payload: impl Buf + Send + 'async_trait + 'a, rx: &'life1 mut (impl Stream<Item = Result<Bytes, Error>> + Send + Sync + Unpin + 'async_trait), sub: Option<AsyncSubscription<T>> ) -> Pin<Box<dyn Future<Output = Result<(R, Box<dyn Buf + Send + 'a>), Error>> + Send + 'async_trait>>
where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, T: Stream<Item = Result<Bytes, Error>> + Send + Sync + 'static + 'async_trait, R: 'async_trait,

source§

fn receive_context_sync<'a, 'b>( cx: &'a Ctx, payload: impl Buf + Send + 'b, rx: &'a mut (impl Stream<Item = Result<Bytes, Error>> + Send + Sync + Unpin + 'a) ) -> impl Future<Output = Result<(Self, Box<dyn Buf + Send + 'b>), Error>> + Send + 'a
where 'b: 'a, Self: 'a,

source§

fn receive_list_context<'a, T>( cx: &Ctx, payload: impl Buf + Send + 'a, rx: &mut (impl Stream<Item = Result<Bytes, Error>> + Send + Sync + Unpin), sub: Option<AsyncSubscription<T>> ) -> impl Future<Output = Result<(Vec<Self>, Box<dyn Buf + Send + 'a>), Error>> + Send
where T: Stream<Item = Result<Bytes, Error>> + Send + Sync + 'static,

Receive a list
source§

fn receive_tuple_context<'a, 'life0, 'async_trait, T, I>( cx: I, payload: impl Buf + Send + 'async_trait + 'a, rx: &'life0 mut (impl Stream<Item = Result<Bytes, Error>> + Send + Sync + Unpin + 'async_trait), sub: Option<AsyncSubscription<T>> ) -> Pin<Box<dyn Future<Output = Result<(Vec<Self>, Box<dyn Buf + Send + 'a>), Error>> + Send + 'async_trait>>
where 'a: 'async_trait, 'life0: 'async_trait, T: Stream<Item = Result<Bytes, Error>> + Send + Sync + 'static + 'async_trait, I: IntoIterator<Item = &'a Ctx> + Send + 'async_trait, <I as IntoIterator>::IntoIter: ExactSizeIterator + Send, Self: 'async_trait,

Receive a tuple
source§

fn receive_stream_item_context<'a, T>( cx: Option<&Ctx>, payload: impl Buf + Send + 'a, rx: &mut (impl Stream<Item = Result<Bytes, Error>> + Send + Sync + Unpin), sub: &mut Option<AsyncSubscriptionDemux<T>>, offset: u64 ) -> impl Future<Output = Result<(Option<Vec<Option<Self>>>, Box<dyn Buf + Send + 'a>), Error>>
where T: Stream<Item = Result<Bytes, Error>> + Send + Sync + 'static,

source§

impl<V> Subscribe for V
where V: EncodeSync,

source§

async fn subscribe<T>( _subscriber: &T, _subject: <T as Subscriber>::Subject ) -> Result<Option<AsyncSubscription<<T as Subscriber>::Stream>>, <T as Subscriber>::SubscribeError>
where T: Subscriber + Send + Sync,

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more