#[non_exhaustive]pub enum StreamResponseCode {
Show 17 variants
Success = 0,
LoginDenied = 3,
UnknownFailure = 9,
ServiceNotAvailable = 11,
CloseConnection = 12,
ReachedSymbolLimit = 19,
StreamConnNotFound = 20,
BadCommandFormat = 21,
FailedCommandSubs = 22,
FailedCommandUnsubs = 23,
FailedCommandAdd = 24,
FailedCommandView = 25,
SucceededCommandSubs = 26,
SucceededCommandUnsubs = 27,
SucceededCommandAdd = 28,
SucceededCommandView = 29,
StopStreaming = 30,
}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.
Success = 0
LoginDenied = 3
UnknownFailure = 9
ServiceNotAvailable = 11
CloseConnection = 12
ReachedSymbolLimit = 19
StreamConnNotFound = 20
BadCommandFormat = 21
FailedCommandSubs = 22
FailedCommandUnsubs = 23
FailedCommandAdd = 24
FailedCommandView = 25
SucceededCommandSubs = 26
SucceededCommandUnsubs = 27
SucceededCommandAdd = 28
SucceededCommandView = 29
StopStreaming = 30
Implementations§
Source§impl StreamResponseCode
impl StreamResponseCode
pub fn from_code(code: i32) -> Option<Self>
pub fn is_success(&self) -> bool
pub fn is_retryable(&self) -> bool
Trait Implementations§
Source§impl Clone for StreamResponseCode
impl Clone for StreamResponseCode
Auto Trait Implementations§
impl Freeze for StreamResponseCode
impl RefUnwindSafe for StreamResponseCode
impl Send for StreamResponseCode
impl Sync for StreamResponseCode
impl Unpin for StreamResponseCode
impl UnsafeUnpin for StreamResponseCode
impl UnwindSafe for StreamResponseCode
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