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 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 ResponseCode
impl Debug for ResponseCode
Source§impl Decoder for ResponseCode
impl Decoder for ResponseCode
fn decode(input: &[u8]) -> Result<(&[u8], ResponseCode), DecodeError>
fn decode_version_2(input: &[u8]) -> Result<(&[u8], Self), DecodeError>
Source§impl Encoder for ResponseCode
impl Encoder for ResponseCode
fn encoded_size(&self) -> u32
fn encode(&self, writer: &mut impl Write) -> Result<(), EncodeError>
fn encoded_size_version_2(&self) -> u32
fn encode_version_2(&self, writer: &mut impl Write) -> Result<(), EncodeError>
Source§impl PartialEq for ResponseCode
impl PartialEq for ResponseCode
Source§impl TryFrom<u16> for ResponseCode
impl TryFrom<u16> for ResponseCode
Source§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 StructuralPartialEq for ResponseCode
Auto Trait Implementations§
impl Freeze for ResponseCode
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