Enum vapcore_secretstore::Error [−][src]
Secret store error.
Variants
Invalid node address has been passed.
Invalid node id has been passed.
Session with the given id already exists.
No active session with given id.
Invalid threshold value has been passed. Threshold value must be in [0; n - 1], where n is a number of nodes participating in the encryption.
Current state of encryption/decryption session does not allow to proceed request. Reschedule this request for later processing.
Current state of encryption/decryption session does not allow to proceed request. This means that either there is some comm-failure or node is misbehaving/cheating.
Request cannot be sent/received from this node.
Message or some data in the message was recognized as invalid. This means that node is misbehaving/cheating.
Message version is not supported.
Message is invalid because of replay-attack protection.
Connection to node, required for this session is not established.
Server key with this ID is already generated.
Server key with this ID is not yet generated.
Document key with this ID is already stored.
Document key with this ID is not yet stored.
Consensus is temporary unreachable. Means that something is currently blocking us from either forming consensus group (like disconnecting from too many nodes, which are AGREE to participate in consensus) or from rejecting request (disconnecting from AccessDenied-nodes).
Consensus is unreachable. It doesn’t mean that it will ALWAYS remain unreachable, but right NOW we have enough nodes confirmed that they do not want to be a part of consensus. Example: we’re connected to 10 of 100 nodes. Key threshold is 6 (i.e. 7 nodes are required for consensus). 4 nodes are responding with reject => consensus is considered unreachable, even though another 90 nodes still can respond with OK.
Acl storage error.
Can’t start session, because exclusive session is active.
Can’t start exclusive session, because there are other active sessions.
InsufficientRequesterData(String)
Insufficient requester data.
VapKey(String)
Cryptographic error.
Io(String)
I/O error has occurred.
Serde(String)
Deserialization error has occurred.
Hyper(String)
Hyper error.
Database(String)
Database-related error.
Internal(String)
Internal error.
Implementations
impl Error
[src]
pub fn is_non_fatal(&self) -> bool
[src]
Is this a fatal error? Non-fatal means that it is possible to replay the same request with a non-zero chance to success. I.e. the error is not about request itself (or current environment factors that are affecting request processing), but about current SecretStore state.
Trait Implementations
impl Clone for Error
[src]
impl Debug for Error
[src]
impl<'de> Deserialize<'de> for Error
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for Error
[src]
impl From<AddrParseError> for Error
[src]
fn from(err: AddrParseError) -> Error
[src]
impl From<Error> for Error
[src]
impl From<Error> for Error
[src]
impl From<Error> for Error
[src]
impl Into<String> for Error
[src]
impl PartialEq<Error> for Error
[src]
impl Serialize for Error
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for Error
[src]
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,