Enum sn_node::Error [−][src]
#[non_exhaustive] pub enum Error {}Show variants
NotAnAdult, NotAnElder, BalanceExists, NotEnoughSpace, NoSectionPublicKey, UnknownSectionKey(PublicKey), ProvidedPkIsNotBlsShare, ProvidedPkIsNotBls, NoSectionPublicKeySet, NoSectionPublicKeyKnown(XorName), InvalidRewardStage, NodeNotFoundForReward, NodeDoesNotHoldChunks, NoHoldersOfChunk, NoSuchChunk, NotChurningFunds, TempDirCreationFailed(String), NoStoreId, CouldNotCombineSignatures, DataExists, Io(Error), JsonSerialisation(Error), Bincode(Error), ClientMessage(Error), Message(Error), PickleDb(Error), NetworkData(Error), Transfer(Error), Routing(Error), Onboarding, TransferAlreadyRegistered, InvalidSignedTransfer(Dot<PublicKey>), InvalidPropagatedTransfer(CreditAgreementProof), InvalidMessage(MessageId, String), InvalidOwners(PublicKey), InvalidOperation(String), NoErrorMapping(String), Logic(String), Configuration(String),
Node error variants.
Variants (Non-exhaustive)
Attempted to perform an operation meant only for Adults when we are not one.
Attempted to perform an operation meant only for Elders when we are not one.
The key balance already exists when it was expected to be empty (during section genesis)
Not enough space in ChunkStore
to perform put
.
Not Section PublicKey.
UnknownSectionKey(PublicKey)
Unknown as a Section PublicKey.
Not a Section PublicKeyShare.
Not a Section PublicKey.
Not Section PublicKeySet.
NoSectionPublicKeyKnown(XorName)
Not Section PublicKey.
Unable to parse reward proposal.
Node not found for rewarding
Node not found in holders db.
No holders of chunk in metadata db.
Key, Value pair not found in ChunkStore
.
Unable to process fund churn message.
TempDirCreationFailed(String)
Creating temp directory failed.
Chunk Store Id could not be found
Threshold crypto combine signatures error
Chunk already exists for this node
Io(Error)
I/O error.
JsonSerialisation(Error)
JSON serialisation error.
Bincode(Error)
Bincode error.
ClientMessage(Error)
Network message error.
Message(Error)
Network message error.
PickleDb(Error)
PickleDb error.
NetworkData(Error)
NetworkData error.
Transfer(Error)
sn_transfers error.
Routing(Error)
Routing error.
Onboarding error
Transfer has already been registered
Transfer message is invalid.
InvalidPropagatedTransfer(CreditAgreementProof)
Transfer message is invalid.
Message is invalid.
InvalidOwners(PublicKey)
Data owner provided is invalid.
InvalidOperation(String)
Operation is invalid, eg signing validation
NoErrorMapping(String)
No mapping to sn_messages::Error could be found. Either we need a new error there, or we need to handle or convert this error before sending it as a message
Logic(String)
Logic error.
Configuration(String)
Configuration error.
Trait Implementations
impl Debug for Error
[src]
impl Display for Error
[src]
impl Error for Error
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<Box<ErrorKind, Global>> for Error
[src]
impl From<Error> for Error
[src]
impl From<Error> for Error
[src]
impl From<Error> for Error
[src]
impl From<Error> for Error
[src]
impl From<Error> for Error
[src]
impl From<Error> for Error
[src]
impl From<Error> for Error
[src]
impl From<Error> 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> AsFail for T where
T: Fail,
T: Fail,
pub fn as_fail(&self) -> &(dyn Fail + 'static)
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<E> Fail for E where
E: 'static + Error + Send + Sync,
E: 'static + Error + Send + Sync,
pub fn name(&self) -> Option<&str>
pub fn cause(&self) -> Option<&(dyn Fail + 'static)>
pub fn backtrace(&self) -> Option<&Backtrace>
pub fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
D: Display + Send + Sync + 'static,
pub fn compat(self) -> Compat<Self>
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[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> 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>,