Struct bitcoin_netmsg::Inv
source · pub struct Inv {
pub ty: u32,
pub hash: u256,
}
Expand description
| inv message data |
Fields§
§ty: u32
§hash: u256
Implementations§
source§impl Inv
impl Inv
pub fn new(type_in: u32, hash_in: &u256) -> Self
pub fn get_command(&self) -> String
pub fn to_string(&self) -> String
pub fn is_msg_blk(&self) -> bool
pub fn is_msg_wtx(&self) -> bool
pub fn is_msg_filtered_blk(&self) -> bool
pub fn is_msg_cmpct_blk(&self) -> bool
pub fn is_msg_witness_blk(&self) -> bool
sourcepub fn is_gen_tx_msg(&self) -> bool
pub fn is_gen_tx_msg(&self) -> bool
| Combined-message helper methods |
pub fn is_gen_blk_msg(&self) -> bool
Trait Implementations§
source§impl<'de> Deserialize<'de> for Inv
impl<'de> Deserialize<'de> for Inv
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for Inv
impl Ord for Inv
source§impl PartialOrd<Inv> for Inv
impl PartialOrd<Inv> for Inv
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 Eq for Inv
Auto Trait Implementations§
impl RefUnwindSafe for Inv
impl Send for Inv
impl Sync for Inv
impl Unpin for Inv
impl UnwindSafe for Inv
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