pub struct CallbackFailure {
pub phase: CallbackPhase,
pub panicked: bool,
pub message: String,
}Expand description
Complete error or panic isolated at a callback boundary.
Fields§
§phase: CallbackPhaseCallback phase.
panicked: boolWhether the callback unwound and was contained.
message: StringComplete human-readable detail.
Implementations§
Source§impl CallbackFailure
impl CallbackFailure
Sourcepub fn new(
phase: CallbackPhase,
panicked: bool,
message: impl Into<String>,
) -> CallbackFailure
pub fn new( phase: CallbackPhase, panicked: bool, message: impl Into<String>, ) -> CallbackFailure
Creates a failure description without discarding any detail.
Trait Implementations§
Source§impl Clone for CallbackFailure
impl Clone for CallbackFailure
Source§fn clone(&self) -> CallbackFailure
fn clone(&self) -> CallbackFailure
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 CallbackFailure
impl Debug for CallbackFailure
Source§impl<'de> Deserialize<'de> for CallbackFailure
impl<'de> Deserialize<'de> for CallbackFailure
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CallbackFailure, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CallbackFailure, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CallbackFailure
Source§impl PartialEq for CallbackFailure
impl PartialEq for CallbackFailure
Source§impl Serialize for CallbackFailure
impl Serialize for CallbackFailure
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CallbackFailure
Auto Trait Implementations§
impl Freeze for CallbackFailure
impl RefUnwindSafe for CallbackFailure
impl Send for CallbackFailure
impl Sync for CallbackFailure
impl Unpin for CallbackFailure
impl UnsafeUnpin for CallbackFailure
impl UnwindSafe for CallbackFailure
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