pub struct Reject {
pub message: String,
pub code: u8,
pub reason: String,
pub data: Vec<u8>,
}
Expand description
Rejected message
Fields§
§message: String
Type of message rejected
code: u8
Error code
reason: String
Reason for rejection
data: Vec<u8>
Optional extra data that may be present for some rejections
Currently this is only a 32-byte hash of the block or transaction if applicable.
Implementations§
Trait Implementations§
Source§impl Serializable<Reject> for Reject
impl Serializable<Reject> for Reject
impl Eq for Reject
impl StructuralPartialEq for Reject
Auto Trait Implementations§
impl Freeze for Reject
impl RefUnwindSafe for Reject
impl Send for Reject
impl Sync for Reject
impl Unpin for Reject
impl UnwindSafe for Reject
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