95ec91daa1
* Create credential verifier in authenticator * Add new version of peer storage with client id * Fix v1 to what it was before * Compact storage into ecash verifier * Fix non-linux build * Less overlapping conditions * Remove moved code * Use handler thread for each peer * Re-spawn stored handles at startup * Keep new function without async & Result * Put query peer in function too * Query bandwidth * Fix clippy * Replace tap with inspect_err * Fix copyright year * Handle version 2 on the reqeust deser * Add protocol type in req/resp messages
24 lines
667 B
Rust
24 lines
667 B
Rust
// Copyright 2024 - Nym Technologies SA <contact@nymtech.net>
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
#[derive(Debug, thiserror::Error)]
|
|
pub enum Error {
|
|
#[error("peers in wireguard don't match with in-memory ")]
|
|
PeerMismatch,
|
|
|
|
#[error("traffic byte data needs to be increasing")]
|
|
InconsistentConsumedBytes,
|
|
|
|
#[error("{0}")]
|
|
Defguard(#[from] defguard_wireguard_rs::error::WireguardInterfaceError),
|
|
|
|
#[error("internal {0}")]
|
|
Internal(String),
|
|
|
|
#[error("storage should have the requested bandwidht entry")]
|
|
MissingClientBandwidthEntry,
|
|
|
|
#[error("{0}")]
|
|
GatewayStorage(#[from] nym_gateway_storage::error::StorageError),
|
|
}
|