pub enum VoltError {
Show 32 variants
ConfigError(String),
MissingConfig(String),
AuthenticationFailed(String),
ConnectionError(String),
GrpcError(Status),
TransportError(Error),
IoError(Error),
JsonError(Error),
CryptoError(String),
KeyError(String),
CertificateError(String),
JwtError(Error),
SessionError(String),
MethodNotFound(String),
InvalidResponse(String),
Timeout(String),
Denied(String),
ProtocolError(String),
DidResolutionError(String),
HttpError(Error),
ServerError(String),
PermissionDenied(String),
CrdtError(String),
InvalidArgument(String),
NotInitialized,
NotConnected,
AlreadyConnected,
SignatureVerificationFailed,
EncryptionError(String),
DecryptionError(String),
Base64Error(DecodeError),
Internal(String),
}Expand description
Errors that can occur when using the Volt client
Variants§
ConfigError(String)
Configuration error
MissingConfig(String)
Missing required configuration field
AuthenticationFailed(String)
Authentication failed
ConnectionError(String)
Connection error
GrpcError(Status)
gRPC error
TransportError(Error)
Transport error
IoError(Error)
IO error
JsonError(Error)
JSON serialization/deserialization error
CryptoError(String)
Cryptographic operation error
KeyError(String)
Key error
CertificateError(String)
Certificate error
JwtError(Error)
JWT error
SessionError(String)
Session error
MethodNotFound(String)
Method not found
InvalidResponse(String)
Invalid response
Timeout(String)
Timeout error
Denied(String)
Request denied
ProtocolError(String)
Protocol error
DidResolutionError(String)
DID resolution error
HttpError(Error)
HTTP error (for DID resolution, etc.)
ServerError(String)
Server returned an error
PermissionDenied(String)
Permission denied
CrdtError(String)
Y.js/yrs error
InvalidArgument(String)
Invalid argument
NotInitialized
Not initialized
NotConnected
Not connected
AlreadyConnected
Already connected
SignatureVerificationFailed
Signature verification failed
EncryptionError(String)
Encryption error
DecryptionError(String)
Decryption error
Base64Error(DecodeError)
Base64 decode error
Internal(String)
Internal error
Implementations§
Source§impl VoltError
impl VoltError
Sourcepub fn missing_config<S: Into<String>>(field: S) -> Self
pub fn missing_config<S: Into<String>>(field: S) -> Self
Create a missing configuration error
Sourcepub fn connection<S: Into<String>>(msg: S) -> Self
pub fn connection<S: Into<String>>(msg: S) -> Self
Create a connection error
Sourcepub fn serialization<S: Into<String>>(msg: S) -> Self
pub fn serialization<S: Into<String>>(msg: S) -> Self
Create a serialization error
Trait Implementations§
Source§impl Error for VoltError
impl Error for VoltError
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<DecodeError> for VoltError
impl From<DecodeError> for VoltError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VoltError
impl !RefUnwindSafe for VoltError
impl Send for VoltError
impl Sync for VoltError
impl Unpin for VoltError
impl !UnwindSafe for VoltError
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> 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>
Wrap the input message
T in a tonic::Request