#[non_exhaustive]pub enum Error {
Transport(TransportError),
TokenSource(TokenSourceError),
FailedMessage {
result_code: ResultCode,
detail: String,
},
Timeout(Cow<'static, str>),
ConnectionClosed,
CancelledByClose,
StreamClosed,
Unexpected(Cow<'static, str>),
InvalidValue(Cow<'static, str>),
Reordering(Uuid),
}Expand description
iSCPエラー型
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.
Transport(TransportError)
トランスポートレベルのエラー
下位層のネットワーク通信で発生したエラーです。 WebSocketの切断、ネットワーク接続の問題、TLSエラーなどが含まれます。
TokenSource(TokenSourceError)
トークンソースのエラー
アクセストークンの取得中に発生したエラーです。 認証の失敗、トークンの期限切れなどが含まれます。
FailedMessage
成功以外の結果コードを受信
サーバーからエラー結果コードを含むレスポンスを受信しました。 これは通常、サーバー側で処理が拒否されたことを意味します。
Timeout(Cow<'static, str>)
リクエストがタイムアウトしました
指定された時間内にサーバーから応答がなかったか、 または操作が完了しませんでした。
ConnectionClosed
接続が既に閉じられています
接続が既に終了している状態で操作を試みた場合に発生します。
CancelledByClose
閉じられたことによりキャンセルされた操作
進行中の操作が、接続が閉じられたためにキャンセルされました。
StreamClosed
ストリームが既に閉じられています
アップストリームやダウンストリームが既に終了している状態で 操作を試みた場合に発生します。
Unexpected(Cow<'static, str>)
予期せぬエラー
ライブラリ内部で発生した予期しないエラーです。 バグの可能性があります。
InvalidValue(Cow<'static, str>)
無効な値
引数やパラメータに無効な値が指定された場合に発生します。
Reordering(Uuid)
並べ替えエラー
ダウンストリームでのチャンク並べ替え中に発生したエラーです。
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<TokenSourceError> for Error
impl From<TokenSourceError> for Error
Source§fn from(source: TokenSourceError) -> Self
fn from(source: TokenSourceError) -> Self
Converts to this type from the input type.
Source§impl From<TransportError> for Error
impl From<TransportError> for Error
Source§fn from(source: TransportError) -> Self
fn from(source: TransportError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<S> IntoConnectOptions for Swhere
S: ToString,
impl<S> IntoConnectOptions for Swhere
S: ToString,
Source§fn into_options(self) -> ConnectOptions
fn into_options(self) -> ConnectOptions
Perform value-to-value conversion into
ConnectOptions.