Struct bitcoin::network::constants::ServiceFlags [−][src]
pub struct ServiceFlags(_);
Expand description
Flags to indicate which network services a node supports.
Implementations
NONE means no services supported.
NETWORK means that the node is capable of serving the complete block chain. It is currently set by all Bitcoin Core non pruned nodes, and is unset by SPV clients or other light clients.
GETUTXO means the node is capable of responding to the getutxo protocol request. Bitcoin Core does not support this but a patch set called Bitcoin XT does. See BIP 64 for details on how this is implemented.
BLOOM means the node is capable and willing to handle bloom-filtered connections. Bitcoin Core nodes used to support this by default, without advertising this bit, but no longer do as of protocol version 70011 (= NO_BLOOM_VERSION)
WITNESS indicates that a node can be asked for blocks and transactions including witness data.
COMPACT_FILTERS means the node will service basic block filter requests. See BIP157 and BIP158 for details on how this is implemented.
NETWORK_LIMITED means the same as NODE_NETWORK with the limitation of only serving the last 288 (2 day) blocks. See BIP159 for details on how this is implemented.
Add ServiceFlags together.
Returns itself.
Remove ServiceFlags from this.
Returns itself.
Check whether ServiceFlags are included in this one.
Get the integer representation of this ServiceFlags.
Trait Implementations
Performs the |=
operation. Read more
Performs the ^=
operation. Read more
Decode an object with a well-defined format
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for ServiceFlags
impl Send for ServiceFlags
impl Sync for ServiceFlags
impl Unpin for ServiceFlags
impl UnwindSafe for ServiceFlags
Blanket Implementations
Mutably borrows from an owned value. Read more