pub struct RivetError {
pub kind: RivetErrorKind,
pub meta: Option<Box<RawValue>>,
pub message: Option<String>,
pub actor: Option<ActorSpecifier>,
}Fields§
§kind: RivetErrorKind§meta: Option<Box<RawValue>>§message: Option<String>§actor: Option<ActorSpecifier>Implementations§
Source§impl RivetError
impl RivetError
pub fn extract(error: &Error) -> Self
pub fn group(&self) -> &str
pub fn code(&self) -> &str
pub fn message(&self) -> &str
pub fn metadata(&self) -> Option<Value>
pub fn actor(&self) -> Option<&ActorSpecifier>
pub fn with_actor(self, actor: ActorSpecifier) -> Self
pub fn schema(&self) -> Option<&'static RivetErrorSchema>
Trait Implementations§
Source§impl Clone for RivetError
impl Clone for RivetError
Source§fn clone(&self) -> RivetError
fn clone(&self) -> RivetError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RivetError
impl Debug for RivetError
Source§impl Display for RivetError
impl Display for RivetError
Source§impl Error for RivetError
impl Error for RivetError
1.30.0 · 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<&'static RivetErrorSchema> for RivetError
impl From<&'static RivetErrorSchema> for RivetError
Source§fn from(value: &'static RivetErrorSchema) -> Self
fn from(value: &'static RivetErrorSchema) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RivetError
impl RefUnwindSafe for RivetError
impl Send for RivetError
impl Sync for RivetError
impl Unpin for RivetError
impl UnsafeUnpin for RivetError
impl UnwindSafe for RivetError
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