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], Self), 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 From<&ResponseCode> for u16
impl From<&ResponseCode> for u16
Source§fn from(code: &ResponseCode) -> Self
fn from(code: &ResponseCode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ResponseCode
impl PartialEq for ResponseCode
Source§impl TryFrom<u16> for ResponseCode
impl TryFrom<u16> for ResponseCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)