pub enum NifContextError {
UnknownProcess {
pid: u64,
},
RecorderPoisoned,
Durability(DurabilityError),
TermEncoding {
reason: String,
},
}Expand description
Errors surfaced while constructing or using a per-call NIF context.
Variants§
UnknownProcess
No live workflow handle is registered for the calling process.
RecorderPoisoned
The recorder lock could not be acquired.
Durability(DurabilityError)
Durability replay or recording failed.
TermEncoding
A BEAM return term could not be encoded.
Trait Implementations§
Source§impl Debug for NifContextError
impl Debug for NifContextError
Source§impl Display for NifContextError
impl Display for NifContextError
Source§impl Error for NifContextError
impl Error for NifContextError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<DurabilityError> for NifContextError
impl From<DurabilityError> for NifContextError
Source§fn from(source: DurabilityError) -> Self
fn from(source: DurabilityError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NifContextError
impl RefUnwindSafe for NifContextError
impl Send for NifContextError
impl Sync for NifContextError
impl Unpin for NifContextError
impl UnsafeUnpin for NifContextError
impl UnwindSafe for NifContextError
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