Enum phoenix_core::error::Error
source · [−]pub enum Error {
}
Expand description
All possible errors for Phoenix’s Core
Variants
InvalidNoteType(u8)
Invalid u8 as Note Type (expected 0
or 1
, found {0})
InvalidBlindingFactor
Invalid Blinding Factor’s value
InvalidCipher
Invalid Cipher’s value
MissingViewKey
ViewKey required for decrypt data from Obfuscated Note
InvalidNoteConversion
Invalid Note Type for conversion
InvalidCrossoverConversion
Invalid Crossover for conversion
InvalidFeeConversion
Invalid Fee for conversion
PoseidonError(PoseidonError)
Poseidon Error
InvalidCommitment
Invalid Value Commitment
InvalidNonce
Invalid Nonce
InvalidData
Dusk-bytes InvalidData error
BadLenght(usize, usize)
Dusk-bytes BadLenght error
InvalidChar(char, usize)
Dusk-bytes InvalidChar error
Trait Implementations
sourceimpl BadLength for Error
impl BadLength for Error
sourcefn bad_length(found: usize, expected: usize) -> Self
fn bad_length(found: usize, expected: usize) -> Self
Invoked when a buffer of bad length is given to [from_slice
]
sourceimpl InvalidChar for Error
impl InvalidChar for Error
sourcefn invalid_char(ch: char, index: usize) -> Self
fn invalid_char(ch: char, index: usize) -> Self
Invoked when a string slice with a non hex character is is give to
[ParseHexStr::from_hex_str
] Read more
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more