pub struct Reject {
pub message: CommandString,
pub ccode: RejectReason,
pub reason: Cow<'static, str>,
pub hash: Hash,
}
Available on crate feature
std
only.Expand description
Reject message might be sent by peers rejecting one of our messages
Fields
message: CommandString
message type rejected
ccode: RejectReason
reason of rejection as code
reason: Cow<'static, str>
reason of rejectection
hash: Hash
reference to rejected item
Trait Implementations
impl Eq for Reject
impl StructuralEq for Reject
impl StructuralPartialEq for Reject
Auto Trait Implementations
impl RefUnwindSafe for Reject
impl Send for Reject
impl Sync for Reject
impl Unpin for Reject
impl UnwindSafe for Reject
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more