pub(crate) struct ErrorFrame<'a> {
pub(crate) frame_type: &'static str,
pub(crate) message: &'a str,
}Expand description
Direct-mode error frame sent when an export request cannot be served.
Serializes as {"type":"error","message":...}.
Fields§
§frame_type: &'static strAlways EXPORT_FRAME_ERROR; serialized as type.
message: &'a strHuman-readable error text.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ErrorFrame<'a>
impl<'a> RefUnwindSafe for ErrorFrame<'a>
impl<'a> Send for ErrorFrame<'a>
impl<'a> Sync for ErrorFrame<'a>
impl<'a> Unpin for ErrorFrame<'a>
impl<'a> UnsafeUnpin for ErrorFrame<'a>
impl<'a> UnwindSafe for ErrorFrame<'a>
Blanket Implementations§
impl<T> Allocation for T
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