pub struct Error<T = CustomError>{ /* private fields */ }Implementations§
Source§impl<T> Error<T>
impl<T> Error<T>
pub fn new_solana(error: ProgramError) -> Self
pub fn new_typhoon(error: ErrorCode) -> Self
pub fn new_custom(error: T) -> Self
pub fn with_account(self, name: impl ToString) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Error<T>where
T: Freeze,
impl<T> RefUnwindSafe for Error<T>where
T: RefUnwindSafe,
impl<T> Send for Error<T>where
T: Send,
impl<T> Sync for Error<T>where
T: Sync,
impl<T> Unpin for Error<T>where
T: Unpin,
impl<T> UnwindSafe for Error<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more