Enum bitcoin_addrman::AddrManFormat
source · #[repr(u8)]
pub enum AddrManFormat {
V0_HISTORICAL,
V1_DETERMINISTIC,
V2_ASMAP,
V3_BIP155,
}
Expand description
| Serialization versions. |
Variants§
V0_HISTORICAL
| historic format, before commit e6b343d88 |
V1_DETERMINISTIC
| for pre-asmap files |
V2_ASMAP
| for files including asmap version |
V3_BIP155
| same as V2_ASMAP plus addresses are | in BIP155 format |
Trait Implementations§
source§impl Clone for AddrManFormat
impl Clone for AddrManFormat
source§fn clone(&self) -> AddrManFormat
fn clone(&self) -> AddrManFormat
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 AddrManFormat
impl Debug for AddrManFormat
source§impl Default for AddrManFormat
impl Default for AddrManFormat
source§impl Ord for AddrManFormat
impl Ord for AddrManFormat
source§fn cmp(&self, other: &AddrManFormat) -> Ordering
fn cmp(&self, other: &AddrManFormat) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<AddrManFormat> for AddrManFormat
impl PartialEq<AddrManFormat> for AddrManFormat
source§fn eq(&self, other: &AddrManFormat) -> bool
fn eq(&self, other: &AddrManFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<AddrManFormat> for AddrManFormat
impl PartialOrd<AddrManFormat> for AddrManFormat
source§fn partial_cmp(&self, other: &AddrManFormat) -> Option<Ordering>
fn partial_cmp(&self, other: &AddrManFormat) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for AddrManFormat
impl Eq for AddrManFormat
impl StructuralEq for AddrManFormat
impl StructuralPartialEq for AddrManFormat
Auto Trait Implementations§
impl RefUnwindSafe for AddrManFormat
impl Send for AddrManFormat
impl Sync for AddrManFormat
impl Unpin for AddrManFormat
impl UnwindSafe for AddrManFormat
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