Enum sn_node::Error [−][src]
#[non_exhaustive] pub enum Error {}Show variants
NotAnAdult, NotAnElder, NotEnoughSpace, NoSectionPublicKey, UnknownSectionKey(PublicKey), ProvidedPkIsNotBlsShare, ProvidedPkIsNotBls, NoSectionPublicKeySet, NoSectionPublicKeyKnown(XorName), InvalidRewardStage, NodeNotFoundForReward, NoSuchChunk(DataAddress), NotChurningFunds, TempDirCreationFailed(String), NoStoreId, CouldNotCombineSignatures, DataExists, Io(Error), JsonSerialisation(Error), Bincode(Error), ClientMessage(Error), Message(Error), PickleDb(Error), NetworkData(Error), Transfer(Error), Routing(Error), 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.
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
NoSuchChunk(DataAddress)
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.
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 Error for Error
[src]
impl Error for Error
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
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> AsFail for T where
T: Fail,
impl<T> AsFail for T where
T: Fail,
pub fn as_fail(&self) -> &(dyn Fail + 'static)
pub fn as_fail(&self) -> &(dyn Fail + 'static)
Converts a reference to Self
into a dynamic trait object of Fail
.
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<E> Fail for E where
E: 'static + Error + Send + Sync,
impl<E> Fail for E where
E: 'static + Error + Send + Sync,
fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the Backtrace
carried by this failure, if it
carries one. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,