#[repr(i32)]pub enum SubscriptionStatus {
Unspecified = 0,
Success = 1,
InstrumentNotFound = 2,
SubscriptionActionIsInvalid = 3,
DepthIsInvalid = 4,
IntervalIsInvalid = 5,
LimitIsExceeded = 6,
InternalError = 7,
TooManyRequests = 8,
SubscriptionNotFound = 9,
}
Expand description
Результат подписки.
Variants§
Unspecified = 0
Статус подписки не определён.
Success = 1
Успешно.
InstrumentNotFound = 2
Инструмент не найден.
SubscriptionActionIsInvalid = 3
Некорректный статус подписки, список возможных значений: SubscriptionAction.
DepthIsInvalid = 4
Некорректная глубина стакана, доступные значения: 1, 10, 20, 30, 40, 50.
IntervalIsInvalid = 5
Некорректный интервал свечей, список возможных значений: SubscriptionInterval.
LimitIsExceeded = 6
Превышен лимит на общее количество подписок в рамках стрима, подробнее: Лимитная политика.
InternalError = 7
Внутренняя ошибка сервиса.
TooManyRequests = 8
Превышен лимит на количество запросов на подписки в течение установленного отрезка времени
SubscriptionNotFound = 9
Активная подписка не найдена. Ошибка может возникнуть только при отписке от не существующей отписки
Implementations§
source§impl SubscriptionStatus
impl SubscriptionStatus
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for SubscriptionStatus
impl Clone for SubscriptionStatus
source§fn clone(&self) -> SubscriptionStatus
fn clone(&self) -> SubscriptionStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SubscriptionStatus
impl Debug for SubscriptionStatus
source§impl Default for SubscriptionStatus
impl Default for SubscriptionStatus
source§fn default() -> SubscriptionStatus
fn default() -> SubscriptionStatus
source§impl From<SubscriptionStatus> for i32
impl From<SubscriptionStatus> for i32
source§fn from(value: SubscriptionStatus) -> i32
fn from(value: SubscriptionStatus) -> i32
source§impl Hash for SubscriptionStatus
impl Hash for SubscriptionStatus
source§impl Ord for SubscriptionStatus
impl Ord for SubscriptionStatus
source§fn cmp(&self, other: &SubscriptionStatus) -> Ordering
fn cmp(&self, other: &SubscriptionStatus) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for SubscriptionStatus
impl PartialEq for SubscriptionStatus
source§fn eq(&self, other: &SubscriptionStatus) -> bool
fn eq(&self, other: &SubscriptionStatus) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SubscriptionStatus
impl PartialOrd for SubscriptionStatus
source§fn partial_cmp(&self, other: &SubscriptionStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &SubscriptionStatus) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for SubscriptionStatus
impl TryFrom<i32> for SubscriptionStatus
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<SubscriptionStatus, DecodeError>
fn try_from(value: i32) -> Result<SubscriptionStatus, DecodeError>
impl Copy for SubscriptionStatus
impl Eq for SubscriptionStatus
impl StructuralPartialEq for SubscriptionStatus
Auto Trait Implementations§
impl Freeze for SubscriptionStatus
impl RefUnwindSafe for SubscriptionStatus
impl Send for SubscriptionStatus
impl Sync for SubscriptionStatus
impl Unpin for SubscriptionStatus
impl UnwindSafe for SubscriptionStatus
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
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request