pub enum ResponseCode {
Show 19 variants
Ok,
StreamDoesNotExist,
SubscriptionIdAlreadyExists,
SubscriptionIdDoesNotExist,
StreamAlreadyExists,
StreamNotAvailable,
SaslMechanismNotSupported,
AuthenticationFailure,
SaslError,
SaslChallange,
AuthenticationFailureLoopback,
VirtualHostAccessFailure,
UnknownFrame,
FrameTooLarge,
InternalError,
AccessRefused,
PrecoditionFailed,
PublisherDoesNotExist,
OffsetNotFound,
}
Variants§
Ok
StreamDoesNotExist
SubscriptionIdAlreadyExists
SubscriptionIdDoesNotExist
StreamAlreadyExists
StreamNotAvailable
SaslMechanismNotSupported
AuthenticationFailure
SaslError
SaslChallange
AuthenticationFailureLoopback
VirtualHostAccessFailure
UnknownFrame
FrameTooLarge
InternalError
AccessRefused
PrecoditionFailed
PublisherDoesNotExist
OffsetNotFound
Trait Implementations§
source§impl Clone for ResponseCode
impl Clone for ResponseCode
source§fn clone(&self) -> ResponseCode
fn clone(&self) -> ResponseCode
Returns a copy 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 ResponseCode
impl Debug for ResponseCode
source§impl Decoder for ResponseCode
impl Decoder for ResponseCode
fn decode(input: &[u8]) -> Result<(&[u8], ResponseCode), DecodeError>
source§impl Encoder for ResponseCode
impl Encoder for ResponseCode
source§impl PartialEq for ResponseCode
impl PartialEq for ResponseCode
source§fn eq(&self, other: &ResponseCode) -> bool
fn eq(&self, other: &ResponseCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u16> for ResponseCode
impl TryFrom<u16> for ResponseCode
§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
source§fn try_from(
value: u16
) -> Result<ResponseCode, <ResponseCode as TryFrom<u16>>::Error>
fn try_from( value: u16 ) -> Result<ResponseCode, <ResponseCode as TryFrom<u16>>::Error>
Performs the conversion.
impl Eq for ResponseCode
impl StructuralEq for ResponseCode
impl StructuralPartialEq for ResponseCode
Auto Trait Implementations§
impl RefUnwindSafe for ResponseCode
impl Send for ResponseCode
impl Sync for ResponseCode
impl Unpin for ResponseCode
impl UnwindSafe for ResponseCode
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more