#[non_exhaustive]pub struct InfallibleCallFailure<'a> {
pub component: &'a str,
pub method: &'a str,
pub status: i32,
pub message: &'a str,
}Expand description
A native component reported a failure from a contract method whose Rust signature cannot return an error.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.component: &'a strThe component id from its descriptor.
method: &'a strThe contract method, in the trait’s snake_case spelling.
status: i32The non-OK AlefStatus code the component returned.
message: &'a strThe component’s error message, lossily decoded as UTF-8.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for InfallibleCallFailure<'a>
impl<'a> Clone for InfallibleCallFailure<'a>
impl<'a> Copy for InfallibleCallFailure<'a>
Source§impl<'a> Debug for InfallibleCallFailure<'a>
impl<'a> Debug for InfallibleCallFailure<'a>
impl<'a> Eq for InfallibleCallFailure<'a>
Source§impl<'a> PartialEq for InfallibleCallFailure<'a>
impl<'a> PartialEq for InfallibleCallFailure<'a>
impl<'a> StructuralPartialEq for InfallibleCallFailure<'a>
Auto Trait Implementations§
impl<'a> Forget for InfallibleCallFailure<'a>
impl<'a> Freeze for InfallibleCallFailure<'a>
impl<'a> Move for InfallibleCallFailure<'a>
impl<'a> RefUnwindSafe for InfallibleCallFailure<'a>
impl<'a> Send for InfallibleCallFailure<'a>
impl<'a> Sync for InfallibleCallFailure<'a>
impl<'a> Unpin for InfallibleCallFailure<'a>
impl<'a> UnsafeUnpin for InfallibleCallFailure<'a>
impl<'a> UnwindSafe for InfallibleCallFailure<'a>
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