#[repr(u8)]
pub enum ProtocolMessageTypes {
Show 89 variants Handshake = 1, HarvesterHandshake = 3, NewProofOfSpace = 5, RequestSignatures = 6, RespondSignatures = 7, NewSignagePoint = 8, DeclareProofOfSpace = 9, RequestSignedValues = 10, SignedValues = 11, FarmingInfo = 12, NewPeakTimelord = 13, NewUnfinishedBlockTimelord = 14, NewInfusionPointVdf = 15, NewSignagePointVdf = 16, NewEndOfSubSlotVdf = 17, RequestCompactProofOfTime = 18, RespondCompactProofOfTime = 19, NewPeak = 20, NewTransaction = 21, RequestTransaction = 22, RespondTransaction = 23, RequestProofOfWeight = 24, RespondProofOfWeight = 25, RequestBlock = 26, RespondBlock = 27, RejectBlock = 28, RequestBlocks = 29, RespondBlocks = 30, RejectBlocks = 31, NewUnfinishedBlock = 32, RequestUnfinishedBlock = 33, RespondUnfinishedBlock = 34, NewSignagePointOrEndOfSubSlot = 35, RequestSignagePointOrEndOfSubSlot = 36, RespondSignagePoint = 37, RespondEndOfSubSlot = 38, RequestMempoolTransactions = 39, RequestCompactVDF = 40, RespondCompactVDF = 41, NewCompactVDF = 42, RequestPeers = 43, RespondPeers = 44, NoneResponse = 91, RequestPuzzleSolution = 45, RespondPuzzleSolution = 46, RejectPuzzleSolution = 47, SendTransaction = 48, TransactionAck = 49, NewPeakWallet = 50, RequestBlockHeader = 51, RespondBlockHeader = 52, RejectHeaderRequest = 53, RequestRemovals = 54, RespondRemovals = 55, RejectRemovalsRequest = 56, RequestAdditions = 57, RespondAdditions = 58, RejectAdditionsRequest = 59, RequestHeaderBlocks = 60, RejectHeaderBlocks = 61, RespondHeaderBlocks = 62, RequestPeersIntroducer = 63, RespondPeersIntroducer = 64, FarmNewBlock = 65, NewSignagePointHarvester = 66, RequestPlots = 67, RespondPlots = 68, PlotSyncStart = 78, PlotSyncLoaded = 79, PlotSyncRemoved = 80, PlotSyncInvalid = 81, PlotSyncKeysMissing = 82, PlotSyncDuplicates = 83, PlotSyncDone = 84, PlotSyncResponse = 85, CoinStateUpdate = 69, RegisterForPhUpdates = 70, RespondToPhUpdates = 71, RegisterForCoinUpdates = 72, RespondToCoinUpdates = 73, RequestChildren = 74, RespondChildren = 75, RequestSesInfo = 76, RespondSesInfo = 77, RequestBlockHeaders = 86, RejectBlockHeaders = 87, RespondBlockHeaders = 88, RequestFeeEstimates = 89, RespondFeeEstimates = 90,
}

Variants§

§

Handshake = 1

§

HarvesterHandshake = 3

§

NewProofOfSpace = 5

§

RequestSignatures = 6

§

RespondSignatures = 7

§

NewSignagePoint = 8

§

DeclareProofOfSpace = 9

§

RequestSignedValues = 10

§

SignedValues = 11

§

FarmingInfo = 12

§

NewPeakTimelord = 13

§

NewUnfinishedBlockTimelord = 14

§

NewInfusionPointVdf = 15

§

NewSignagePointVdf = 16

§

NewEndOfSubSlotVdf = 17

§

RequestCompactProofOfTime = 18

§

RespondCompactProofOfTime = 19

§

NewPeak = 20

§

NewTransaction = 21

§

RequestTransaction = 22

§

RespondTransaction = 23

§

RequestProofOfWeight = 24

§

RespondProofOfWeight = 25

§

RequestBlock = 26

§

RespondBlock = 27

§

RejectBlock = 28

§

RequestBlocks = 29

§

RespondBlocks = 30

§

RejectBlocks = 31

§

NewUnfinishedBlock = 32

§

RequestUnfinishedBlock = 33

§

RespondUnfinishedBlock = 34

§

NewSignagePointOrEndOfSubSlot = 35

§

RequestSignagePointOrEndOfSubSlot = 36

§

RespondSignagePoint = 37

§

RespondEndOfSubSlot = 38

§

RequestMempoolTransactions = 39

§

RequestCompactVDF = 40

§

RespondCompactVDF = 41

§

NewCompactVDF = 42

§

RequestPeers = 43

§

RespondPeers = 44

§

NoneResponse = 91

§

RequestPuzzleSolution = 45

§

RespondPuzzleSolution = 46

§

RejectPuzzleSolution = 47

§

SendTransaction = 48

§

TransactionAck = 49

§

NewPeakWallet = 50

§

RequestBlockHeader = 51

§

RespondBlockHeader = 52

§

RejectHeaderRequest = 53

§

RequestRemovals = 54

§

RespondRemovals = 55

§

RejectRemovalsRequest = 56

§

RequestAdditions = 57

§

RespondAdditions = 58

§

RejectAdditionsRequest = 59

§

RequestHeaderBlocks = 60

§

RejectHeaderBlocks = 61

§

RespondHeaderBlocks = 62

§

RequestPeersIntroducer = 63

§

RespondPeersIntroducer = 64

§

FarmNewBlock = 65

§

NewSignagePointHarvester = 66

§

RequestPlots = 67

§

RespondPlots = 68

§

PlotSyncStart = 78

§

PlotSyncLoaded = 79

§

PlotSyncRemoved = 80

§

PlotSyncInvalid = 81

§

PlotSyncKeysMissing = 82

§

PlotSyncDuplicates = 83

§

PlotSyncDone = 84

§

PlotSyncResponse = 85

§

CoinStateUpdate = 69

§

RegisterForPhUpdates = 70

§

RespondToPhUpdates = 71

§

RegisterForCoinUpdates = 72

§

RespondToCoinUpdates = 73

§

RequestChildren = 74

§

RespondChildren = 75

§

RequestSesInfo = 76

§

RespondSesInfo = 77

§

RequestBlockHeaders = 86

§

RejectBlockHeaders = 87

§

RespondBlockHeaders = 88

§

RequestFeeEstimates = 89

§

RespondFeeEstimates = 90

Trait Implementations§

source§

impl Clone for ProtocolMessageTypes

source§

fn clone(&self) -> ProtocolMessageTypes

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ProtocolMessageTypes

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Hash for ProtocolMessageTypes

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for ProtocolMessageTypes

source§

fn eq(&self, other: &ProtocolMessageTypes) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Streamable for ProtocolMessageTypes

source§

fn update_digest(&self, digest: &mut Sha256)

source§

fn stream(&self, out: &mut Vec<u8>) -> Result<()>

source§

fn parse<const TRUSTED: bool>(input: &mut Cursor<&[u8]>) -> Result<Self>

source§

fn to_bytes(&self) -> Result<Vec<u8>, Error>

source§

fn from_bytes(bytes: &[u8]) -> Result<Self, Error>
where Self: Sized,

source§

fn from_bytes_unchecked(bytes: &[u8]) -> Result<Self, Error>
where Self: Sized,

source§

fn hash(&self) -> [u8; 32]

source§

impl Copy for ProtocolMessageTypes

source§

impl Eq for ProtocolMessageTypes

source§

impl StructuralPartialEq for ProtocolMessageTypes

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V