#[repr(u16)]pub enum NgError {
Show 67 variants
InvalidSignature,
IncompleteSignature,
SerializationError,
EncryptionError,
DecryptionError,
InvalidValue,
ConnectionNotFound,
InvalidKey,
InvalidInvitation,
InvalidCreateAccount,
InvalidFileFormat,
InvalidArgument,
PermissionDenied,
InvalidPazzle,
InvalidMnemonic,
CommitLoadError(CommitLoadError),
ObjectParseError(ObjectParseError),
StorageError(StorageError),
NotFound,
JsStorageKeyNotFound,
IoError,
CommitVerifyError(CommitVerifyError),
LocalBrokerNotInitialized,
JsStorageReadError,
JsStorageWriteError(String),
CannotSaveWhenInMemoryConfig,
WalletNotFound,
WalletAlreadyAdded,
WalletAlreadyOpened,
WalletError(String),
BrokerError,
SessionNotFound,
SessionAlreadyStarted,
RepoNotFound,
BranchNotFound,
StoreNotFound,
UserNotFound,
TopicNotFound,
NotConnected,
ActorError,
ProtocolError(ProtocolError),
ServerError(ServerError),
InvalidResponse,
BootstrapError(String),
NotAServerError,
VerifierError(VerifierError),
SiteNotFoundOnBroker,
BrokerConfigErrorStr(&'static str),
BrokerConfigError(String),
MalformedEvent,
InvalidPayload,
WrongUploadId,
FileError(FileError),
InternalError,
OxiGraphError(String),
ConfigError(String),
LocalBrokerIsHeadless,
LocalBrokerIsNotHeadless,
InvalidNuri,
InvalidTarget,
InvalidQrCode,
NotImplemented,
NotARendezVous,
IncompatibleQrCode,
InvalidClass,
KeyShareNotFound,
BrokerNotFound,
}
Variants§
InvalidSignature
IncompleteSignature
SerializationError
EncryptionError
DecryptionError
InvalidValue
ConnectionNotFound
InvalidKey
InvalidInvitation
InvalidCreateAccount
InvalidFileFormat
InvalidArgument
PermissionDenied
InvalidPazzle
InvalidMnemonic
CommitLoadError(CommitLoadError)
ObjectParseError(ObjectParseError)
StorageError(StorageError)
NotFound
JsStorageKeyNotFound
IoError
CommitVerifyError(CommitVerifyError)
LocalBrokerNotInitialized
JsStorageReadError
JsStorageWriteError(String)
CannotSaveWhenInMemoryConfig
WalletNotFound
WalletAlreadyAdded
WalletAlreadyOpened
WalletError(String)
BrokerError
SessionNotFound
SessionAlreadyStarted
RepoNotFound
BranchNotFound
StoreNotFound
UserNotFound
TopicNotFound
NotConnected
ActorError
ProtocolError(ProtocolError)
ServerError(ServerError)
InvalidResponse
BootstrapError(String)
NotAServerError
VerifierError(VerifierError)
SiteNotFoundOnBroker
BrokerConfigErrorStr(&'static str)
BrokerConfigError(String)
MalformedEvent
InvalidPayload
WrongUploadId
FileError(FileError)
InternalError
OxiGraphError(String)
ConfigError(String)
LocalBrokerIsHeadless
LocalBrokerIsNotHeadless
InvalidNuri
InvalidTarget
InvalidQrCode
NotImplemented
NotARendezVous
IncompatibleQrCode
InvalidClass
BrokerNotFound
Trait Implementations§
Source§impl Error for NgError
impl Error for NgError
1.30.0 · 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<CommitLoadError> for NgError
impl From<CommitLoadError> for NgError
Source§fn from(e: CommitLoadError) -> Self
fn from(e: CommitLoadError) -> Self
Converts to this type from the input type.
Source§impl From<CommitVerifyError> for NgError
impl From<CommitVerifyError> for NgError
Source§fn from(e: CommitVerifyError) -> Self
fn from(e: CommitVerifyError) -> Self
Converts to this type from the input type.
Source§impl From<NgError> for ProtocolError
impl From<NgError> for ProtocolError
Source§impl From<NgError> for ServerError
impl From<NgError> for ServerError
Source§impl From<NgError> for StorageError
impl From<NgError> for StorageError
Source§impl From<NgError> for VerifierError
impl From<NgError> for VerifierError
Source§impl From<ObjectParseError> for NgError
impl From<ObjectParseError> for NgError
Source§fn from(e: ObjectParseError) -> Self
fn from(e: ObjectParseError) -> Self
Converts to this type from the input type.
Source§impl From<ProtocolError> for NgError
impl From<ProtocolError> for NgError
Source§fn from(e: ProtocolError) -> Self
fn from(e: ProtocolError) -> Self
Converts to this type from the input type.
Source§impl From<ServerError> for NgError
impl From<ServerError> for NgError
Source§fn from(e: ServerError) -> Self
fn from(e: ServerError) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for NgError
impl From<StorageError> for NgError
Source§fn from(e: StorageError) -> Self
fn from(e: StorageError) -> Self
Converts to this type from the input type.
Source§impl From<VerifierError> for NgError
impl From<VerifierError> for NgError
Source§fn from(e: VerifierError) -> Self
fn from(e: VerifierError) -> Self
Converts to this type from the input type.
impl Eq for NgError
impl StructuralPartialEq for NgError
Auto Trait Implementations§
impl Freeze for NgError
impl RefUnwindSafe for NgError
impl Send for NgError
impl Sync for NgError
impl Unpin for NgError
impl UnwindSafe for NgError
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