pub enum ReadStatus {
Ok,
Invalid,
Failed,
CheckBlockFailed,
}
Variants§
Ok
Invalid
| Invalid object, peer is sending bogus | crap |
Failed
| Failed to process object |
CheckBlockFailed
| Used only by FillBlock to indicate a | failure in CheckBlock. |
Trait Implementations§
source§impl Clone for ReadStatus
impl Clone for ReadStatus
source§fn clone(&self) -> ReadStatus
fn clone(&self) -> ReadStatus
Returns a copy of the value. Read more
1.0.0 · 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 ReadStatus
impl Debug for ReadStatus
source§impl PartialEq<ReadStatus> for ReadStatus
impl PartialEq<ReadStatus> for ReadStatus
source§fn eq(&self, other: &ReadStatus) -> bool
fn eq(&self, other: &ReadStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ReadStatus
impl StructuralEq for ReadStatus
impl StructuralPartialEq for ReadStatus
Auto Trait Implementations§
impl RefUnwindSafe for ReadStatus
impl Send for ReadStatus
impl Sync for ReadStatus
impl Unpin for ReadStatus
impl UnwindSafe for ReadStatus
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more