diff --git a/help.html b/help.html index cb4610ff9b7..8beead09c74 100644 --- a/help.html +++ b/help.html @@ -1 +1 @@ -Rustdoc help

Rustdoc help

Back
\ No newline at end of file +Rustdoc help

Rustdoc help

Back
\ No newline at end of file diff --git a/implementors/core/clone/trait.Clone.js b/implementors/core/clone/trait.Clone.js index 3959aa9c87a..c0f3f3d528c 100644 --- a/implementors/core/clone/trait.Clone.js +++ b/implementors/core/clone/trait.Clone.js @@ -16,7 +16,7 @@ "massa_hash":[["impl Clone for Hash"],["impl Clone for HashSerializer"],["impl Clone for HashXofDeserializer"],["impl Clone for HashDeserializer"],["impl Clone for HashXofSerializer"],["impl<const SIZE: usize> Clone for HashXof<SIZE>"],["impl Clone for MassaHashError"]], "massa_ledger_exports":[["impl Clone for KeyTypeDeserializer"],["impl Clone for LedgerEntry"],["impl<T: Clone + Default + Applicable<V>, V: Clone + Applicable<V> + Clone> Clone for SetUpdateOrDelete<T, V>"],["impl Clone for KeyType"],["impl Clone for LedgerConfig"],["impl Clone for KeyTypeSerializer"],["impl Clone for KeySerializer"],["impl<T: Clone + Clone> Clone for SetOrDelete<T>"],["impl Clone for LedgerChanges"],["impl Clone for KeyTypeId"],["impl Clone for LedgerEntryUpdate"],["impl Clone for Key"],["impl<T: Clone + Clone> Clone for SetOrKeep<T>"],["impl Clone for KeyDeserializer"]], "massa_metrics":[["impl Clone for MassaMetrics"]], -"massa_models":[["impl Clone for Denunciation"],["impl Clone for BitVecDeserializer"],["impl Clone for RollCompensation"],["impl Clone for ExecutionStats"],["impl Clone for AddressSerializer"],["impl<T: Clone> Clone for StreamingStep<T>"],["impl Clone for FilledBlock"],["impl Clone for DenunciationPrecursor"],["impl Clone for BlockHeaderDenunciation"],["impl Clone for Amount"],["impl Clone for ActiveBlock"],["impl Clone for OperationPrefixIdV0"],["impl Clone for BlockId"],["impl<T: Clone, ST> Clone for VecSerializer<T, ST>where\n ST: Serializer<T> + Clone,"],["impl Clone for ModelsError"],["impl Clone for CompactConfig"],["impl Clone for LedgerChange"],["impl Clone for AddressDeserializer"],["impl Clone for Bytecode"],["impl Clone for OperationSearchResult"],["impl Clone for Block"],["impl Clone for EndorsementDenunciationPrecursor"],["impl Clone for LedgerData"],["impl Clone for UserAddressV0"],["impl Clone for NodeId"],["impl Clone for IpAddrSerializer"],["impl Clone for ExecutionAddressCycleInfo"],["impl Clone for NetworkStats"],["impl Clone for OperationsSerializer"],["impl Clone for EventFilter"],["impl Clone for Address"],["impl Clone for LedgerChanges"],["impl<T: Clone, ST> Clone for VecDeserializer<T, ST>where\n ST: Deserializer<T> + Clone + Clone,"],["impl Clone for BlockIdDeserializer"],["impl Clone for OperationType"],["impl Clone for Endorsement"],["impl Clone for ConsensusStats"],["impl Clone for RollUpdate"],["impl Clone for AmountSerializer"],["impl Clone for BlockIdV0"],["impl Clone for BlockHeaderDenunciationPrecursor"],["impl Clone for SCAddress"],["impl Clone for IndexedSlot"],["impl Clone for OperationId"],["impl Clone for OperationPrefixId"],["impl Clone for EventExecutionContext"],["impl Clone for Version"],["impl Clone for DenunciationIndex"],["impl Clone for AmountDeserializer"],["impl Clone for EndorsementDenunciation"],["impl Clone for VecU8Deserializer"],["impl Clone for VersionDeserializer"],["impl Clone for Operation"],["impl<T: Clone, ST> Clone for PreHashSetDeserializer<T, ST>where\n ST: Deserializer<T> + Clone + Clone,"],["impl Clone for SCAddressV0"],["impl Clone for BlockHeader"],["impl<SL, L> Clone for StringSerializer<SL, L>where\n SL: Serializer<L> + Clone,\n L: TryFrom<usize> + Clone,"],["impl Clone for BlockIdSerializer"],["impl Clone for UserAddress"],["impl Clone for OperationPrefixIdsSerializer"],["impl Clone for OperationSearchResultBlockStatus"],["impl Clone for RollCounts"],["impl<T, ID> Clone for SecureShare<T, ID>where\n T: Display + SecureShareContent + Clone,\n ID: Id + Clone,"],["impl Clone for OperationIdV0"],["impl Clone for IpAddrDeserializer"],["impl Clone for SlotDeserializer"],["impl Clone for EndorsementIdV0"],["impl Clone for SlotSerializer"],["impl Clone for Slot"],["impl Clone for DenunciationIndexDeserializer"],["impl Clone for VersionSerializer"],["impl Clone for DenunciationIndexSerializer"],["impl Clone for StakersCycleProductionStats"],["impl Clone for OperationIdSerializer"],["impl Clone for EndorsementId"],["impl Clone for OperationIdDeserializer"],["impl Clone for Clique"],["impl Clone for BitVecSerializer"],["impl Clone for OperationSearchResultStatus"],["impl<T: Clone, ST> Clone for PreHashSetSerializer<T, ST>where\n ST: Serializer<T> + Clone,"],["impl Clone for VecU8Serializer"],["impl Clone for SecureShareSerializer"],["impl<DL, L> Clone for StringDeserializer<DL, L>where\n DL: Deserializer<L> + Clone,\n L: TryFrom<usize> + ToUsize + Clone,"],["impl Clone for PubkeySig"],["impl Clone for EndorsementSerializer"],["impl Clone for RollUpdates"],["impl Clone for SCOutputEvent"]], +"massa_models":[["impl Clone for Denunciation"],["impl Clone for BitVecDeserializer"],["impl Clone for RollCompensation"],["impl Clone for ExecutionStats"],["impl Clone for AddressSerializer"],["impl<T: Clone> Clone for StreamingStep<T>"],["impl Clone for FilledBlock"],["impl Clone for DenunciationPrecursor"],["impl Clone for BlockHeaderDenunciation"],["impl Clone for Amount"],["impl Clone for ActiveBlock"],["impl Clone for OperationPrefixIdV0"],["impl Clone for BlockId"],["impl<T: Clone, ST> Clone for VecSerializer<T, ST>where\n ST: Serializer<T> + Clone,"],["impl Clone for ModelsError"],["impl Clone for CompactConfig"],["impl Clone for LedgerChange"],["impl Clone for AddressDeserializer"],["impl Clone for Bytecode"],["impl Clone for OperationSearchResult"],["impl Clone for Block"],["impl Clone for EndorsementDenunciationPrecursor"],["impl Clone for LedgerData"],["impl Clone for UserAddressV0"],["impl Clone for NodeId"],["impl Clone for IpAddrSerializer"],["impl Clone for ExecutionAddressCycleInfo"],["impl Clone for NetworkStats"],["impl Clone for OperationsSerializer"],["impl Clone for EventFilter"],["impl Clone for Address"],["impl Clone for LedgerChanges"],["impl<T: Clone, ST> Clone for VecDeserializer<T, ST>where\n ST: Deserializer<T> + Clone + Clone,"],["impl Clone for BlockIdDeserializer"],["impl Clone for OperationType"],["impl Clone for Endorsement"],["impl Clone for ConsensusStats"],["impl Clone for RollUpdate"],["impl Clone for AmountSerializer"],["impl Clone for BlockIdV0"],["impl Clone for BlockHeaderDenunciationPrecursor"],["impl Clone for SCAddress"],["impl Clone for IndexedSlot"],["impl Clone for OperationId"],["impl Clone for OperationPrefixId"],["impl Clone for EventExecutionContext"],["impl Clone for Version"],["impl Clone for DenunciationIndex"],["impl Clone for AmountDeserializer"],["impl Clone for EndorsementDenunciation"],["impl Clone for VecU8Deserializer"],["impl Clone for VersionDeserializer"],["impl Clone for Operation"],["impl<T: Clone, ST> Clone for PreHashSetDeserializer<T, ST>where\n ST: Deserializer<T> + Clone + Clone,"],["impl Clone for SCAddressV0"],["impl Clone for BlockHeader"],["impl<SL, L> Clone for StringSerializer<SL, L>where\n SL: Serializer<L> + Clone,\n L: TryFrom<usize> + Clone,"],["impl Clone for BlockIdSerializer"],["impl Clone for UserAddress"],["impl Clone for OperationPrefixIdsSerializer"],["impl Clone for OperationSearchResultBlockStatus"],["impl Clone for RollCounts"],["impl<T, ID> Clone for SecureShare<T, ID>where\n T: Display + SecureShareContent + Clone,\n ID: Id + Clone,"],["impl Clone for OperationIdV0"],["impl Clone for IpAddrDeserializer"],["impl Clone for SlotDeserializer"],["impl Clone for EndorsementIdV0"],["impl Clone for SlotSerializer"],["impl Clone for Slot"],["impl Clone for DenunciationIndexDeserializer"],["impl Clone for VersionSerializer"],["impl Clone for DenunciationIndexSerializer"],["impl Clone for StakersCycleProductionStats"],["impl Clone for OperationIdSerializer"],["impl Clone for EndorsementId"],["impl Clone for OperationIdDeserializer"],["impl Clone for Clique"],["impl Clone for BitVecSerializer"],["impl Clone for OperationSearchResultStatus"],["impl<T: Clone, ST> Clone for PreHashSetSerializer<T, ST>where\n ST: Serializer<T> + Clone,"],["impl Clone for VecU8Serializer"],["impl Clone for SecureShareSerializer"],["impl<DL, L> Clone for StringDeserializer<DL, L>where\n DL: Deserializer<L> + Clone,\n L: TryFrom<usize> + ToUsize + Clone,"],["impl Clone for PubkeySig"],["impl Clone for EndorsementSerializer"],["impl Clone for RollUpdates"],["impl Clone for SCOutputEvent"]], "massa_module_cache":[["impl Clone for ModuleInfo"],["impl Clone for CacheError"]], "massa_node":[["impl Clone for ExecutionSettings"],["impl Clone for SelectionSettings"],["impl Clone for PoolSettings"],["impl Clone for Settings"],["impl Clone for GrpcApiSettings"],["impl Clone for GrpcSettings"],["impl Clone for BootstrapSettings"],["impl Clone for LedgerSettings"],["impl Clone for LoggingSettings"],["impl Clone for MetricsSettings"],["impl Clone for ConsensusSettings"],["impl Clone for NetworkSettings"],["impl Clone for ProtocolSettings"],["impl Clone for APISettings"],["impl Clone for BlockDumpSettings"],["impl Clone for FactorySettings"],["impl Clone for VersioningSettings"]], "massa_pool_exports":[["impl Clone for PoolChannels"],["impl Clone for PoolConfig"],["impl Clone for Box<dyn PoolController>"],["impl Clone for PoolBroadcasts"]], diff --git a/implementors/core/convert/trait.From.js b/implementors/core/convert/trait.From.js index db7181f97ab..5922911f40f 100644 --- a/implementors/core/convert/trait.From.js +++ b/implementors/core/convert/trait.From.js @@ -1,14 +1,14 @@ (function() {var implementors = { "massa_api_exports":[["impl From<MassaHashError> for ApiError"],["impl From<ModelsError> for ApiError"],["impl From<WalletError> for ApiError"],["impl<T> From<PagedVec<T>> for PagedVecV2<T>"],["impl From<TimeError> for ApiError"],["impl From<ApiError> for ErrorObjectOwned"],["impl From<FactoryError> for ApiError"]], "massa_async_pool":[["impl From<AsyncMessage> for AsyncMessageInfo"],["impl From<AsyncMessageTrigger> for AsyncMessageTrigger"],["impl From<AsyncMessageUpdate> for AsyncMessageUpdate"],["impl From<AsyncMessage> for AsyncMessage"]], -"massa_bootstrap":[["impl From<TimeError> for BootstrapError"],["impl From<SerializeError> for BootstrapError"],["impl From<ProtocolError> for BootstrapError"],["impl From<&BootstrapConfig> for BootstrapSrvBindCfg"],["impl From<ConsensusError> for BootstrapError"],["impl From<MessageClientTypeId> for u32"],["impl From<MessageServerTypeId> for u32"],["impl From<PosError> for BootstrapError"],["impl From<&BootstrapClientConfig> for BootstrapServerMessageDeserializerArgs"],["impl From<ModelsError> for BootstrapError"],["impl From<&BootstrapServerMessageDeserializerArgs> for BlockDeserializerArgs"],["impl From<Error> for BootstrapError"],["impl From<MassaHashError> for BootstrapError"],["impl From<FinalStateError> for BootstrapError"],["impl From<&BootstrapConfig> for BootstrapClientConfig"],["impl From<MassaSignatureError> for BootstrapError"]], +"massa_bootstrap":[["impl From<TimeError> for BootstrapError"],["impl From<SerializeError> for BootstrapError"],["impl From<ProtocolError> for BootstrapError"],["impl From<&BootstrapConfig> for BootstrapSrvBindCfg"],["impl From<ConsensusError> for BootstrapError"],["impl From<MessageClientTypeId> for u32"],["impl From<MessageServerTypeId> for u32"],["impl From<PosError> for BootstrapError"],["impl From<&BootstrapClientConfig> for BootstrapServerMessageDeserializerArgs"],["impl From<ModelsError> for BootstrapError"],["impl From<&BootstrapServerMessageDeserializerArgs> for BlockDeserializerArgs"],["impl From<Error> for BootstrapError"],["impl From<MassaHashError> for BootstrapError"],["impl From<FinalStateError> for BootstrapError"],["impl From<&BootstrapConfig> for BootstrapClientConfig"],["impl From<MassaSignatureError> for BootstrapError"]], "massa_cipher":[["impl From<Utf8Error> for CipherError"]], -"massa_consensus_exports":[["impl From<ExecutionError> for ConsensusError"],["impl From<Error> for LedgerError"],["impl From<TryFromSliceError> for LedgerError"],["impl From<Error> for LedgerError"],["impl From<ModelsError> for ConsensusError"],["impl From<ProtocolError> for ConsensusError"],["impl From<ModelsError> for LedgerError"],["impl From<Error> for ConsensusError"],["impl From<LedgerError> for ConsensusError"],["impl From<Error> for ConsensusError"],["impl From<&BlockStatus> for BlockStatusId"],["impl From<TimeError> for ConsensusError"]], +"massa_consensus_exports":[["impl From<ExecutionError> for ConsensusError"],["impl From<Error> for LedgerError"],["impl From<TryFromSliceError> for LedgerError"],["impl From<Error> for LedgerError"],["impl From<ModelsError> for ConsensusError"],["impl From<ProtocolError> for ConsensusError"],["impl From<ModelsError> for LedgerError"],["impl From<Error> for ConsensusError"],["impl From<LedgerError> for ConsensusError"],["impl From<Error> for ConsensusError"],["impl From<&BlockStatus> for BlockStatusId"],["impl From<TimeError> for ConsensusError"]], "massa_execution_exports":[["impl From<ExecutionQueryError> for Error"],["impl From<SlotExecutionOutput> for SlotExecutionOutput"],["impl From<ExecutionOutput> for ExecutionOutput"],["impl From<FactoryError> for ExecutionError"],["impl From<CacheError> for ExecutionError"],["impl From<MassaHashError> for ExecutionError"],["impl From<ModelsError> for ExecutionError"]], "massa_final_state":[["impl From<IsConsistentWithShutdownPeriodError> for FinalStateError"],["impl From<ExtendFromDbError> for FinalStateError"],["impl From<StateChanges> for StateChanges"]], -"massa_grpc":[["impl From<GrpcError> for Status"],["impl From<MassaSignatureError> for GrpcError"],["impl From<WalletError> for GrpcError"],["impl From<TimeError> for GrpcError"],["impl From<ModelsError> for GrpcError"],["impl From<ExecutionError> for GrpcError"],["impl From<MassaHashError> for GrpcError"],["impl From<FactoryError> for GrpcError"],["impl From<SlotDraw> for SlotDraw"],["impl From<Error> for GrpcError"],["impl From<ConsensusError> for GrpcError"],["impl From<ProtocolError> for GrpcError"],["impl From<EndorsementDraw> for EndorsementDraw"]], +"massa_grpc":[["impl From<GrpcError> for Status"],["impl From<MassaSignatureError> for GrpcError"],["impl From<WalletError> for GrpcError"],["impl From<TimeError> for GrpcError"],["impl From<ModelsError> for GrpcError"],["impl From<ExecutionError> for GrpcError"],["impl From<MassaHashError> for GrpcError"],["impl From<FactoryError> for GrpcError"],["impl From<SlotDraw> for SlotDraw"],["impl From<Error> for GrpcError"],["impl From<ConsensusError> for GrpcError"],["impl From<ProtocolError> for GrpcError"],["impl From<EndorsementDraw> for EndorsementDraw"]], "massa_ledger_exports":[["impl From<LedgerEntry> for LedgerEntry"],["impl From<LedgerEntryUpdate> for LedgerEntryUpdate"],["impl From<KeyTypeId> for u8"]], -"massa_models":[["impl From<Block> for Block"],["impl From<&OperationPrefixId> for Vec<u8>"],["impl From<MassaSignatureError> for ModelsError"],["impl From<SerializeError> for ModelsError"],["impl From<&DenunciationIndex> for DenunciationIndexTypeId"],["impl From<DenunciationIndexTypeId> for u32"],["impl From<SCOutputEvent> for ScExecutionEvent"],["impl From<&[u8; 17]> for OperationPrefixId"],["impl From<NetworkStats> for NetworkStats"],["impl From<TimeError> for ModelsError"],["impl From<FilledBlock> for FilledBlock"],["impl From<BlockHeader> for BlockHeader"],["impl From<OperationType> for OpType"],["impl From<IndexedSlot> for IndexedSlot"],["impl From<Endorsement> for Endorsement"],["impl From<&Denunciation> for DenunciationTypeId"],["impl From<EventExecutionContext> for ScExecutionEventContext"],["impl From<CompactConfig> for CompactConfig"],["impl From<Amount> for NativeAmount"],["impl From<OperationType> for OperationType"],["impl From<&SecureShare<Endorsement, EndorsementId>> for DenunciationPrecursor"],["impl From<DenunciationIndex> for DenunciationIndex"],["impl From<SecureShare<Endorsement, EndorsementId>> for SignedEndorsement"],["impl From<&SecureShare<BlockHeader, BlockId>> for DenunciationPrecursor"],["impl From<OperationTypeId> for u32"],["impl From<SecureShare<BlockHeader, BlockId>> for SignedBlockHeader"],["impl From<ExecutionStats> for ExecutionStats"],["impl From<MassaHashError> for ModelsError"],["impl From<ConsensusStats> for ConsensusStats"],["impl From<&DenunciationPrecursor> for DenunciationIndex"],["impl From<&Denunciation> for DenunciationIndex"],["impl From<SecureShare<Block, BlockId>> for SignedBlock"],["impl From<&'static str> for ModelsError"],["impl From<SerializeError> for DenunciationError"],["impl From<BlockGraphStatus> for i32"],["impl From<Denunciation> for Denunciation"],["impl From<DenunciationTypeId> for u32"],["impl From<SecureShare<Operation, OperationId>> for SignedOperation"],["impl From<Operation> for Operation"],["impl From<Err<Error<&[u8]>>> for ModelsError"],["impl From<Slot> for Slot"],["impl From<MassaSignatureError> for DenunciationError"],["impl From<Slot> for Slot"]], +"massa_models":[["impl From<Block> for Block"],["impl From<&OperationPrefixId> for Vec<u8>"],["impl From<MassaSignatureError> for ModelsError"],["impl From<SerializeError> for ModelsError"],["impl From<&DenunciationIndex> for DenunciationIndexTypeId"],["impl From<DenunciationIndexTypeId> for u32"],["impl From<SCOutputEvent> for ScExecutionEvent"],["impl From<&[u8; 17]> for OperationPrefixId"],["impl From<NetworkStats> for NetworkStats"],["impl From<TimeError> for ModelsError"],["impl From<FilledBlock> for FilledBlock"],["impl From<BlockHeader> for BlockHeader"],["impl From<OperationType> for OpType"],["impl From<IndexedSlot> for IndexedSlot"],["impl From<Endorsement> for Endorsement"],["impl From<&Denunciation> for DenunciationTypeId"],["impl From<EventExecutionContext> for ScExecutionEventContext"],["impl From<CompactConfig> for CompactConfig"],["impl From<Amount> for NativeAmount"],["impl From<OperationType> for OperationType"],["impl From<&SecureShare<Endorsement, EndorsementId>> for DenunciationPrecursor"],["impl From<DenunciationIndex> for DenunciationIndex"],["impl From<SecureShare<Endorsement, EndorsementId>> for SignedEndorsement"],["impl From<&SecureShare<BlockHeader, BlockId>> for DenunciationPrecursor"],["impl From<OperationTypeId> for u32"],["impl From<SecureShare<BlockHeader, BlockId>> for SignedBlockHeader"],["impl From<ExecutionStats> for ExecutionStats"],["impl From<MassaHashError> for ModelsError"],["impl From<ConsensusStats> for ConsensusStats"],["impl From<&DenunciationPrecursor> for DenunciationIndex"],["impl From<&Denunciation> for DenunciationIndex"],["impl From<SecureShare<Block, BlockId>> for SignedBlock"],["impl From<&'static str> for ModelsError"],["impl From<SerializeError> for DenunciationError"],["impl From<BlockGraphStatus> for i32"],["impl From<Denunciation> for Denunciation"],["impl From<DenunciationTypeId> for u32"],["impl From<SecureShare<Operation, OperationId>> for SignedOperation"],["impl From<Operation> for Operation"],["impl From<Err<Error<&[u8]>>> for ModelsError"],["impl From<Slot> for Slot"],["impl From<MassaSignatureError> for DenunciationError"],["impl From<Slot> for Slot"]], "massa_module_cache":[["impl From<Error> for CacheError"],["impl From<ModuleMetadataId> for u64"]], "massa_protocol_exports":[["impl From<PosError> for ProtocolError"],["impl From<ModelsError> for ProtocolError"],["impl From<Error> for ProtocolError"],["impl From<Error> for ProtocolError"],["impl From<FactoryError> for ProtocolError"],["impl From<TimeError> for ProtocolError"]], "massa_protocol_worker":[["impl From<MessageTypeId> for u64"],["impl From<&EndorsementMessage> for MessageTypeId"],["impl From<MessageTypeId> for u64"],["impl From<MessageTypeId> for u64"],["impl From<BlockMessage> for Message"],["impl From<&Message> for MessageTypeId"],["impl From<PeerManagementMessage> for Message"],["impl From<&OperationMessage> for MessageTypeId"],["impl From<EndorsementMessage> for Message"],["impl From<OperationMessage> for Message"],["impl From<MessageTypeId> for u64"],["impl From<MessageTypeId> for u64"],["impl From<&BlockMessage> for MessageTypeId"],["impl From<BlockInfoType> for u64"],["impl From<&PeerManagementMessage> for MessageTypeId"]], diff --git a/implementors/core/fmt/trait.Debug.js b/implementors/core/fmt/trait.Debug.js index 1bdeabb63c6..438de838743 100644 --- a/implementors/core/fmt/trait.Debug.js +++ b/implementors/core/fmt/trait.Debug.js @@ -8,7 +8,7 @@ "massa_consensus_exports":[["impl Debug for ConsensusConfig"],["impl Debug for BootstrapableGraph"],["impl Debug for LedgerError"],["impl Debug for ExportCompiledBlock"],["impl Debug for ConsensusEvent"],["impl Debug for InternalError"],["impl Debug for ExportBlockStatus"],["impl Debug for BlockGraphExport"],["impl Debug for DiscardReason"],["impl Debug for ExportActiveBlock"],["impl Debug for ConsensusError"],["impl Debug for HeaderOrBlock"],["impl Debug for BlockStatusId"],["impl Debug for StorageOrBlock"],["impl Debug for BlockStatus"],["impl Debug for Status"]], "massa_consensus_worker":[["impl Debug for EndorsementsCheckOutcome"],["impl Debug for BlocksState"],["impl Debug for HeaderCheckOutcome"]], "massa_db_exports":[["impl Debug for MassaDBError"],["impl<ChangeID: Debug + PartialOrd + Ord + PartialEq + Eq + Clone + Debug> Debug for StreamBatch<ChangeID>"],["impl Debug for MassaDBConfig"]], -"massa_db_worker":[["impl<ChangeID, ChangeIDSerializer, ChangeIDDeserializer> Debug for RawMassaDB<ChangeID, ChangeIDSerializer, ChangeIDDeserializer>where\n ChangeID: PartialOrd + Ord + PartialEq + Eq + Clone + Debug,\n ChangeIDSerializer: Serializer<ChangeID>,\n ChangeIDDeserializer: Deserializer<ChangeID>,"]], +"massa_db_worker":[["impl<ChangeID, ChangeIDSerializer, ChangeIDDeserializer> Debug for RawMassaDB<ChangeID, ChangeIDSerializer, ChangeIDDeserializer>where\n ChangeID: PartialOrd + Ord + PartialEq + Eq + Clone + Debug,\n ChangeIDSerializer: Serializer<ChangeID>,\n ChangeIDDeserializer: Deserializer<ChangeID>,"]], "massa_executed_ops":[["impl Debug for ExecutedOpsConfig"],["impl Debug for ExecutedDenunciationsConfig"]], "massa_execution_exports":[["impl Debug for ExecutionBlockMetadata"],["impl Debug for ExecutionOutput"],["impl Debug for ReadOnlyExecutionTarget"],["impl Debug for ReadOnlyExecutionRequest"],["impl Debug for SlotExecutionOutput"],["impl Debug for ReadOnlyCallRequest"],["impl Debug for ExecutionQueryError"],["impl Debug for ExecutionAddressInfo"],["impl Debug for ExecutedBlockInfo"],["impl Debug for ExecutionStackElement"],["impl Debug for ExecutionError"],["impl Debug for ExecutionConfig"],["impl Debug for EventStore"],["impl Debug for StorageCostsConstants"],["impl Debug for ReadOnlyExecutionOutput"]], "massa_execution_worker":[["impl<T: Debug, R: Debug> Debug for RequestQueue<T, R>"],["impl Debug for SlotInfo"],["impl Debug for DenunciationResult"],["impl<T: Debug, R: Debug> Debug for RequestWithResponseSender<T, R>"],["impl Debug for SlotIndexPosition"]], diff --git a/implementors/massa_protocol_exports/controller_trait/trait.ProtocolController.js b/implementors/massa_protocol_exports/controller_trait/trait.ProtocolController.js index eb6dca8c96b..92b5260c2ab 100644 --- a/implementors/massa_protocol_exports/controller_trait/trait.ProtocolController.js +++ b/implementors/massa_protocol_exports/controller_trait/trait.ProtocolController.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"massa_protocol_worker":[["impl ProtocolController for ProtocolControllerImpl"]] +"massa_protocol_worker":[["impl ProtocolController for ProtocolControllerImpl"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/massa_protocol_exports/controller_trait/trait.ProtocolManager.js b/implementors/massa_protocol_exports/controller_trait/trait.ProtocolManager.js index 319b5df1595..70740c1d7d1 100644 --- a/implementors/massa_protocol_exports/controller_trait/trait.ProtocolManager.js +++ b/implementors/massa_protocol_exports/controller_trait/trait.ProtocolManager.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"massa_protocol_worker":[["impl ProtocolManager for ProtocolManagerImpl"]] +"massa_protocol_worker":[["impl ProtocolManager for ProtocolManagerImpl"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/massa_serialization/trait.Deserializer.js b/implementors/massa_serialization/trait.Deserializer.js index 06feefced05..a9364a344cd 100644 --- a/implementors/massa_serialization/trait.Deserializer.js +++ b/implementors/massa_serialization/trait.Deserializer.js @@ -1,18 +1,18 @@ (function() {var implementors = { -"massa_async_pool":[["impl Deserializer<BTreeMap<(Reverse<Ratio<u64>>, Slot, u64), AsyncMessage, Global>> for AsyncPoolDeserializer"],["impl Deserializer<AsyncPoolChanges> for AsyncPoolChangesDeserializer"],["impl Deserializer<(Reverse<Ratio<u64>>, Slot, u64)> for AsyncMessageIdDeserializer"],["impl Deserializer<AsyncMessage> for AsyncMessageDeserializer"],["impl Deserializer<AsyncMessageTrigger> for AsyncMessageTriggerDeserializer"],["impl Deserializer<AsyncMessageUpdate> for AsyncMessageUpdateDeserializer"]], -"massa_bootstrap":[["impl Deserializer<BootstrapClientMessage> for BootstrapClientMessageDeserializer"],["impl Deserializer<BootstrapServerMessage> for BootstrapServerMessageDeserializer"]], -"massa_consensus_exports":[["impl Deserializer<ExportActiveBlock> for ExportActiveBlockDeserializer"],["impl Deserializer<BootstrapableGraph> for BootstrapableGraphDeserializer"]], -"massa_executed_ops":[["impl Deserializer<HashSet<DenunciationIndex, RandomState>> for ExecutedDenunciationsChangesDeserializer"],["impl Deserializer<HashMap<OperationId, (bool, Slot), BuildHasherDefault<HashMapper<OperationId>>>> for ExecutedOpsChangesDeserializer"]], -"massa_final_state":[["impl Deserializer<StateChanges> for StateChangesDeserializer"]], +"massa_async_pool":[["impl Deserializer<BTreeMap<(Reverse<Ratio<u64>>, Slot, u64), AsyncMessage, Global>> for AsyncPoolDeserializer"],["impl Deserializer<AsyncPoolChanges> for AsyncPoolChangesDeserializer"],["impl Deserializer<(Reverse<Ratio<u64>>, Slot, u64)> for AsyncMessageIdDeserializer"],["impl Deserializer<AsyncMessage> for AsyncMessageDeserializer"],["impl Deserializer<AsyncMessageTrigger> for AsyncMessageTriggerDeserializer"],["impl Deserializer<AsyncMessageUpdate> for AsyncMessageUpdateDeserializer"]], +"massa_bootstrap":[["impl Deserializer<BootstrapClientMessage> for BootstrapClientMessageDeserializer"],["impl Deserializer<BootstrapServerMessage> for BootstrapServerMessageDeserializer"]], +"massa_consensus_exports":[["impl Deserializer<ExportActiveBlock> for ExportActiveBlockDeserializer"],["impl Deserializer<BootstrapableGraph> for BootstrapableGraphDeserializer"]], +"massa_executed_ops":[["impl Deserializer<HashSet<DenunciationIndex, RandomState>> for ExecutedDenunciationsChangesDeserializer"],["impl Deserializer<HashMap<OperationId, (bool, Slot), BuildHasherDefault<HashMapper<OperationId>>>> for ExecutedOpsChangesDeserializer"]], +"massa_final_state":[["impl Deserializer<StateChanges> for StateChangesDeserializer"]], "massa_hash":[["impl<const SIZE: usize> Deserializer<HashXof<SIZE>> for HashXofDeserializer"],["impl Deserializer<Hash> for HashDeserializer"]], -"massa_ledger_exports":[["impl<T: Clone, DT: Deserializer<T>> Deserializer<SetOrKeep<T>> for SetOrKeepDeserializer<T, DT>"],["impl Deserializer<KeyType> for KeyTypeDeserializer"],["impl Deserializer<BTreeMap<Vec<u8, Global>, SetOrDelete<Vec<u8, Global>>, Global>> for DatastoreUpdateDeserializer"],["impl<T: Default + Applicable<V>, V: Applicable<V> + Clone, DT: Deserializer<T>, DV: Deserializer<V>> Deserializer<SetUpdateOrDelete<T, V>> for SetUpdateOrDeleteDeserializer<T, V, DT, DV>"],["impl Deserializer<LedgerEntryUpdate> for LedgerEntryUpdateDeserializer"],["impl Deserializer<LedgerEntry> for LedgerEntryDeserializer"],["impl<T: Clone, DT: Deserializer<T>> Deserializer<SetOrDelete<T>> for SetOrDeleteDeserializer<T, DT>"],["impl Deserializer<Key> for KeyDeserializer"],["impl Deserializer<LedgerChanges> for LedgerChangesDeserializer"]], -"massa_models":[["impl Deserializer<BlockHeader> for BlockHeaderDeserializer"],["impl Deserializer<IpAddr> for IpAddrDeserializer"],["impl Deserializer<OperationId> for OperationIdDeserializer"],["impl Deserializer<EndorsementId> for EndorsementIdDeserializer"],["impl<T, ID, Deser> Deserializer<SecureShare<T, ID>> for SecureShareDeserializer<T, Deser>where\n T: Display + SecureShareContent,\n ID: Id,\n Deser: Deserializer<T>,"],["impl Deserializer<Amount> for AmountDeserializer"],["impl Deserializer<Address> for AddressDeserializer"],["impl Deserializer<Clique> for CliqueDeserializer"],["impl Deserializer<DenunciationIndex> for DenunciationIndexDeserializer"],["impl Deserializer<BTreeMap<Vec<u8, Global>, Vec<u8, Global>, Global>> for DatastoreDeserializer"],["impl Deserializer<Operation> for OperationDeserializer"],["impl Deserializer<BlockIdV0> for BlockIdDeserializer"],["impl Deserializer<LedgerChanges> for LedgerChangesDeserializer"],["impl Deserializer<UserAddressV0> for AddressDeserializer"],["impl Deserializer<OperationPrefixId> for OperationPrefixIdDeserializer"],["impl Deserializer<Denunciation> for DenunciationDeserializer"],["impl Deserializer<Endorsement> for EndorsementDeserializer"],["impl Deserializer<LedgerData> for LedgerDataDeserializer"],["impl Deserializer<HashSet<OperationPrefixId, BuildHasherDefault<HashMapper<OperationPrefixId>>>> for OperationPrefixIdsDeserializer"],["impl Deserializer<RollUpdate> for RollUpdateDeserializer"],["impl Deserializer<EndorsementIdV0> for EndorsementIdDeserializer"],["impl<T, ST> Deserializer<StreamingStep<T>> for StreamingStepDeserializer<T, ST>where\n ST: Deserializer<T>,\n T: Clone,"],["impl Deserializer<UserAddress> for AddressDeserializer"],["impl Deserializer<Bytecode> for BytecodeDeserializer"],["impl Deserializer<SCAddressV0> for AddressDeserializer"],["impl Deserializer<OperationType> for OperationTypeDeserializer"],["impl Deserializer<SCAddress> for AddressDeserializer"],["impl Deserializer<Vec<u8, Global>> for VecU8Deserializer"],["impl Deserializer<Version> for VersionDeserializer"],["impl Deserializer<Vec<OperationId, Global>> for OperationIdsDeserializer"],["impl Deserializer<BlockId> for BlockIdDeserializer"],["impl<T, ST> Deserializer<HashSet<T, BuildHasherDefault<HashMapper<T>>>> for PreHashSetDeserializer<T, ST>where\n ST: Deserializer<T> + Clone,\n T: PreHashed + Eq + Hash,"],["impl Deserializer<BlockHeaderDenunciation> for BlockHeaderDenunciationDeserializer"],["impl Deserializer<Slot> for SlotDeserializer"],["impl Deserializer<Endorsement> for EndorsementDeserializerLW"],["impl<DL, L> Deserializer<String> for StringDeserializer<DL, L>where\n DL: Deserializer<L>,\n L: TryFrom<usize> + ToUsize,"],["impl Deserializer<Block> for BlockDeserializer"],["impl Deserializer<EndorsementDenunciation> for EndorsementDenunciationDeserializer"],["impl Deserializer<OperationIdV0> for OperationIdDeserializer"],["impl Deserializer<Vec<SecureShare<Operation, OperationId>, Global>> for OperationsDeserializer"],["impl Deserializer<BitVec<u8, Lsb0>> for BitVecDeserializer"],["impl Deserializer<LedgerChange> for LedgerChangeDeserializer"],["impl<T, ST> Deserializer<Vec<T, Global>> for VecDeserializer<T, ST>where\n ST: Deserializer<T> + Clone,"]], +"massa_ledger_exports":[["impl<T: Clone, DT: Deserializer<T>> Deserializer<SetOrKeep<T>> for SetOrKeepDeserializer<T, DT>"],["impl Deserializer<KeyType> for KeyTypeDeserializer"],["impl Deserializer<BTreeMap<Vec<u8, Global>, SetOrDelete<Vec<u8, Global>>, Global>> for DatastoreUpdateDeserializer"],["impl<T: Default + Applicable<V>, V: Applicable<V> + Clone, DT: Deserializer<T>, DV: Deserializer<V>> Deserializer<SetUpdateOrDelete<T, V>> for SetUpdateOrDeleteDeserializer<T, V, DT, DV>"],["impl Deserializer<LedgerEntryUpdate> for LedgerEntryUpdateDeserializer"],["impl Deserializer<LedgerEntry> for LedgerEntryDeserializer"],["impl<T: Clone, DT: Deserializer<T>> Deserializer<SetOrDelete<T>> for SetOrDeleteDeserializer<T, DT>"],["impl Deserializer<Key> for KeyDeserializer"],["impl Deserializer<LedgerChanges> for LedgerChangesDeserializer"]], +"massa_models":[["impl Deserializer<BlockHeader> for BlockHeaderDeserializer"],["impl Deserializer<IpAddr> for IpAddrDeserializer"],["impl Deserializer<OperationId> for OperationIdDeserializer"],["impl Deserializer<EndorsementId> for EndorsementIdDeserializer"],["impl<T, ID, Deser> Deserializer<SecureShare<T, ID>> for SecureShareDeserializer<T, Deser>where\n T: Display + SecureShareContent,\n ID: Id,\n Deser: Deserializer<T>,"],["impl Deserializer<Amount> for AmountDeserializer"],["impl Deserializer<Address> for AddressDeserializer"],["impl Deserializer<Clique> for CliqueDeserializer"],["impl Deserializer<DenunciationIndex> for DenunciationIndexDeserializer"],["impl Deserializer<BTreeMap<Vec<u8, Global>, Vec<u8, Global>, Global>> for DatastoreDeserializer"],["impl Deserializer<Operation> for OperationDeserializer"],["impl Deserializer<BlockIdV0> for BlockIdDeserializer"],["impl Deserializer<LedgerChanges> for LedgerChangesDeserializer"],["impl Deserializer<UserAddressV0> for AddressDeserializer"],["impl Deserializer<OperationPrefixId> for OperationPrefixIdDeserializer"],["impl Deserializer<Denunciation> for DenunciationDeserializer"],["impl Deserializer<Endorsement> for EndorsementDeserializer"],["impl Deserializer<LedgerData> for LedgerDataDeserializer"],["impl Deserializer<HashSet<OperationPrefixId, BuildHasherDefault<HashMapper<OperationPrefixId>>>> for OperationPrefixIdsDeserializer"],["impl Deserializer<RollUpdate> for RollUpdateDeserializer"],["impl Deserializer<EndorsementIdV0> for EndorsementIdDeserializer"],["impl<T, ST> Deserializer<StreamingStep<T>> for StreamingStepDeserializer<T, ST>where\n ST: Deserializer<T>,\n T: Clone,"],["impl Deserializer<UserAddress> for AddressDeserializer"],["impl Deserializer<Bytecode> for BytecodeDeserializer"],["impl Deserializer<SCAddressV0> for AddressDeserializer"],["impl Deserializer<OperationType> for OperationTypeDeserializer"],["impl Deserializer<SCAddress> for AddressDeserializer"],["impl Deserializer<Vec<u8, Global>> for VecU8Deserializer"],["impl Deserializer<Version> for VersionDeserializer"],["impl Deserializer<Vec<OperationId, Global>> for OperationIdsDeserializer"],["impl Deserializer<BlockId> for BlockIdDeserializer"],["impl<T, ST> Deserializer<HashSet<T, BuildHasherDefault<HashMapper<T>>>> for PreHashSetDeserializer<T, ST>where\n ST: Deserializer<T> + Clone,\n T: PreHashed + Eq + Hash,"],["impl Deserializer<BlockHeaderDenunciation> for BlockHeaderDenunciationDeserializer"],["impl Deserializer<Slot> for SlotDeserializer"],["impl Deserializer<Endorsement> for EndorsementDeserializerLW"],["impl<DL, L> Deserializer<String> for StringDeserializer<DL, L>where\n DL: Deserializer<L>,\n L: TryFrom<usize> + ToUsize,"],["impl Deserializer<Block> for BlockDeserializer"],["impl Deserializer<EndorsementDenunciation> for EndorsementDenunciationDeserializer"],["impl Deserializer<OperationIdV0> for OperationIdDeserializer"],["impl Deserializer<Vec<SecureShare<Operation, OperationId>, Global>> for OperationsDeserializer"],["impl Deserializer<BitVec<u8, Lsb0>> for BitVecDeserializer"],["impl Deserializer<LedgerChange> for LedgerChangeDeserializer"],["impl<T, ST> Deserializer<Vec<T, Global>> for VecDeserializer<T, ST>where\n ST: Deserializer<T> + Clone,"]], "massa_module_cache":[["impl Deserializer<ModuleMetadata> for ModuleMetadataDeserializer"]], -"massa_pos_exports":[["impl Deserializer<CycleInfo> for CycleInfoDeserializer"],["impl Deserializer<Vec<(Address, u64), Global>> for RollsDeserializer"],["impl Deserializer<PoSChanges> for PoSChangesDeserializer"],["impl Deserializer<HashMap<Address, ProductionStats, BuildHasherDefault<HashMapper<Address>>>> for ProductionStatsDeserializer"],["impl Deserializer<Vec<CycleInfo, Global>> for CycleHistoryDeserializer"],["impl Deserializer<HashMap<Address, Amount, BuildHasherDefault<HashMapper<Address>>>> for CreditsDeserializer"],["impl Deserializer<DeferredCredits> for DeferredCreditsDeserializer"]], -"massa_protocol_exports":[["impl Deserializer<PeerId> for PeerIdDeserializer"],["impl Deserializer<BootstrapPeers> for BootstrapPeersDeserializer"]], -"massa_protocol_worker":[["impl Deserializer<EndorsementMessage> for EndorsementMessageDeserializer"],["impl Deserializer<Announcement> for AnnouncementDeserializer"],["impl Deserializer<BlockMessage> for BlockMessageDeserializer"],["impl Deserializer<PeerManagementMessage> for PeerManagementMessageDeserializer"],["impl Deserializer<OperationMessage> for OperationMessageDeserializer"]], +"massa_pos_exports":[["impl Deserializer<CycleInfo> for CycleInfoDeserializer"],["impl Deserializer<Vec<(Address, u64), Global>> for RollsDeserializer"],["impl Deserializer<PoSChanges> for PoSChangesDeserializer"],["impl Deserializer<HashMap<Address, ProductionStats, BuildHasherDefault<HashMapper<Address>>>> for ProductionStatsDeserializer"],["impl Deserializer<Vec<CycleInfo, Global>> for CycleHistoryDeserializer"],["impl Deserializer<HashMap<Address, Amount, BuildHasherDefault<HashMapper<Address>>>> for CreditsDeserializer"],["impl Deserializer<DeferredCredits> for DeferredCreditsDeserializer"]], +"massa_protocol_exports":[["impl Deserializer<PeerId> for PeerIdDeserializer"],["impl Deserializer<BootstrapPeers> for BootstrapPeersDeserializer"]], +"massa_protocol_worker":[["impl Deserializer<EndorsementMessage> for EndorsementMessageDeserializer"],["impl Deserializer<Announcement> for AnnouncementDeserializer"],["impl Deserializer<BlockMessage> for BlockMessageDeserializer"],["impl Deserializer<PeerManagementMessage> for PeerManagementMessageDeserializer"],["impl Deserializer<OperationMessage> for OperationMessageDeserializer"]], "massa_serialization":[], "massa_signature":[["impl Deserializer<Signature> for SignatureDeserializer"],["impl Deserializer<PublicKey> for PublicKeyDeserializer"]], "massa_time":[["impl Deserializer<MassaTime> for MassaTimeDeserializer"]], -"massa_versioning":[["impl Deserializer<AdvanceLW> for AdvanceLWDeserializer"],["impl Deserializer<ComponentState> for ComponentStateDeserializer"],["impl Deserializer<MipInfo> for MipInfoDeserializer"],["impl Deserializer<MipState> for MipStateDeserializer"],["impl Deserializer<MipStoreRaw> for MipStoreRawDeserializer"],["impl Deserializer<MipStoreStats> for MipStoreStatsDeserializer"]] +"massa_versioning":[["impl Deserializer<AdvanceLW> for AdvanceLWDeserializer"],["impl Deserializer<ComponentState> for ComponentStateDeserializer"],["impl Deserializer<MipInfo> for MipInfoDeserializer"],["impl Deserializer<MipState> for MipStateDeserializer"],["impl Deserializer<MipStoreRaw> for MipStoreRawDeserializer"],["impl Deserializer<MipStoreStats> for MipStoreStatsDeserializer"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/massa_serialization/trait.Serializer.js b/implementors/massa_serialization/trait.Serializer.js index a943c9b302d..5741c211d60 100644 --- a/implementors/massa_serialization/trait.Serializer.js +++ b/implementors/massa_serialization/trait.Serializer.js @@ -1,17 +1,17 @@ (function() {var implementors = { -"massa_async_pool":[["impl Serializer<AsyncPoolChanges> for AsyncPoolChangesSerializer"],["impl Serializer<(Reverse<Ratio<u64>>, Slot, u64)> for AsyncMessageIdSerializer"],["impl Serializer<AsyncMessageUpdate> for AsyncMessageUpdateSerializer"],["impl Serializer<AsyncMessageTrigger> for AsyncMessageTriggerSerializer"],["impl Serializer<AsyncMessage> for AsyncMessageSerializer"],["impl Serializer<BTreeMap<(Reverse<Ratio<u64>>, Slot, u64), AsyncMessage, Global>> for AsyncPoolSerializer"]], -"massa_bootstrap":[["impl Serializer<BootstrapServerMessage> for BootstrapServerMessageSerializer"],["impl Serializer<BootstrapClientMessage> for BootstrapClientMessageSerializer"]], -"massa_consensus_exports":[["impl Serializer<ExportActiveBlock> for ExportActiveBlockSerializer"],["impl Serializer<BootstrapableGraph> for BootstrapableGraphSerializer"]], -"massa_executed_ops":[["impl Serializer<HashSet<DenunciationIndex, RandomState>> for ExecutedDenunciationsChangesSerializer"],["impl Serializer<HashMap<OperationId, (bool, Slot), BuildHasherDefault<HashMapper<OperationId>>>> for ExecutedOpsChangesSerializer"]], -"massa_final_state":[["impl Serializer<StateChanges> for StateChangesSerializer"]], +"massa_async_pool":[["impl Serializer<AsyncPoolChanges> for AsyncPoolChangesSerializer"],["impl Serializer<(Reverse<Ratio<u64>>, Slot, u64)> for AsyncMessageIdSerializer"],["impl Serializer<AsyncMessageUpdate> for AsyncMessageUpdateSerializer"],["impl Serializer<AsyncMessageTrigger> for AsyncMessageTriggerSerializer"],["impl Serializer<AsyncMessage> for AsyncMessageSerializer"],["impl Serializer<BTreeMap<(Reverse<Ratio<u64>>, Slot, u64), AsyncMessage, Global>> for AsyncPoolSerializer"]], +"massa_bootstrap":[["impl Serializer<BootstrapServerMessage> for BootstrapServerMessageSerializer"],["impl Serializer<BootstrapClientMessage> for BootstrapClientMessageSerializer"]], +"massa_consensus_exports":[["impl Serializer<ExportActiveBlock> for ExportActiveBlockSerializer"],["impl Serializer<BootstrapableGraph> for BootstrapableGraphSerializer"]], +"massa_executed_ops":[["impl Serializer<HashSet<DenunciationIndex, RandomState>> for ExecutedDenunciationsChangesSerializer"],["impl Serializer<HashMap<OperationId, (bool, Slot), BuildHasherDefault<HashMapper<OperationId>>>> for ExecutedOpsChangesSerializer"]], +"massa_final_state":[["impl Serializer<StateChanges> for StateChangesSerializer"]], "massa_hash":[["impl Serializer<Hash> for HashSerializer"],["impl<const SIZE: usize> Serializer<HashXof<SIZE>> for HashXofSerializer"]], -"massa_ledger_exports":[["impl<T: Clone, ST: Serializer<T>> Serializer<SetOrDelete<T>> for SetOrDeleteSerializer<T, ST>"],["impl Serializer<KeyType> for KeyTypeSerializer"],["impl Serializer<BTreeMap<Vec<u8, Global>, SetOrDelete<Vec<u8, Global>>, Global>> for DatastoreUpdateSerializer"],["impl<T: Clone, ST: Serializer<T>> Serializer<SetOrKeep<T>> for SetOrKeepSerializer<T, ST>"],["impl Serializer<LedgerEntryUpdate> for LedgerEntryUpdateSerializer"],["impl Serializer<Key> for KeySerializer"],["impl Serializer<LedgerChanges> for LedgerChangesSerializer"],["impl Serializer<LedgerEntry> for LedgerEntrySerializer"],["impl<T: Default + Applicable<V>, V: Applicable<V> + Clone, ST: Serializer<T>, SV: Serializer<V>> Serializer<SetUpdateOrDelete<T, V>> for SetUpdateOrDeleteSerializer<T, V, ST, SV>"]], -"massa_models":[["impl Serializer<EndorsementDenunciation> for EndorsementDenunciationSerializer"],["impl Serializer<Bytecode> for BytecodeSerializer"],["impl Serializer<HashSet<OperationPrefixId, BuildHasherDefault<HashMapper<OperationPrefixId>>>> for OperationPrefixIdsSerializer"],["impl Serializer<Vec<u8, Global>> for VecU8Serializer"],["impl Serializer<SCAddress> for AddressSerializer"],["impl Serializer<RollUpdate> for RollUpdateSerializer"],["impl<T, ST> Serializer<Vec<T, Global>> for VecSerializer<T, ST>where\n ST: Serializer<T>,"],["impl Serializer<Endorsement> for EndorsementSerializer"],["impl<T, ST> Serializer<StreamingStep<T>> for StreamingStepSerializer<T, ST>where\n ST: Serializer<T>,\n T: Debug,"],["impl Serializer<BitVec<u8, Lsb0>> for BitVecSerializer"],["impl<SL, L> Serializer<String> for StringSerializer<SL, L>where\n SL: Serializer<L>,\n L: TryFrom<usize>,"],["impl Serializer<Denunciation> for DenunciationSerializer"],["impl Serializer<Slot> for SlotSerializer"],["impl Serializer<Clique> for CliqueSerializer"],["impl<T, ID> Serializer<SecureShare<T, ID>> for SecureShareSerializerwhere\n T: Display + SecureShareContent,\n ID: Id,"],["impl Serializer<SCAddressV0> for AddressSerializer"],["impl Serializer<Address> for AddressSerializer"],["impl Serializer<OperationIdV0> for OperationIdSerializer"],["impl Serializer<LedgerChange> for LedgerChangeSerializer"],["impl<T, ST> Serializer<HashSet<T, BuildHasherDefault<HashMapper<T>>>> for PreHashSetSerializer<T, ST>where\n ST: Serializer<T>,\n T: PreHashed,"],["impl Serializer<Vec<OperationId, Global>> for OperationIdsSerializer"],["impl Serializer<Block> for BlockSerializer"],["impl Serializer<OperationType> for OperationTypeSerializer"],["impl Serializer<LedgerData> for LedgerDataSerializer"],["impl Serializer<UserAddressV0> for AddressSerializer"],["impl Serializer<Operation> for OperationSerializer"],["impl Serializer<UserAddress> for AddressSerializer"],["impl Serializer<BlockId> for BlockIdSerializer"],["impl Serializer<DenunciationIndex> for DenunciationIndexSerializer"],["impl Serializer<Vec<SecureShare<Operation, OperationId>, Global>> for OperationsSerializer"],["impl Serializer<BlockHeaderDenunciation> for BlockHeaderDenunciationSerializer"],["impl Serializer<BlockHeader> for BlockHeaderSerializer"],["impl Serializer<Version> for VersionSerializer"],["impl Serializer<LedgerChanges> for LedgerChangesSerializer"],["impl Serializer<Amount> for AmountSerializer"],["impl Serializer<OperationId> for OperationIdSerializer"],["impl Serializer<Endorsement> for EndorsementSerializerLW"],["impl Serializer<BlockIdV0> for BlockIdSerializer"],["impl Serializer<IpAddr> for IpAddrSerializer"],["impl Serializer<BTreeMap<Vec<u8, Global>, Vec<u8, Global>, Global>> for DatastoreSerializer"]], +"massa_ledger_exports":[["impl<T: Clone, ST: Serializer<T>> Serializer<SetOrDelete<T>> for SetOrDeleteSerializer<T, ST>"],["impl Serializer<KeyType> for KeyTypeSerializer"],["impl Serializer<BTreeMap<Vec<u8, Global>, SetOrDelete<Vec<u8, Global>>, Global>> for DatastoreUpdateSerializer"],["impl<T: Clone, ST: Serializer<T>> Serializer<SetOrKeep<T>> for SetOrKeepSerializer<T, ST>"],["impl Serializer<LedgerEntryUpdate> for LedgerEntryUpdateSerializer"],["impl Serializer<Key> for KeySerializer"],["impl Serializer<LedgerChanges> for LedgerChangesSerializer"],["impl Serializer<LedgerEntry> for LedgerEntrySerializer"],["impl<T: Default + Applicable<V>, V: Applicable<V> + Clone, ST: Serializer<T>, SV: Serializer<V>> Serializer<SetUpdateOrDelete<T, V>> for SetUpdateOrDeleteSerializer<T, V, ST, SV>"]], +"massa_models":[["impl Serializer<EndorsementDenunciation> for EndorsementDenunciationSerializer"],["impl Serializer<Bytecode> for BytecodeSerializer"],["impl Serializer<HashSet<OperationPrefixId, BuildHasherDefault<HashMapper<OperationPrefixId>>>> for OperationPrefixIdsSerializer"],["impl Serializer<Vec<u8, Global>> for VecU8Serializer"],["impl Serializer<SCAddress> for AddressSerializer"],["impl Serializer<RollUpdate> for RollUpdateSerializer"],["impl<T, ST> Serializer<Vec<T, Global>> for VecSerializer<T, ST>where\n ST: Serializer<T>,"],["impl Serializer<Endorsement> for EndorsementSerializer"],["impl<T, ST> Serializer<StreamingStep<T>> for StreamingStepSerializer<T, ST>where\n ST: Serializer<T>,\n T: Debug,"],["impl Serializer<BitVec<u8, Lsb0>> for BitVecSerializer"],["impl<SL, L> Serializer<String> for StringSerializer<SL, L>where\n SL: Serializer<L>,\n L: TryFrom<usize>,"],["impl Serializer<Denunciation> for DenunciationSerializer"],["impl Serializer<Slot> for SlotSerializer"],["impl Serializer<Clique> for CliqueSerializer"],["impl<T, ID> Serializer<SecureShare<T, ID>> for SecureShareSerializerwhere\n T: Display + SecureShareContent,\n ID: Id,"],["impl Serializer<SCAddressV0> for AddressSerializer"],["impl Serializer<Address> for AddressSerializer"],["impl Serializer<OperationIdV0> for OperationIdSerializer"],["impl Serializer<LedgerChange> for LedgerChangeSerializer"],["impl<T, ST> Serializer<HashSet<T, BuildHasherDefault<HashMapper<T>>>> for PreHashSetSerializer<T, ST>where\n ST: Serializer<T>,\n T: PreHashed,"],["impl Serializer<Vec<OperationId, Global>> for OperationIdsSerializer"],["impl Serializer<Block> for BlockSerializer"],["impl Serializer<OperationType> for OperationTypeSerializer"],["impl Serializer<LedgerData> for LedgerDataSerializer"],["impl Serializer<UserAddressV0> for AddressSerializer"],["impl Serializer<Operation> for OperationSerializer"],["impl Serializer<UserAddress> for AddressSerializer"],["impl Serializer<BlockId> for BlockIdSerializer"],["impl Serializer<DenunciationIndex> for DenunciationIndexSerializer"],["impl Serializer<Vec<SecureShare<Operation, OperationId>, Global>> for OperationsSerializer"],["impl Serializer<BlockHeaderDenunciation> for BlockHeaderDenunciationSerializer"],["impl Serializer<BlockHeader> for BlockHeaderSerializer"],["impl Serializer<Version> for VersionSerializer"],["impl Serializer<LedgerChanges> for LedgerChangesSerializer"],["impl Serializer<Amount> for AmountSerializer"],["impl Serializer<OperationId> for OperationIdSerializer"],["impl Serializer<Endorsement> for EndorsementSerializerLW"],["impl Serializer<BlockIdV0> for BlockIdSerializer"],["impl Serializer<IpAddr> for IpAddrSerializer"],["impl Serializer<BTreeMap<Vec<u8, Global>, Vec<u8, Global>, Global>> for DatastoreSerializer"]], "massa_module_cache":[["impl Serializer<ModuleMetadata> for ModuleMetadataSerializer"]], -"massa_pos_exports":[["impl Serializer<CycleInfo> for CycleInfoSerializer"],["impl Serializer<DeferredCredits> for DeferredCreditsSerializer"],["impl Serializer<VecDeque<CycleInfo, Global>> for CycleHistorySerializer"],["impl Serializer<HashMap<Address, Amount, BuildHasherDefault<HashMapper<Address>>>> for CreditsSerializer"],["impl Serializer<PoSChanges> for PoSChangesSerializer"],["impl Serializer<HashMap<Address, ProductionStats, BuildHasherDefault<HashMapper<Address>>>> for ProductionStatsSerializer"]], -"massa_protocol_exports":[["impl Serializer<PeerId> for PeerIdSerializer"],["impl Serializer<BootstrapPeers> for BootstrapPeersSerializer"]], -"massa_protocol_worker":[["impl Serializer<BlockMessage> for BlockMessageSerializer"],["impl Serializer<Announcement> for AnnouncementSerializer"],["impl Serializer<EndorsementMessage> for EndorsementMessageSerializer"],["impl Serializer<PeerManagementMessage> for PeerManagementMessageSerializer"],["impl Serializer<OperationMessage> for OperationMessageSerializer"]], +"massa_pos_exports":[["impl Serializer<CycleInfo> for CycleInfoSerializer"],["impl Serializer<DeferredCredits> for DeferredCreditsSerializer"],["impl Serializer<VecDeque<CycleInfo, Global>> for CycleHistorySerializer"],["impl Serializer<HashMap<Address, Amount, BuildHasherDefault<HashMapper<Address>>>> for CreditsSerializer"],["impl Serializer<PoSChanges> for PoSChangesSerializer"],["impl Serializer<HashMap<Address, ProductionStats, BuildHasherDefault<HashMapper<Address>>>> for ProductionStatsSerializer"]], +"massa_protocol_exports":[["impl Serializer<PeerId> for PeerIdSerializer"],["impl Serializer<BootstrapPeers> for BootstrapPeersSerializer"]], +"massa_protocol_worker":[["impl Serializer<BlockMessage> for BlockMessageSerializer"],["impl Serializer<Announcement> for AnnouncementSerializer"],["impl Serializer<EndorsementMessage> for EndorsementMessageSerializer"],["impl Serializer<PeerManagementMessage> for PeerManagementMessageSerializer"],["impl Serializer<OperationMessage> for OperationMessageSerializer"]], "massa_serialization":[], "massa_time":[["impl Serializer<MassaTime> for MassaTimeSerializer"]], -"massa_versioning":[["impl Serializer<MipInfo> for MipInfoSerializer"],["impl Serializer<MipStoreStats> for MipStoreStatsSerializer"],["impl Serializer<MipState> for MipStateSerializer"],["impl Serializer<MipStoreRaw> for MipStoreRawSerializer"],["impl Serializer<ComponentState> for ComponentStateSerializer"],["impl Serializer<AdvanceLW> for AdvanceLWSerializer"]] +"massa_versioning":[["impl Serializer<MipInfo> for MipInfoSerializer"],["impl Serializer<MipStoreStats> for MipStoreStatsSerializer"],["impl Serializer<MipState> for MipStateSerializer"],["impl Serializer<MipStoreRaw> for MipStoreRawSerializer"],["impl Serializer<ComponentState> for ComponentStateSerializer"],["impl Serializer<AdvanceLW> for AdvanceLWSerializer"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/peernet/context/trait.Context.js b/implementors/peernet/context/trait.Context.js index ae44313c395..6dbf7d3640a 100644 --- a/implementors/peernet/context/trait.Context.js +++ b/implementors/peernet/context/trait.Context.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"massa_protocol_worker":[["impl Context<PeerId> for Context"]] +"massa_protocol_worker":[["impl Context<PeerId> for Context"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/peernet/messages/trait.MessagesHandler.js b/implementors/peernet/messages/trait.MessagesHandler.js index de0127db8c7..a7b89f0348e 100644 --- a/implementors/peernet/messages/trait.MessagesHandler.js +++ b/implementors/peernet/messages/trait.MessagesHandler.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"massa_protocol_worker":[["impl MessagesHandler<PeerId> for MessagesHandler"]] +"massa_protocol_worker":[["impl MessagesHandler<PeerId> for MessagesHandler"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/peernet/peer/trait.InitConnectionHandler.js b/implementors/peernet/peer/trait.InitConnectionHandler.js index 5217e8e2ff7..5de1ad48bdd 100644 --- a/implementors/peernet/peer/trait.InitConnectionHandler.js +++ b/implementors/peernet/peer/trait.InitConnectionHandler.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"massa_protocol_worker":[["impl InitConnectionHandler<PeerId, Context, MessagesHandler> for MassaHandshake"]] +"massa_protocol_worker":[["impl InitConnectionHandler<PeerId, Context, MessagesHandler> for MassaHandshake"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/massa_api/struct.API.html b/massa_api/struct.API.html index 566ac58808f..ed3b9922281 100644 --- a/massa_api/struct.API.html +++ b/massa_api/struct.API.html @@ -8,7 +8,7 @@ version: Version ) -> Self

generate a new massa API

source§

impl API<Private>

source

pub fn new( - protocol_controller: Box<dyn ProtocolController>, + protocol_controller: Box<dyn ProtocolController>, execution_controller: Box<dyn ExecutionController>, api_settings: APIConfig, stop_cv: Arc<(Mutex<bool>, Condvar)>, @@ -20,8 +20,8 @@ api_settings: APIConfig, selector_controller: Box<dyn SelectorController>, pool_command_sender: Box<dyn PoolController>, - protocol_controller: Box<dyn ProtocolController>, - protocol_config: ProtocolConfig, + protocol_controller: Box<dyn ProtocolController>, + protocol_config: ProtocolConfig, version: Version, node_id: NodeId, storage: Storage, diff --git a/massa_api/struct.Private.html b/massa_api/struct.Private.html index 683cb8e8f5c..b9791231a26 100644 --- a/massa_api/struct.Private.html +++ b/massa_api/struct.Private.html @@ -1,11 +1,11 @@ Private in massa_api - Rust

Struct massa_api::Private

source ·
pub struct Private {
-    pub protocol_controller: Box<dyn ProtocolController>,
+    pub protocol_controller: Box<dyn ProtocolController>,
     pub execution_controller: Box<dyn ExecutionController>,
     pub api_settings: APIConfig,
     pub stop_cv: Arc<(Mutex<bool>, Condvar)>,
     pub node_wallet: Arc<RwLock<Wallet>>,
 }
Expand description

Private API content

-

Fields§

§protocol_controller: Box<dyn ProtocolController>

link to the protocol component

+

Fields§

§protocol_controller: Box<dyn ProtocolController>

link to the protocol component

§execution_controller: Box<dyn ExecutionController>

link to the execution component

§api_settings: APIConfig

API settings

§stop_cv: Arc<(Mutex<bool>, Condvar)>

Mechanism by which to gracefully shut down. diff --git a/massa_api/struct.Public.html b/massa_api/struct.Public.html index ff9a890804e..30f7ada602d 100644 --- a/massa_api/struct.Public.html +++ b/massa_api/struct.Public.html @@ -3,10 +3,10 @@ pub execution_controller: Box<dyn ExecutionController>, pub selector_controller: Box<dyn SelectorController>, pub pool_command_sender: Box<dyn PoolController>, - pub protocol_controller: Box<dyn ProtocolController>, + pub protocol_controller: Box<dyn ProtocolController>, pub storage: Storage, pub api_settings: APIConfig, - pub protocol_config: ProtocolConfig, + pub protocol_config: ProtocolConfig, pub version: Version, pub node_id: NodeId, pub keypair_factory: KeyPairFactory, @@ -15,10 +15,10 @@

§execution_controller: Box<dyn ExecutionController>

link to the execution component

§selector_controller: Box<dyn SelectorController>

link to the selector component

§pool_command_sender: Box<dyn PoolController>

link to the pool component

-
§protocol_controller: Box<dyn ProtocolController>

link to the protocol component

+
§protocol_controller: Box<dyn ProtocolController>

link to the protocol component

§storage: Storage

Massa storage

§api_settings: APIConfig

API settings

-
§protocol_config: ProtocolConfig

Protocol config

+
§protocol_config: ProtocolConfig

Protocol config

§version: Version

node version (TODO remove, can be retrieved via an endpoint)

§node_id: NodeId

our node id

§keypair_factory: KeyPairFactory

keypair factory

diff --git a/massa_async_pool/changes/struct.AsyncPoolChanges.html b/massa_async_pool/changes/struct.AsyncPoolChanges.html index 3226cec135b..e1e622398d9 100644 --- a/massa_async_pool/changes/struct.AsyncPoolChanges.html +++ b/massa_async_pool/changes/struct.AsyncPoolChanges.html @@ -19,17 +19,17 @@

Trait Implementations§

source§

impl Applicable<AsyncPoolChanges> for AsyncPoolChanges

source§

fn apply(&mut self, changes: AsyncPoolChanges)

extends the current AsyncPoolChanges with another one

source§

impl Clone for AsyncPoolChanges

source§

fn clone(&self) -> AsyncPoolChanges

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 AsyncPoolChanges

source§

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

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

impl Default for AsyncPoolChanges

source§

fn default() -> AsyncPoolChanges

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for AsyncPoolChanges

source§

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 Deserializer<AsyncPoolChanges> for AsyncPoolChangesDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Deserializer<AsyncPoolChanges> for AsyncPoolChangesDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], AsyncPoolChanges, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl PartialEq<AsyncPoolChanges> for AsyncPoolChanges

source§

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

This method tests for self and other values to be equal, and is used +) -> IResult<&'a [u8], AsyncPoolChanges, E>
Deserialize a value T from a buffer of u8. Read more
source§

impl PartialEq<AsyncPoolChanges> for AsyncPoolChanges

source§

fn eq(&self, other: &AsyncPoolChanges) -> 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 Serialize for AsyncPoolChanges

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<AsyncPoolChanges> for AsyncPoolChangesSerializer

source§

fn serialize( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<AsyncPoolChanges> for AsyncPoolChangesSerializer

source§

fn serialize( &self, value: &AsyncPoolChanges, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Eq for AsyncPoolChanges

source§

impl StructuralEq for AsyncPoolChanges

source§

impl StructuralPartialEq for AsyncPoolChanges

Auto Trait Implementations§

§

impl RefUnwindSafe for AsyncPoolChanges

§

impl Send for AsyncPoolChanges

§

impl Sync for AsyncPoolChanges

§

impl Unpin for AsyncPoolChanges

§

impl UnwindSafe for AsyncPoolChanges

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Eq for AsyncPoolChanges

source§

impl StructuralEq for AsyncPoolChanges

source§

impl StructuralPartialEq for AsyncPoolChanges

Auto Trait Implementations§

§

impl RefUnwindSafe for AsyncPoolChanges

§

impl Send for AsyncPoolChanges

§

impl Sync for AsyncPoolChanges

§

impl Unpin for AsyncPoolChanges

§

impl UnwindSafe for AsyncPoolChanges

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_async_pool/changes/struct.AsyncPoolChangesDeserializer.html b/massa_async_pool/changes/struct.AsyncPoolChangesDeserializer.html index c65c6fefd62..fdc02d21951 100644 --- a/massa_async_pool/changes/struct.AsyncPoolChangesDeserializer.html +++ b/massa_async_pool/changes/struct.AsyncPoolChangesDeserializer.html @@ -1,17 +1,17 @@ AsyncPoolChangesDeserializer in massa_async_pool::changes - Rust
pub struct AsyncPoolChangesDeserializer {
-    async_pool_changes_length: U64VarIntDeserializer,
+    async_pool_changes_length: U64VarIntDeserializer,
     id_deserializer: AsyncMessageIdDeserializer,
     set_update_or_delete_message_deserializer: SetUpdateOrDeleteDeserializer<AsyncMessage, AsyncMessageUpdate, AsyncMessageDeserializer, AsyncMessageUpdateDeserializer>,
-}

Fields§

§async_pool_changes_length: U64VarIntDeserializer§id_deserializer: AsyncMessageIdDeserializer§set_update_or_delete_message_deserializer: SetUpdateOrDeleteDeserializer<AsyncMessage, AsyncMessageUpdate, AsyncMessageDeserializer, AsyncMessageUpdateDeserializer>

Implementations§

source§

impl AsyncPoolChangesDeserializer

source

pub fn new( +}

Fields§

§async_pool_changes_length: U64VarIntDeserializer§id_deserializer: AsyncMessageIdDeserializer§set_update_or_delete_message_deserializer: SetUpdateOrDeleteDeserializer<AsyncMessage, AsyncMessageUpdate, AsyncMessageDeserializer, AsyncMessageUpdateDeserializer>

Implementations§

source§

impl AsyncPoolChangesDeserializer

source

pub fn new( thread_count: u8, max_async_pool_changes: u64, max_function_length: u16, max_function_params_length: u64, max_key_length: u32 -) -> Self

Trait Implementations§

source§

impl Deserializer<AsyncPoolChanges> for AsyncPoolChangesDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +) -> Self

Trait Implementations§

source§

impl Deserializer<AsyncPoolChanges> for AsyncPoolChangesDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], AsyncPoolChanges, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> IResult<&'a [u8], AsyncPoolChanges, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_async_pool/changes/struct.AsyncPoolChangesSerializer.html b/massa_async_pool/changes/struct.AsyncPoolChangesSerializer.html index 94b4b8efcf1..27be47cf712 100644 --- a/massa_async_pool/changes/struct.AsyncPoolChangesSerializer.html +++ b/massa_async_pool/changes/struct.AsyncPoolChangesSerializer.html @@ -1,13 +1,13 @@ AsyncPoolChangesSerializer in massa_async_pool::changes - Rust
pub struct AsyncPoolChangesSerializer {
-    u64_serializer: U64VarIntSerializer,
+    u64_serializer: U64VarIntSerializer,
     id_serializer: AsyncMessageIdSerializer,
     set_update_or_delete_message_serializer: SetUpdateOrDeleteSerializer<AsyncMessage, AsyncMessageUpdate, AsyncMessageSerializer, AsyncMessageUpdateSerializer>,
 }
Expand description

AsyncPoolChanges serializer

-

Fields§

§u64_serializer: U64VarIntSerializer§id_serializer: AsyncMessageIdSerializer§set_update_or_delete_message_serializer: SetUpdateOrDeleteSerializer<AsyncMessage, AsyncMessageUpdate, AsyncMessageSerializer, AsyncMessageUpdateSerializer>

Implementations§

Trait Implementations§

source§

impl Default for AsyncPoolChangesSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<AsyncPoolChanges> for AsyncPoolChangesSerializer

Fields§

§u64_serializer: U64VarIntSerializer§id_serializer: AsyncMessageIdSerializer§set_update_or_delete_message_serializer: SetUpdateOrDeleteSerializer<AsyncMessage, AsyncMessageUpdate, AsyncMessageSerializer, AsyncMessageUpdateSerializer>

Implementations§

Trait Implementations§

source§

impl Default for AsyncPoolChangesSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<AsyncPoolChanges> for AsyncPoolChangesSerializer

source§

fn serialize( &self, value: &AsyncPoolChanges, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_async_pool/message/struct.AsyncMessage.html b/massa_async_pool/message/struct.AsyncMessage.html index f9422acf278..bc2f5bbef58 100644 --- a/massa_async_pool/message/struct.AsyncMessage.html +++ b/massa_async_pool/message/struct.AsyncMessage.html @@ -49,7 +49,7 @@

source

pub fn compute_id(&self) -> AsyncMessageId

Compute the ID of the message for use when choosing which operations to keep in priority (highest score) on pool overflow.

Trait Implementations§

source§

impl Applicable<AsyncMessageUpdate> for AsyncMessage

source§

fn apply(&mut self, update: AsyncMessageUpdate)

extends the AsyncMessage with a AsyncMessageUpdate

source§

impl Clone for AsyncMessage

source§

fn clone(&self) -> AsyncMessage

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 AsyncMessage

source§

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

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

impl Default for AsyncMessage

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for AsyncMessage

source§

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 Deserializer<AsyncMessage> for AsyncMessageDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Deserializer<AsyncMessage> for AsyncMessageDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], AsyncMessage, E>

Example
@@ -87,11 +87,11 @@
source§

impl From<AsyncMessage> for AsyncMessage

source§

fn from(value: AsyncMessage) -> Self

Converts to this type from the input type.
source§

impl From<AsyncMessage> for AsyncMessageInfo

source§

fn from(value: AsyncMessage) -> Self

Converts to this type from the input type.
source§

impl PartialEq<AsyncMessage> for AsyncMessage

source§

fn eq(&self, other: &AsyncMessage) -> 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 Serialize for AsyncMessage

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<AsyncMessage> for AsyncMessageSerializer

source§

fn serialize( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<AsyncMessage> for AsyncMessageSerializer

source§

fn serialize( &self, value: &AsyncMessage, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>

Example
use massa_async_pool::{AsyncMessage, AsyncMessageSerializer, AsyncMessageTrigger};
 use massa_models::{address::Address, amount::Amount, slot::Slot};
 use massa_serialization::Serializer;
diff --git a/massa_async_pool/message/struct.AsyncMessageDeserializer.html b/massa_async_pool/message/struct.AsyncMessageDeserializer.html
index 0242cefa359..22da23331fb 100644
--- a/massa_async_pool/message/struct.AsyncMessageDeserializer.html
+++ b/massa_async_pool/message/struct.AsyncMessageDeserializer.html
@@ -1,21 +1,21 @@
 AsyncMessageDeserializer in massa_async_pool::message - Rust
pub struct AsyncMessageDeserializer {
     pub slot_deserializer: SlotDeserializer,
     pub amount_deserializer: AmountDeserializer,
-    pub emission_index_deserializer: U64VarIntDeserializer,
-    pub max_gas_deserializer: U64VarIntDeserializer,
-    pub function_deserializer: StringDeserializer<U16VarIntDeserializer, u16>,
+    pub emission_index_deserializer: U64VarIntDeserializer,
+    pub max_gas_deserializer: U64VarIntDeserializer,
+    pub function_deserializer: StringDeserializer<U16VarIntDeserializer, u16>,
     pub function_params_deserializer: VecU8Deserializer,
     pub address_deserializer: AddressDeserializer,
-    pub trigger_deserializer: OptionDeserializer<AsyncMessageTrigger, AsyncMessageTriggerDeserializer>,
-    pub bool_deserializer: BoolDeserializer,
+    pub trigger_deserializer: OptionDeserializer<AsyncMessageTrigger, AsyncMessageTriggerDeserializer>,
+    pub bool_deserializer: BoolDeserializer,
     pub for_db: bool,
-}

Fields§

§slot_deserializer: SlotDeserializer§amount_deserializer: AmountDeserializer§emission_index_deserializer: U64VarIntDeserializer§max_gas_deserializer: U64VarIntDeserializer§function_deserializer: StringDeserializer<U16VarIntDeserializer, u16>§function_params_deserializer: VecU8Deserializer§address_deserializer: AddressDeserializer§trigger_deserializer: OptionDeserializer<AsyncMessageTrigger, AsyncMessageTriggerDeserializer>§bool_deserializer: BoolDeserializer§for_db: bool

Implementations§

Fields§

§slot_deserializer: SlotDeserializer§amount_deserializer: AmountDeserializer§emission_index_deserializer: U64VarIntDeserializer§max_gas_deserializer: U64VarIntDeserializer§function_deserializer: StringDeserializer<U16VarIntDeserializer, u16>§function_params_deserializer: VecU8Deserializer§address_deserializer: AddressDeserializer§trigger_deserializer: OptionDeserializer<AsyncMessageTrigger, AsyncMessageTriggerDeserializer>§bool_deserializer: BoolDeserializer§for_db: bool

Implementations§

source§

impl AsyncMessageDeserializer

source

pub fn new( thread_count: u8, max_function_length: u16, max_function_params_length: u64, max_key_length: u32, for_db: bool -) -> Self

Trait Implementations§

source§

impl Clone for AsyncMessageDeserializer

source§

fn clone(&self) -> AsyncMessageDeserializer

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 Deserializer<AsyncMessage> for AsyncMessageDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +) -> Self

Trait Implementations§

source§

impl Clone for AsyncMessageDeserializer

source§

fn clone(&self) -> AsyncMessageDeserializer

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 Deserializer<AsyncMessage> for AsyncMessageDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], AsyncMessage, E>

Example
diff --git a/massa_async_pool/message/struct.AsyncMessageIdDeserializer.html b/massa_async_pool/message/struct.AsyncMessageIdDeserializer.html index ef3c4b8f41e..35ba38092a4 100644 --- a/massa_async_pool/message/struct.AsyncMessageIdDeserializer.html +++ b/massa_async_pool/message/struct.AsyncMessageIdDeserializer.html @@ -1,9 +1,9 @@ AsyncMessageIdDeserializer in massa_async_pool::message - Rust
pub struct AsyncMessageIdDeserializer {
     slot_deserializer: SlotDeserializer,
-    numerator_deserializer: U64VarIntDeserializer,
-    denominator_deserializer: U64VarIntDeserializer,
-    emission_index_deserializer: U64VarIntDeserializer,
-}

Fields§

§slot_deserializer: SlotDeserializer§numerator_deserializer: U64VarIntDeserializer§denominator_deserializer: U64VarIntDeserializer§emission_index_deserializer: U64VarIntDeserializer

Implementations§

source§

impl AsyncMessageIdDeserializer

source

pub fn new(thread_count: u8) -> Self

Trait Implementations§

source§

impl Clone for AsyncMessageIdDeserializer

source§

fn clone(&self) -> AsyncMessageIdDeserializer

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 Deserializer<(Reverse<Ratio<u64>>, Slot, u64)> for AsyncMessageIdDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + numerator_deserializer: U64VarIntDeserializer, + denominator_deserializer: U64VarIntDeserializer, + emission_index_deserializer: U64VarIntDeserializer, +}

Fields§

§slot_deserializer: SlotDeserializer§numerator_deserializer: U64VarIntDeserializer§denominator_deserializer: U64VarIntDeserializer§emission_index_deserializer: U64VarIntDeserializer

Implementations§

source§

impl AsyncMessageIdDeserializer

source

pub fn new(thread_count: u8) -> Self

Trait Implementations§

source§

impl Clone for AsyncMessageIdDeserializer

source§

fn clone(&self) -> AsyncMessageIdDeserializer

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 Deserializer<(Reverse<Ratio<u64>>, Slot, u64)> for AsyncMessageIdDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], AsyncMessageId, E>

Example
diff --git a/massa_async_pool/message/struct.AsyncMessageIdSerializer.html b/massa_async_pool/message/struct.AsyncMessageIdSerializer.html index f2497af26f9..bb6231f6965 100644 --- a/massa_async_pool/message/struct.AsyncMessageIdSerializer.html +++ b/massa_async_pool/message/struct.AsyncMessageIdSerializer.html @@ -1,11 +1,11 @@ AsyncMessageIdSerializer in massa_async_pool::message - Rust
pub struct AsyncMessageIdSerializer {
     slot_serializer: SlotSerializer,
-    u64_serializer: U64VarIntSerializer,
-}

Fields§

§slot_serializer: SlotSerializer§u64_serializer: U64VarIntSerializer

Implementations§

Trait Implementations§

source§

impl Clone for AsyncMessageIdSerializer

source§

fn clone(&self) -> AsyncMessageIdSerializer

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 Default for AsyncMessageIdSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<(Reverse<Ratio<u64>>, Slot, u64)> for AsyncMessageIdSerializer

source§

fn serialize( + u64_serializer: U64VarIntSerializer, +}

Fields§

§slot_serializer: SlotSerializer§u64_serializer: U64VarIntSerializer

Implementations§

Trait Implementations§

source§

impl Clone for AsyncMessageIdSerializer

source§

fn clone(&self) -> AsyncMessageIdSerializer

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 Default for AsyncMessageIdSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<(Reverse<Ratio<u64>>, Slot, u64)> for AsyncMessageIdSerializer

source§

fn serialize( &self, value: &AsyncMessageId, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>
Example
use std::ops::Bound::Included;
 use massa_serialization::Serializer;
 use massa_models::{address::Address, amount::Amount, slot::Slot};
diff --git a/massa_async_pool/message/struct.AsyncMessageSerializer.html b/massa_async_pool/message/struct.AsyncMessageSerializer.html
index 353ba202057..8fc9dadd052 100644
--- a/massa_async_pool/message/struct.AsyncMessageSerializer.html
+++ b/massa_async_pool/message/struct.AsyncMessageSerializer.html
@@ -1,18 +1,18 @@
 AsyncMessageSerializer in massa_async_pool::message - Rust
pub struct AsyncMessageSerializer {
     pub slot_serializer: SlotSerializer,
-    pub function_serializer: StringSerializer<U16VarIntSerializer, u16>,
+    pub function_serializer: StringSerializer<U16VarIntSerializer, u16>,
     pub amount_serializer: AmountSerializer,
-    pub u64_serializer: U64VarIntSerializer,
+    pub u64_serializer: U64VarIntSerializer,
     pub function_params_serializer: VecU8Serializer,
     pub address_serializer: AddressSerializer,
-    pub trigger_serializer: OptionSerializer<AsyncMessageTrigger, AsyncMessageTriggerSerializer>,
-    pub bool_serializer: BoolSerializer,
+    pub trigger_serializer: OptionSerializer<AsyncMessageTrigger, AsyncMessageTriggerSerializer>,
+    pub bool_serializer: BoolSerializer,
     pub for_db: bool,
-}

Fields§

§slot_serializer: SlotSerializer§function_serializer: StringSerializer<U16VarIntSerializer, u16>§amount_serializer: AmountSerializer§u64_serializer: U64VarIntSerializer§function_params_serializer: VecU8Serializer§address_serializer: AddressSerializer§trigger_serializer: OptionSerializer<AsyncMessageTrigger, AsyncMessageTriggerSerializer>§bool_serializer: BoolSerializer§for_db: bool

Implementations§

source§

impl AsyncMessageSerializer

source

pub fn new(for_db: bool) -> Self

Trait Implementations§

source§

impl Clone for AsyncMessageSerializer

source§

fn clone(&self) -> AsyncMessageSerializer

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 Default for AsyncMessageSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<AsyncMessage> for AsyncMessageSerializer

Fields§

§slot_serializer: SlotSerializer§function_serializer: StringSerializer<U16VarIntSerializer, u16>§amount_serializer: AmountSerializer§u64_serializer: U64VarIntSerializer§function_params_serializer: VecU8Serializer§address_serializer: AddressSerializer§trigger_serializer: OptionSerializer<AsyncMessageTrigger, AsyncMessageTriggerSerializer>§bool_serializer: BoolSerializer§for_db: bool

Implementations§

source§

impl AsyncMessageSerializer

source

pub fn new(for_db: bool) -> Self

Trait Implementations§

source§

impl Clone for AsyncMessageSerializer

source§

fn clone(&self) -> AsyncMessageSerializer

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 Default for AsyncMessageSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<AsyncMessage> for AsyncMessageSerializer

source§

fn serialize( &self, value: &AsyncMessage, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>
Example
use massa_async_pool::{AsyncMessage, AsyncMessageSerializer, AsyncMessageTrigger};
 use massa_models::{address::Address, amount::Amount, slot::Slot};
 use massa_serialization::Serializer;
diff --git a/massa_async_pool/message/struct.AsyncMessageTrigger.html b/massa_async_pool/message/struct.AsyncMessageTrigger.html
index c7e6bfdf6d4..f3bfc806b74 100644
--- a/massa_async_pool/message/struct.AsyncMessageTrigger.html
+++ b/massa_async_pool/message/struct.AsyncMessageTrigger.html
@@ -5,17 +5,17 @@
 

Fields§

§address: Address

Filter on the address

§datastore_key: Option<Vec<u8>>

Filter on the datastore key

Trait Implementations§

source§

impl Clone for AsyncMessageTrigger

source§

fn clone(&self) -> AsyncMessageTrigger

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 AsyncMessageTrigger

source§

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

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

impl<'de> Deserialize<'de> for AsyncMessageTrigger

source§

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 Deserializer<AsyncMessageTrigger> for AsyncMessageTriggerDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Deserializer<AsyncMessageTrigger> for AsyncMessageTriggerDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], AsyncMessageTrigger, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl From<AsyncMessageTrigger> for AsyncMessageTrigger

source§

fn from(value: AsyncMessageTrigger) -> Self

Converts to this type from the input type.
source§

impl PartialEq<AsyncMessageTrigger> for AsyncMessageTrigger

source§

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

This method tests for self and other values to be equal, and is used +) -> IResult<&'a [u8], AsyncMessageTrigger, E>
Deserialize a value T from a buffer of u8. Read more
source§

impl From<AsyncMessageTrigger> for AsyncMessageTrigger

source§

fn from(value: AsyncMessageTrigger) -> Self

Converts to this type from the input type.
source§

impl PartialEq<AsyncMessageTrigger> for AsyncMessageTrigger

source§

fn eq(&self, other: &AsyncMessageTrigger) -> 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 Serialize for AsyncMessageTrigger

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<AsyncMessageTrigger> for AsyncMessageTriggerSerializer

source§

fn serialize( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<AsyncMessageTrigger> for AsyncMessageTriggerSerializer

source§

fn serialize( &self, value: &AsyncMessageTrigger, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Eq for AsyncMessageTrigger

source§

impl StructuralEq for AsyncMessageTrigger

source§

impl StructuralPartialEq for AsyncMessageTrigger

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Eq for AsyncMessageTrigger

source§

impl StructuralEq for AsyncMessageTrigger

source§

impl StructuralPartialEq for AsyncMessageTrigger

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_async_pool/message/struct.AsyncMessageTriggerDeserializer.html b/massa_async_pool/message/struct.AsyncMessageTriggerDeserializer.html index 2305a1523f1..98d859ce9a5 100644 --- a/massa_async_pool/message/struct.AsyncMessageTriggerDeserializer.html +++ b/massa_async_pool/message/struct.AsyncMessageTriggerDeserializer.html @@ -1,11 +1,11 @@ AsyncMessageTriggerDeserializer in massa_async_pool::message - Rust
pub struct AsyncMessageTriggerDeserializer {
     address_deserializer: AddressDeserializer,
-    key_serializer: OptionDeserializer<Vec<u8>, VecU8Deserializer>,
+    key_serializer: OptionDeserializer<Vec<u8>, VecU8Deserializer>,
 }
Expand description

Deserializer for a trigger for an asynchronous message

-

Fields§

§address_deserializer: AddressDeserializer§key_serializer: OptionDeserializer<Vec<u8>, VecU8Deserializer>

Implementations§

source§

impl AsyncMessageTriggerDeserializer

source

pub fn new(max_key_length: u32) -> Self

Trait Implementations§

source§

impl Clone for AsyncMessageTriggerDeserializer

source§

fn clone(&self) -> AsyncMessageTriggerDeserializer

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 Deserializer<AsyncMessageTrigger> for AsyncMessageTriggerDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Fields§

§address_deserializer: AddressDeserializer§key_serializer: OptionDeserializer<Vec<u8>, VecU8Deserializer>

Implementations§

source§

impl AsyncMessageTriggerDeserializer

source

pub fn new(max_key_length: u32) -> Self

Trait Implementations§

source§

impl Clone for AsyncMessageTriggerDeserializer

source§

fn clone(&self) -> AsyncMessageTriggerDeserializer

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 Deserializer<AsyncMessageTrigger> for AsyncMessageTriggerDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], AsyncMessageTrigger, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> IResult<&'a [u8], AsyncMessageTrigger, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_async_pool/message/struct.AsyncMessageTriggerSerializer.html b/massa_async_pool/message/struct.AsyncMessageTriggerSerializer.html index 6dec5b9f420..97120d56839 100644 --- a/massa_async_pool/message/struct.AsyncMessageTriggerSerializer.html +++ b/massa_async_pool/message/struct.AsyncMessageTriggerSerializer.html @@ -1,12 +1,12 @@ AsyncMessageTriggerSerializer in massa_async_pool::message - Rust
pub struct AsyncMessageTriggerSerializer {
     address_serializer: AddressSerializer,
-    key_serializer: OptionSerializer<Vec<u8>, VecU8Serializer>,
+    key_serializer: OptionSerializer<Vec<u8>, VecU8Serializer>,
 }
Expand description

Serializer for a trigger for an asynchronous message

-

Fields§

§address_serializer: AddressSerializer§key_serializer: OptionSerializer<Vec<u8>, VecU8Serializer>

Implementations§

Trait Implementations§

source§

impl Clone for AsyncMessageTriggerSerializer

source§

fn clone(&self) -> AsyncMessageTriggerSerializer

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 Default for AsyncMessageTriggerSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<AsyncMessageTrigger> for AsyncMessageTriggerSerializer

Fields§

§address_serializer: AddressSerializer§key_serializer: OptionSerializer<Vec<u8>, VecU8Serializer>

Implementations§

Trait Implementations§

source§

impl Clone for AsyncMessageTriggerSerializer

source§

fn clone(&self) -> AsyncMessageTriggerSerializer

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 Default for AsyncMessageTriggerSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<AsyncMessageTrigger> for AsyncMessageTriggerSerializer

source§

fn serialize( &self, value: &AsyncMessageTrigger, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_async_pool/message/struct.AsyncMessageUpdate.html b/massa_async_pool/message/struct.AsyncMessageUpdate.html index 102bb4d2c7f..6e4db19b40b 100644 --- a/massa_async_pool/message/struct.AsyncMessageUpdate.html +++ b/massa_async_pool/message/struct.AsyncMessageUpdate.html @@ -35,17 +35,17 @@

source§

impl Applicable<AsyncMessageUpdate> for AsyncMessageInfo

source§

fn apply(&mut self, update: AsyncMessageUpdate)

extends the AsyncMessage with a AsyncMessageUpdate

source§

impl Applicable<AsyncMessageUpdate> for AsyncMessageUpdate

source§

fn apply(&mut self, update: AsyncMessageUpdate)

extends the AsyncMessageUpdate with another one

source§

impl Clone for AsyncMessageUpdate

source§

fn clone(&self) -> AsyncMessageUpdate

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 AsyncMessageUpdate

source§

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

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

impl Default for AsyncMessageUpdate

source§

fn default() -> AsyncMessageUpdate

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for AsyncMessageUpdate

source§

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 Deserializer<AsyncMessageUpdate> for AsyncMessageUpdateDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Deserializer<AsyncMessageUpdate> for AsyncMessageUpdateDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], AsyncMessageUpdate, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl From<AsyncMessageUpdate> for AsyncMessageUpdate

source§

fn from(value: AsyncMessageUpdate) -> Self

Converts to this type from the input type.
source§

impl PartialEq<AsyncMessageUpdate> for AsyncMessageUpdate

source§

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

This method tests for self and other values to be equal, and is used +) -> IResult<&'a [u8], AsyncMessageUpdate, E>
Deserialize a value T from a buffer of u8. Read more
source§

impl From<AsyncMessageUpdate> for AsyncMessageUpdate

source§

fn from(value: AsyncMessageUpdate) -> Self

Converts to this type from the input type.
source§

impl PartialEq<AsyncMessageUpdate> for AsyncMessageUpdate

source§

fn eq(&self, other: &AsyncMessageUpdate) -> 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 Serialize for AsyncMessageUpdate

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<AsyncMessageUpdate> for AsyncMessageUpdateSerializer

source§

fn serialize( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<AsyncMessageUpdate> for AsyncMessageUpdateSerializer

source§

fn serialize( &self, value: &AsyncMessageUpdate, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Eq for AsyncMessageUpdate

source§

impl StructuralEq for AsyncMessageUpdate

source§

impl StructuralPartialEq for AsyncMessageUpdate

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Eq for AsyncMessageUpdate

source§

impl StructuralEq for AsyncMessageUpdate

source§

impl StructuralPartialEq for AsyncMessageUpdate

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_async_pool/message/struct.AsyncMessageUpdateDeserializer.html b/massa_async_pool/message/struct.AsyncMessageUpdateDeserializer.html index e870c7e96ec..aab552c0402 100644 --- a/massa_async_pool/message/struct.AsyncMessageUpdateDeserializer.html +++ b/massa_async_pool/message/struct.AsyncMessageUpdateDeserializer.html @@ -1,26 +1,26 @@ AsyncMessageUpdateDeserializer in massa_async_pool::message - Rust
pub struct AsyncMessageUpdateDeserializer {
     slot_deserializer: SetOrKeepDeserializer<Slot, SlotDeserializer>,
     amount_deserializer: SetOrKeepDeserializer<Amount, AmountDeserializer>,
-    emission_index_deserializer: SetOrKeepDeserializer<u64, U64VarIntDeserializer>,
-    max_gas_deserializer: SetOrKeepDeserializer<u64, U64VarIntDeserializer>,
-    function_deserializer: SetOrKeepDeserializer<String, StringDeserializer<U16VarIntDeserializer, u16>>,
+    emission_index_deserializer: SetOrKeepDeserializer<u64, U64VarIntDeserializer>,
+    max_gas_deserializer: SetOrKeepDeserializer<u64, U64VarIntDeserializer>,
+    function_deserializer: SetOrKeepDeserializer<String, StringDeserializer<U16VarIntDeserializer, u16>>,
     function_params_deserializer: SetOrKeepDeserializer<Vec<u8>, VecU8Deserializer>,
     address_deserializer: SetOrKeepDeserializer<Address, AddressDeserializer>,
-    trigger_deserializer: SetOrKeepDeserializer<Option<AsyncMessageTrigger>, OptionDeserializer<AsyncMessageTrigger, AsyncMessageTriggerDeserializer>>,
-    bool_deserializer: SetOrKeepDeserializer<bool, BoolDeserializer>,
+    trigger_deserializer: SetOrKeepDeserializer<Option<AsyncMessageTrigger>, OptionDeserializer<AsyncMessageTrigger, AsyncMessageTriggerDeserializer>>,
+    bool_deserializer: SetOrKeepDeserializer<bool, BoolDeserializer>,
     for_db: bool,
 }
Expand description

Deserializer for AsyncMessageUpdate

-

Fields§

§slot_deserializer: SetOrKeepDeserializer<Slot, SlotDeserializer>§amount_deserializer: SetOrKeepDeserializer<Amount, AmountDeserializer>§emission_index_deserializer: SetOrKeepDeserializer<u64, U64VarIntDeserializer>§max_gas_deserializer: SetOrKeepDeserializer<u64, U64VarIntDeserializer>§function_deserializer: SetOrKeepDeserializer<String, StringDeserializer<U16VarIntDeserializer, u16>>§function_params_deserializer: SetOrKeepDeserializer<Vec<u8>, VecU8Deserializer>§address_deserializer: SetOrKeepDeserializer<Address, AddressDeserializer>§trigger_deserializer: SetOrKeepDeserializer<Option<AsyncMessageTrigger>, OptionDeserializer<AsyncMessageTrigger, AsyncMessageTriggerDeserializer>>§bool_deserializer: SetOrKeepDeserializer<bool, BoolDeserializer>§for_db: bool

Implementations§

source§

impl AsyncMessageUpdateDeserializer

source

pub fn new( +

Fields§

§slot_deserializer: SetOrKeepDeserializer<Slot, SlotDeserializer>§amount_deserializer: SetOrKeepDeserializer<Amount, AmountDeserializer>§emission_index_deserializer: SetOrKeepDeserializer<u64, U64VarIntDeserializer>§max_gas_deserializer: SetOrKeepDeserializer<u64, U64VarIntDeserializer>§function_deserializer: SetOrKeepDeserializer<String, StringDeserializer<U16VarIntDeserializer, u16>>§function_params_deserializer: SetOrKeepDeserializer<Vec<u8>, VecU8Deserializer>§address_deserializer: SetOrKeepDeserializer<Address, AddressDeserializer>§trigger_deserializer: SetOrKeepDeserializer<Option<AsyncMessageTrigger>, OptionDeserializer<AsyncMessageTrigger, AsyncMessageTriggerDeserializer>>§bool_deserializer: SetOrKeepDeserializer<bool, BoolDeserializer>§for_db: bool

Implementations§

source§

impl AsyncMessageUpdateDeserializer

source

pub fn new( thread_count: u8, max_function_length: u16, max_function_params_length: u64, max_key_length: u32, for_db: bool ) -> Self

Creates a new AsyncMessageUpdateDeserializer

-

Trait Implementations§

source§

impl Deserializer<AsyncMessageUpdate> for AsyncMessageUpdateDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Trait Implementations§

source§

impl Deserializer<AsyncMessageUpdate> for AsyncMessageUpdateDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], AsyncMessageUpdate, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> IResult<&'a [u8], AsyncMessageUpdate, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_async_pool/message/struct.AsyncMessageUpdateSerializer.html b/massa_async_pool/message/struct.AsyncMessageUpdateSerializer.html index d59c147fcb2..b14714d2604 100644 --- a/massa_async_pool/message/struct.AsyncMessageUpdateSerializer.html +++ b/massa_async_pool/message/struct.AsyncMessageUpdateSerializer.html @@ -1,20 +1,20 @@ AsyncMessageUpdateSerializer in massa_async_pool::message - Rust
pub struct AsyncMessageUpdateSerializer {
     slot_serializer: SetOrKeepSerializer<Slot, SlotSerializer>,
     amount_serializer: SetOrKeepSerializer<Amount, AmountSerializer>,
-    u64_serializer: SetOrKeepSerializer<u64, U64VarIntSerializer>,
-    function_serializer: SetOrKeepSerializer<String, StringSerializer<U16VarIntSerializer, u16>>,
+    u64_serializer: SetOrKeepSerializer<u64, U64VarIntSerializer>,
+    function_serializer: SetOrKeepSerializer<String, StringSerializer<U16VarIntSerializer, u16>>,
     function_params_serializer: SetOrKeepSerializer<Vec<u8>, VecU8Serializer>,
     address_serializer: SetOrKeepSerializer<Address, AddressSerializer>,
-    trigger_serializer: SetOrKeepSerializer<Option<AsyncMessageTrigger>, OptionSerializer<AsyncMessageTrigger, AsyncMessageTriggerSerializer>>,
-    bool_serializer: SetOrKeepSerializer<bool, BoolSerializer>,
+    trigger_serializer: SetOrKeepSerializer<Option<AsyncMessageTrigger>, OptionSerializer<AsyncMessageTrigger, AsyncMessageTriggerSerializer>>,
+    bool_serializer: SetOrKeepSerializer<bool, BoolSerializer>,
     for_db: bool,
 }
Expand description

Serializer for AsyncMessageUpdate

-

Fields§

§slot_serializer: SetOrKeepSerializer<Slot, SlotSerializer>§amount_serializer: SetOrKeepSerializer<Amount, AmountSerializer>§u64_serializer: SetOrKeepSerializer<u64, U64VarIntSerializer>§function_serializer: SetOrKeepSerializer<String, StringSerializer<U16VarIntSerializer, u16>>§function_params_serializer: SetOrKeepSerializer<Vec<u8>, VecU8Serializer>§address_serializer: SetOrKeepSerializer<Address, AddressSerializer>§trigger_serializer: SetOrKeepSerializer<Option<AsyncMessageTrigger>, OptionSerializer<AsyncMessageTrigger, AsyncMessageTriggerSerializer>>§bool_serializer: SetOrKeepSerializer<bool, BoolSerializer>§for_db: bool

Implementations§

source§

impl AsyncMessageUpdateSerializer

source

pub fn new(for_db: bool) -> Self

Creates a new AsyncMessageUpdateSerializer

-

Trait Implementations§

source§

impl Default for AsyncMessageUpdateSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<AsyncMessageUpdate> for AsyncMessageUpdateSerializer

Fields§

§slot_serializer: SetOrKeepSerializer<Slot, SlotSerializer>§amount_serializer: SetOrKeepSerializer<Amount, AmountSerializer>§u64_serializer: SetOrKeepSerializer<u64, U64VarIntSerializer>§function_serializer: SetOrKeepSerializer<String, StringSerializer<U16VarIntSerializer, u16>>§function_params_serializer: SetOrKeepSerializer<Vec<u8>, VecU8Serializer>§address_serializer: SetOrKeepSerializer<Address, AddressSerializer>§trigger_serializer: SetOrKeepSerializer<Option<AsyncMessageTrigger>, OptionSerializer<AsyncMessageTrigger, AsyncMessageTriggerSerializer>>§bool_serializer: SetOrKeepSerializer<bool, BoolSerializer>§for_db: bool

Implementations§

source§

impl AsyncMessageUpdateSerializer

source

pub fn new(for_db: bool) -> Self

Creates a new AsyncMessageUpdateSerializer

+

Trait Implementations§

source§

impl Default for AsyncMessageUpdateSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<AsyncMessageUpdate> for AsyncMessageUpdateSerializer

source§

fn serialize( &self, value: &AsyncMessageUpdate, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_async_pool/pool/struct.AsyncPoolDeserializer.html b/massa_async_pool/pool/struct.AsyncPoolDeserializer.html index f1c14bd9998..6d74e66a6a5 100644 --- a/massa_async_pool/pool/struct.AsyncPoolDeserializer.html +++ b/massa_async_pool/pool/struct.AsyncPoolDeserializer.html @@ -1,19 +1,19 @@ AsyncPoolDeserializer in massa_async_pool::pool - Rust
pub struct AsyncPoolDeserializer {
-    u64_deserializer: U64VarIntDeserializer,
+    u64_deserializer: U64VarIntDeserializer,
     async_message_id_deserializer: AsyncMessageIdDeserializer,
     async_message_deserializer_db: AsyncMessageDeserializer,
 }
Expand description

Deserializer for AsyncPool

-

Fields§

§u64_deserializer: U64VarIntDeserializer§async_message_id_deserializer: AsyncMessageIdDeserializer§async_message_deserializer_db: AsyncMessageDeserializer

Implementations§

source§

impl AsyncPoolDeserializer

source

pub fn new( +

Fields§

§u64_deserializer: U64VarIntDeserializer§async_message_id_deserializer: AsyncMessageIdDeserializer§async_message_deserializer_db: AsyncMessageDeserializer

Implementations§

source§

impl AsyncPoolDeserializer

source

pub fn new( thread_count: u8, max_async_pool_length: u64, max_function_length: u16, max_parameters_length: u64, max_key_length: u32 ) -> AsyncPoolDeserializer

Creates a new AsyncPool deserializer

-

Trait Implementations§

source§

impl Deserializer<BTreeMap<(Reverse<Ratio<u64>>, Slot, u64), AsyncMessage, Global>> for AsyncPoolDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Trait Implementations§

source§

impl Deserializer<BTreeMap<(Reverse<Ratio<u64>>, Slot, u64), AsyncMessage, Global>> for AsyncPoolDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], BTreeMap<AsyncMessageId, AsyncMessage>, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> IResult<&'a [u8], BTreeMap<AsyncMessageId, AsyncMessage>, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_async_pool/pool/struct.AsyncPoolSerializer.html b/massa_async_pool/pool/struct.AsyncPoolSerializer.html index edefa8ada68..cd157e78caf 100644 --- a/massa_async_pool/pool/struct.AsyncPoolSerializer.html +++ b/massa_async_pool/pool/struct.AsyncPoolSerializer.html @@ -1,14 +1,14 @@ AsyncPoolSerializer in massa_async_pool::pool - Rust
pub struct AsyncPoolSerializer {
-    u64_serializer: U64VarIntSerializer,
+    u64_serializer: U64VarIntSerializer,
     async_message_id_serializer: AsyncMessageIdSerializer,
     async_message_serializer: AsyncMessageSerializer,
 }
Expand description

Serializer for AsyncPool

-

Fields§

§u64_serializer: U64VarIntSerializer§async_message_id_serializer: AsyncMessageIdSerializer§async_message_serializer: AsyncMessageSerializer

Implementations§

source§

impl AsyncPoolSerializer

source

pub fn new() -> Self

Creates a new AsyncPool serializer

-

Trait Implementations§

source§

impl Default for AsyncPoolSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<BTreeMap<(Reverse<Ratio<u64>>, Slot, u64), AsyncMessage, Global>> for AsyncPoolSerializer

Fields§

§u64_serializer: U64VarIntSerializer§async_message_id_serializer: AsyncMessageIdSerializer§async_message_serializer: AsyncMessageSerializer

Implementations§

source§

impl AsyncPoolSerializer

source

pub fn new() -> Self

Creates a new AsyncPool serializer

+

Trait Implementations§

source§

impl Default for AsyncPoolSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<BTreeMap<(Reverse<Ratio<u64>>, Slot, u64), AsyncMessage, Global>> for AsyncPoolSerializer

source§

fn serialize( &self, value: &BTreeMap<AsyncMessageId, AsyncMessage>, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_async_pool/struct.AsyncMessage.html b/massa_async_pool/struct.AsyncMessage.html index 3fea798d46c..dbe75340fb1 100644 --- a/massa_async_pool/struct.AsyncMessage.html +++ b/massa_async_pool/struct.AsyncMessage.html @@ -49,7 +49,7 @@

source

pub fn compute_id(&self) -> AsyncMessageId

Compute the ID of the message for use when choosing which operations to keep in priority (highest score) on pool overflow.

Trait Implementations§

source§

impl Applicable<AsyncMessageUpdate> for AsyncMessage

source§

fn apply(&mut self, update: AsyncMessageUpdate)

extends the AsyncMessage with a AsyncMessageUpdate

source§

impl Clone for AsyncMessage

source§

fn clone(&self) -> AsyncMessage

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 AsyncMessage

source§

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

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

impl Default for AsyncMessage

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for AsyncMessage

source§

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 Deserializer<AsyncMessage> for AsyncMessageDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Deserializer<AsyncMessage> for AsyncMessageDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], AsyncMessage, E>

Example
@@ -87,11 +87,11 @@
source§

impl From<AsyncMessage> for AsyncMessage

source§

fn from(value: AsyncMessage) -> Self

Converts to this type from the input type.
source§

impl From<AsyncMessage> for AsyncMessageInfo

source§

fn from(value: AsyncMessage) -> Self

Converts to this type from the input type.
source§

impl PartialEq<AsyncMessage> for AsyncMessage

source§

fn eq(&self, other: &AsyncMessage) -> 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 Serialize for AsyncMessage

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<AsyncMessage> for AsyncMessageSerializer

source§

fn serialize( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<AsyncMessage> for AsyncMessageSerializer

source§

fn serialize( &self, value: &AsyncMessage, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>
Example
use massa_async_pool::{AsyncMessage, AsyncMessageSerializer, AsyncMessageTrigger};
 use massa_models::{address::Address, amount::Amount, slot::Slot};
 use massa_serialization::Serializer;
diff --git a/massa_async_pool/struct.AsyncMessageDeserializer.html b/massa_async_pool/struct.AsyncMessageDeserializer.html
index f91c30c20d3..608951ed5d6 100644
--- a/massa_async_pool/struct.AsyncMessageDeserializer.html
+++ b/massa_async_pool/struct.AsyncMessageDeserializer.html
@@ -1,21 +1,21 @@
 AsyncMessageDeserializer in massa_async_pool - Rust
pub struct AsyncMessageDeserializer {
     pub slot_deserializer: SlotDeserializer,
     pub amount_deserializer: AmountDeserializer,
-    pub emission_index_deserializer: U64VarIntDeserializer,
-    pub max_gas_deserializer: U64VarIntDeserializer,
-    pub function_deserializer: StringDeserializer<U16VarIntDeserializer, u16>,
+    pub emission_index_deserializer: U64VarIntDeserializer,
+    pub max_gas_deserializer: U64VarIntDeserializer,
+    pub function_deserializer: StringDeserializer<U16VarIntDeserializer, u16>,
     pub function_params_deserializer: VecU8Deserializer,
     pub address_deserializer: AddressDeserializer,
-    pub trigger_deserializer: OptionDeserializer<AsyncMessageTrigger, AsyncMessageTriggerDeserializer>,
-    pub bool_deserializer: BoolDeserializer,
+    pub trigger_deserializer: OptionDeserializer<AsyncMessageTrigger, AsyncMessageTriggerDeserializer>,
+    pub bool_deserializer: BoolDeserializer,
     pub for_db: bool,
-}

Fields§

§slot_deserializer: SlotDeserializer§amount_deserializer: AmountDeserializer§emission_index_deserializer: U64VarIntDeserializer§max_gas_deserializer: U64VarIntDeserializer§function_deserializer: StringDeserializer<U16VarIntDeserializer, u16>§function_params_deserializer: VecU8Deserializer§address_deserializer: AddressDeserializer§trigger_deserializer: OptionDeserializer<AsyncMessageTrigger, AsyncMessageTriggerDeserializer>§bool_deserializer: BoolDeserializer§for_db: bool

Implementations§

Fields§

§slot_deserializer: SlotDeserializer§amount_deserializer: AmountDeserializer§emission_index_deserializer: U64VarIntDeserializer§max_gas_deserializer: U64VarIntDeserializer§function_deserializer: StringDeserializer<U16VarIntDeserializer, u16>§function_params_deserializer: VecU8Deserializer§address_deserializer: AddressDeserializer§trigger_deserializer: OptionDeserializer<AsyncMessageTrigger, AsyncMessageTriggerDeserializer>§bool_deserializer: BoolDeserializer§for_db: bool

Implementations§

source§

impl AsyncMessageDeserializer

source

pub fn new( thread_count: u8, max_function_length: u16, max_function_params_length: u64, max_key_length: u32, for_db: bool -) -> Self

Trait Implementations§

source§

impl Clone for AsyncMessageDeserializer

source§

fn clone(&self) -> AsyncMessageDeserializer

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 Deserializer<AsyncMessage> for AsyncMessageDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +) -> Self

Trait Implementations§

source§

impl Clone for AsyncMessageDeserializer

source§

fn clone(&self) -> AsyncMessageDeserializer

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 Deserializer<AsyncMessage> for AsyncMessageDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], AsyncMessage, E>

Example
diff --git a/massa_async_pool/struct.AsyncMessageIdDeserializer.html b/massa_async_pool/struct.AsyncMessageIdDeserializer.html index b1254d08fbf..37e4b32992b 100644 --- a/massa_async_pool/struct.AsyncMessageIdDeserializer.html +++ b/massa_async_pool/struct.AsyncMessageIdDeserializer.html @@ -1,9 +1,9 @@ AsyncMessageIdDeserializer in massa_async_pool - Rust
pub struct AsyncMessageIdDeserializer {
     slot_deserializer: SlotDeserializer,
-    numerator_deserializer: U64VarIntDeserializer,
-    denominator_deserializer: U64VarIntDeserializer,
-    emission_index_deserializer: U64VarIntDeserializer,
-}

Fields§

§slot_deserializer: SlotDeserializer§numerator_deserializer: U64VarIntDeserializer§denominator_deserializer: U64VarIntDeserializer§emission_index_deserializer: U64VarIntDeserializer

Implementations§

source§

impl AsyncMessageIdDeserializer

source

pub fn new(thread_count: u8) -> Self

Trait Implementations§

source§

impl Clone for AsyncMessageIdDeserializer

source§

fn clone(&self) -> AsyncMessageIdDeserializer

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 Deserializer<(Reverse<Ratio<u64>>, Slot, u64)> for AsyncMessageIdDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + numerator_deserializer: U64VarIntDeserializer, + denominator_deserializer: U64VarIntDeserializer, + emission_index_deserializer: U64VarIntDeserializer, +}

Fields§

§slot_deserializer: SlotDeserializer§numerator_deserializer: U64VarIntDeserializer§denominator_deserializer: U64VarIntDeserializer§emission_index_deserializer: U64VarIntDeserializer

Implementations§

source§

impl AsyncMessageIdDeserializer

source

pub fn new(thread_count: u8) -> Self

Trait Implementations§

source§

impl Clone for AsyncMessageIdDeserializer

source§

fn clone(&self) -> AsyncMessageIdDeserializer

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 Deserializer<(Reverse<Ratio<u64>>, Slot, u64)> for AsyncMessageIdDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], AsyncMessageId, E>

Example
diff --git a/massa_async_pool/struct.AsyncMessageIdSerializer.html b/massa_async_pool/struct.AsyncMessageIdSerializer.html index 193722a8e46..bfd17953f70 100644 --- a/massa_async_pool/struct.AsyncMessageIdSerializer.html +++ b/massa_async_pool/struct.AsyncMessageIdSerializer.html @@ -1,11 +1,11 @@ AsyncMessageIdSerializer in massa_async_pool - Rust
pub struct AsyncMessageIdSerializer {
     slot_serializer: SlotSerializer,
-    u64_serializer: U64VarIntSerializer,
-}

Fields§

§slot_serializer: SlotSerializer§u64_serializer: U64VarIntSerializer

Implementations§

Trait Implementations§

source§

impl Clone for AsyncMessageIdSerializer

source§

fn clone(&self) -> AsyncMessageIdSerializer

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 Default for AsyncMessageIdSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<(Reverse<Ratio<u64>>, Slot, u64)> for AsyncMessageIdSerializer

source§

fn serialize( + u64_serializer: U64VarIntSerializer, +}

Fields§

§slot_serializer: SlotSerializer§u64_serializer: U64VarIntSerializer

Implementations§

Trait Implementations§

source§

impl Clone for AsyncMessageIdSerializer

source§

fn clone(&self) -> AsyncMessageIdSerializer

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 Default for AsyncMessageIdSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<(Reverse<Ratio<u64>>, Slot, u64)> for AsyncMessageIdSerializer

source§

fn serialize( &self, value: &AsyncMessageId, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>
Example
use std::ops::Bound::Included;
 use massa_serialization::Serializer;
 use massa_models::{address::Address, amount::Amount, slot::Slot};
diff --git a/massa_async_pool/struct.AsyncMessageSerializer.html b/massa_async_pool/struct.AsyncMessageSerializer.html
index 493c4a5a102..6eea1e06df6 100644
--- a/massa_async_pool/struct.AsyncMessageSerializer.html
+++ b/massa_async_pool/struct.AsyncMessageSerializer.html
@@ -1,18 +1,18 @@
 AsyncMessageSerializer in massa_async_pool - Rust
pub struct AsyncMessageSerializer {
     pub slot_serializer: SlotSerializer,
-    pub function_serializer: StringSerializer<U16VarIntSerializer, u16>,
+    pub function_serializer: StringSerializer<U16VarIntSerializer, u16>,
     pub amount_serializer: AmountSerializer,
-    pub u64_serializer: U64VarIntSerializer,
+    pub u64_serializer: U64VarIntSerializer,
     pub function_params_serializer: VecU8Serializer,
     pub address_serializer: AddressSerializer,
-    pub trigger_serializer: OptionSerializer<AsyncMessageTrigger, AsyncMessageTriggerSerializer>,
-    pub bool_serializer: BoolSerializer,
+    pub trigger_serializer: OptionSerializer<AsyncMessageTrigger, AsyncMessageTriggerSerializer>,
+    pub bool_serializer: BoolSerializer,
     pub for_db: bool,
-}

Fields§

§slot_serializer: SlotSerializer§function_serializer: StringSerializer<U16VarIntSerializer, u16>§amount_serializer: AmountSerializer§u64_serializer: U64VarIntSerializer§function_params_serializer: VecU8Serializer§address_serializer: AddressSerializer§trigger_serializer: OptionSerializer<AsyncMessageTrigger, AsyncMessageTriggerSerializer>§bool_serializer: BoolSerializer§for_db: bool

Implementations§

source§

impl AsyncMessageSerializer

source

pub fn new(for_db: bool) -> Self

Trait Implementations§

source§

impl Clone for AsyncMessageSerializer

source§

fn clone(&self) -> AsyncMessageSerializer

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 Default for AsyncMessageSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<AsyncMessage> for AsyncMessageSerializer

Fields§

§slot_serializer: SlotSerializer§function_serializer: StringSerializer<U16VarIntSerializer, u16>§amount_serializer: AmountSerializer§u64_serializer: U64VarIntSerializer§function_params_serializer: VecU8Serializer§address_serializer: AddressSerializer§trigger_serializer: OptionSerializer<AsyncMessageTrigger, AsyncMessageTriggerSerializer>§bool_serializer: BoolSerializer§for_db: bool

Implementations§

source§

impl AsyncMessageSerializer

source

pub fn new(for_db: bool) -> Self

Trait Implementations§

source§

impl Clone for AsyncMessageSerializer

source§

fn clone(&self) -> AsyncMessageSerializer

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 Default for AsyncMessageSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<AsyncMessage> for AsyncMessageSerializer

source§

fn serialize( &self, value: &AsyncMessage, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>
Example
use massa_async_pool::{AsyncMessage, AsyncMessageSerializer, AsyncMessageTrigger};
 use massa_models::{address::Address, amount::Amount, slot::Slot};
 use massa_serialization::Serializer;
diff --git a/massa_async_pool/struct.AsyncMessageTrigger.html b/massa_async_pool/struct.AsyncMessageTrigger.html
index a5c3b692544..08839945f31 100644
--- a/massa_async_pool/struct.AsyncMessageTrigger.html
+++ b/massa_async_pool/struct.AsyncMessageTrigger.html
@@ -5,17 +5,17 @@
 

Fields§

§address: Address

Filter on the address

§datastore_key: Option<Vec<u8>>

Filter on the datastore key

Trait Implementations§

source§

impl Clone for AsyncMessageTrigger

source§

fn clone(&self) -> AsyncMessageTrigger

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 AsyncMessageTrigger

source§

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

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

impl<'de> Deserialize<'de> for AsyncMessageTrigger

source§

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 Deserializer<AsyncMessageTrigger> for AsyncMessageTriggerDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Deserializer<AsyncMessageTrigger> for AsyncMessageTriggerDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], AsyncMessageTrigger, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl From<AsyncMessageTrigger> for AsyncMessageTrigger

source§

fn from(value: AsyncMessageTrigger) -> Self

Converts to this type from the input type.
source§

impl PartialEq<AsyncMessageTrigger> for AsyncMessageTrigger

source§

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

This method tests for self and other values to be equal, and is used +) -> IResult<&'a [u8], AsyncMessageTrigger, E>
Deserialize a value T from a buffer of u8. Read more
source§

impl From<AsyncMessageTrigger> for AsyncMessageTrigger

source§

fn from(value: AsyncMessageTrigger) -> Self

Converts to this type from the input type.
source§

impl PartialEq<AsyncMessageTrigger> for AsyncMessageTrigger

source§

fn eq(&self, other: &AsyncMessageTrigger) -> 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 Serialize for AsyncMessageTrigger

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<AsyncMessageTrigger> for AsyncMessageTriggerSerializer

source§

fn serialize( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<AsyncMessageTrigger> for AsyncMessageTriggerSerializer

source§

fn serialize( &self, value: &AsyncMessageTrigger, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Eq for AsyncMessageTrigger

source§

impl StructuralEq for AsyncMessageTrigger

source§

impl StructuralPartialEq for AsyncMessageTrigger

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Eq for AsyncMessageTrigger

source§

impl StructuralEq for AsyncMessageTrigger

source§

impl StructuralPartialEq for AsyncMessageTrigger

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_async_pool/struct.AsyncMessageTriggerSerializer.html b/massa_async_pool/struct.AsyncMessageTriggerSerializer.html index 5d2a6c04a8a..8adad57c50c 100644 --- a/massa_async_pool/struct.AsyncMessageTriggerSerializer.html +++ b/massa_async_pool/struct.AsyncMessageTriggerSerializer.html @@ -1,12 +1,12 @@ AsyncMessageTriggerSerializer in massa_async_pool - Rust
pub struct AsyncMessageTriggerSerializer {
     address_serializer: AddressSerializer,
-    key_serializer: OptionSerializer<Vec<u8>, VecU8Serializer>,
+    key_serializer: OptionSerializer<Vec<u8>, VecU8Serializer>,
 }
Expand description

Serializer for a trigger for an asynchronous message

-

Fields§

§address_serializer: AddressSerializer§key_serializer: OptionSerializer<Vec<u8>, VecU8Serializer>

Implementations§

Trait Implementations§

source§

impl Clone for AsyncMessageTriggerSerializer

source§

fn clone(&self) -> AsyncMessageTriggerSerializer

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 Default for AsyncMessageTriggerSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<AsyncMessageTrigger> for AsyncMessageTriggerSerializer

Fields§

§address_serializer: AddressSerializer§key_serializer: OptionSerializer<Vec<u8>, VecU8Serializer>

Implementations§

Trait Implementations§

source§

impl Clone for AsyncMessageTriggerSerializer

source§

fn clone(&self) -> AsyncMessageTriggerSerializer

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 Default for AsyncMessageTriggerSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<AsyncMessageTrigger> for AsyncMessageTriggerSerializer

source§

fn serialize( &self, value: &AsyncMessageTrigger, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_async_pool/struct.AsyncMessageUpdate.html b/massa_async_pool/struct.AsyncMessageUpdate.html index f21e92d3b43..ba5a9b4bb20 100644 --- a/massa_async_pool/struct.AsyncMessageUpdate.html +++ b/massa_async_pool/struct.AsyncMessageUpdate.html @@ -35,17 +35,17 @@

source§

impl Applicable<AsyncMessageUpdate> for AsyncMessageInfo

source§

fn apply(&mut self, update: AsyncMessageUpdate)

extends the AsyncMessage with a AsyncMessageUpdate

source§

impl Applicable<AsyncMessageUpdate> for AsyncMessageUpdate

source§

fn apply(&mut self, update: AsyncMessageUpdate)

extends the AsyncMessageUpdate with another one

source§

impl Clone for AsyncMessageUpdate

source§

fn clone(&self) -> AsyncMessageUpdate

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 AsyncMessageUpdate

source§

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

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

impl Default for AsyncMessageUpdate

source§

fn default() -> AsyncMessageUpdate

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for AsyncMessageUpdate

source§

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 Deserializer<AsyncMessageUpdate> for AsyncMessageUpdateDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Deserializer<AsyncMessageUpdate> for AsyncMessageUpdateDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], AsyncMessageUpdate, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl From<AsyncMessageUpdate> for AsyncMessageUpdate

source§

fn from(value: AsyncMessageUpdate) -> Self

Converts to this type from the input type.
source§

impl PartialEq<AsyncMessageUpdate> for AsyncMessageUpdate

source§

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

This method tests for self and other values to be equal, and is used +) -> IResult<&'a [u8], AsyncMessageUpdate, E>
Deserialize a value T from a buffer of u8. Read more
source§

impl From<AsyncMessageUpdate> for AsyncMessageUpdate

source§

fn from(value: AsyncMessageUpdate) -> Self

Converts to this type from the input type.
source§

impl PartialEq<AsyncMessageUpdate> for AsyncMessageUpdate

source§

fn eq(&self, other: &AsyncMessageUpdate) -> 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 Serialize for AsyncMessageUpdate

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<AsyncMessageUpdate> for AsyncMessageUpdateSerializer

source§

fn serialize( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<AsyncMessageUpdate> for AsyncMessageUpdateSerializer

source§

fn serialize( &self, value: &AsyncMessageUpdate, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Eq for AsyncMessageUpdate

source§

impl StructuralEq for AsyncMessageUpdate

source§

impl StructuralPartialEq for AsyncMessageUpdate

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Eq for AsyncMessageUpdate

source§

impl StructuralEq for AsyncMessageUpdate

source§

impl StructuralPartialEq for AsyncMessageUpdate

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_async_pool/struct.AsyncPoolChanges.html b/massa_async_pool/struct.AsyncPoolChanges.html index b5ecfb2282b..4ee19cb8ff0 100644 --- a/massa_async_pool/struct.AsyncPoolChanges.html +++ b/massa_async_pool/struct.AsyncPoolChanges.html @@ -19,17 +19,17 @@

Trait Implementations§

source§

impl Applicable<AsyncPoolChanges> for AsyncPoolChanges

source§

fn apply(&mut self, changes: AsyncPoolChanges)

extends the current AsyncPoolChanges with another one

source§

impl Clone for AsyncPoolChanges

source§

fn clone(&self) -> AsyncPoolChanges

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 AsyncPoolChanges

source§

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

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

impl Default for AsyncPoolChanges

source§

fn default() -> AsyncPoolChanges

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for AsyncPoolChanges

source§

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 Deserializer<AsyncPoolChanges> for AsyncPoolChangesDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Deserializer<AsyncPoolChanges> for AsyncPoolChangesDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], AsyncPoolChanges, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl PartialEq<AsyncPoolChanges> for AsyncPoolChanges

source§

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

This method tests for self and other values to be equal, and is used +) -> IResult<&'a [u8], AsyncPoolChanges, E>
Deserialize a value T from a buffer of u8. Read more
source§

impl PartialEq<AsyncPoolChanges> for AsyncPoolChanges

source§

fn eq(&self, other: &AsyncPoolChanges) -> 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 Serialize for AsyncPoolChanges

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<AsyncPoolChanges> for AsyncPoolChangesSerializer

source§

fn serialize( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<AsyncPoolChanges> for AsyncPoolChangesSerializer

source§

fn serialize( &self, value: &AsyncPoolChanges, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Eq for AsyncPoolChanges

source§

impl StructuralEq for AsyncPoolChanges

source§

impl StructuralPartialEq for AsyncPoolChanges

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Eq for AsyncPoolChanges

source§

impl StructuralEq for AsyncPoolChanges

source§

impl StructuralPartialEq for AsyncPoolChanges

Auto Trait Implementations§

§

impl RefUnwindSafe for AsyncPoolChanges

§

impl Send for AsyncPoolChanges

§

impl Sync for AsyncPoolChanges

§

impl Unpin for AsyncPoolChanges

§

impl UnwindSafe for AsyncPoolChanges

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_async_pool/struct.AsyncPoolChangesDeserializer.html b/massa_async_pool/struct.AsyncPoolChangesDeserializer.html index 31d2bd01266..88e633837d7 100644 --- a/massa_async_pool/struct.AsyncPoolChangesDeserializer.html +++ b/massa_async_pool/struct.AsyncPoolChangesDeserializer.html @@ -1,17 +1,17 @@ AsyncPoolChangesDeserializer in massa_async_pool - Rust
pub struct AsyncPoolChangesDeserializer {
-    async_pool_changes_length: U64VarIntDeserializer,
+    async_pool_changes_length: U64VarIntDeserializer,
     id_deserializer: AsyncMessageIdDeserializer,
     set_update_or_delete_message_deserializer: SetUpdateOrDeleteDeserializer<AsyncMessage, AsyncMessageUpdate, AsyncMessageDeserializer, AsyncMessageUpdateDeserializer>,
-}

Fields§

§async_pool_changes_length: U64VarIntDeserializer§id_deserializer: AsyncMessageIdDeserializer§set_update_or_delete_message_deserializer: SetUpdateOrDeleteDeserializer<AsyncMessage, AsyncMessageUpdate, AsyncMessageDeserializer, AsyncMessageUpdateDeserializer>

Implementations§

source§

impl AsyncPoolChangesDeserializer

source

pub fn new( +}

Fields§

§async_pool_changes_length: U64VarIntDeserializer§id_deserializer: AsyncMessageIdDeserializer§set_update_or_delete_message_deserializer: SetUpdateOrDeleteDeserializer<AsyncMessage, AsyncMessageUpdate, AsyncMessageDeserializer, AsyncMessageUpdateDeserializer>

Implementations§

source§

impl AsyncPoolChangesDeserializer

source

pub fn new( thread_count: u8, max_async_pool_changes: u64, max_function_length: u16, max_function_params_length: u64, max_key_length: u32 -) -> Self

Trait Implementations§

source§

impl Deserializer<AsyncPoolChanges> for AsyncPoolChangesDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +) -> Self

Trait Implementations§

source§

impl Deserializer<AsyncPoolChanges> for AsyncPoolChangesDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], AsyncPoolChanges, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> IResult<&'a [u8], AsyncPoolChanges, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_async_pool/struct.AsyncPoolChangesSerializer.html b/massa_async_pool/struct.AsyncPoolChangesSerializer.html index 1e775b26750..6f0e0662c24 100644 --- a/massa_async_pool/struct.AsyncPoolChangesSerializer.html +++ b/massa_async_pool/struct.AsyncPoolChangesSerializer.html @@ -1,13 +1,13 @@ AsyncPoolChangesSerializer in massa_async_pool - Rust
pub struct AsyncPoolChangesSerializer {
-    u64_serializer: U64VarIntSerializer,
+    u64_serializer: U64VarIntSerializer,
     id_serializer: AsyncMessageIdSerializer,
     set_update_or_delete_message_serializer: SetUpdateOrDeleteSerializer<AsyncMessage, AsyncMessageUpdate, AsyncMessageSerializer, AsyncMessageUpdateSerializer>,
 }
Expand description

AsyncPoolChanges serializer

-

Fields§

§u64_serializer: U64VarIntSerializer§id_serializer: AsyncMessageIdSerializer§set_update_or_delete_message_serializer: SetUpdateOrDeleteSerializer<AsyncMessage, AsyncMessageUpdate, AsyncMessageSerializer, AsyncMessageUpdateSerializer>

Implementations§

Trait Implementations§

source§

impl Default for AsyncPoolChangesSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<AsyncPoolChanges> for AsyncPoolChangesSerializer

Fields§

§u64_serializer: U64VarIntSerializer§id_serializer: AsyncMessageIdSerializer§set_update_or_delete_message_serializer: SetUpdateOrDeleteSerializer<AsyncMessage, AsyncMessageUpdate, AsyncMessageSerializer, AsyncMessageUpdateSerializer>

Implementations§

Trait Implementations§

source§

impl Default for AsyncPoolChangesSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<AsyncPoolChanges> for AsyncPoolChangesSerializer

source§

fn serialize( &self, value: &AsyncPoolChanges, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_async_pool/struct.AsyncPoolDeserializer.html b/massa_async_pool/struct.AsyncPoolDeserializer.html index 13749532c2b..79d55985fa4 100644 --- a/massa_async_pool/struct.AsyncPoolDeserializer.html +++ b/massa_async_pool/struct.AsyncPoolDeserializer.html @@ -1,19 +1,19 @@ AsyncPoolDeserializer in massa_async_pool - Rust
pub struct AsyncPoolDeserializer {
-    u64_deserializer: U64VarIntDeserializer,
+    u64_deserializer: U64VarIntDeserializer,
     async_message_id_deserializer: AsyncMessageIdDeserializer,
     async_message_deserializer_db: AsyncMessageDeserializer,
 }
Expand description

Deserializer for AsyncPool

-

Fields§

§u64_deserializer: U64VarIntDeserializer§async_message_id_deserializer: AsyncMessageIdDeserializer§async_message_deserializer_db: AsyncMessageDeserializer

Implementations§

source§

impl AsyncPoolDeserializer

source

pub fn new( +

Fields§

§u64_deserializer: U64VarIntDeserializer§async_message_id_deserializer: AsyncMessageIdDeserializer§async_message_deserializer_db: AsyncMessageDeserializer

Implementations§

source§

impl AsyncPoolDeserializer

source

pub fn new( thread_count: u8, max_async_pool_length: u64, max_function_length: u16, max_parameters_length: u64, max_key_length: u32 ) -> AsyncPoolDeserializer

Creates a new AsyncPool deserializer

-

Trait Implementations§

source§

impl Deserializer<BTreeMap<(Reverse<Ratio<u64>>, Slot, u64), AsyncMessage, Global>> for AsyncPoolDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Trait Implementations§

source§

impl Deserializer<BTreeMap<(Reverse<Ratio<u64>>, Slot, u64), AsyncMessage, Global>> for AsyncPoolDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], BTreeMap<AsyncMessageId, AsyncMessage>, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> IResult<&'a [u8], BTreeMap<AsyncMessageId, AsyncMessage>, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_async_pool/struct.AsyncPoolSerializer.html b/massa_async_pool/struct.AsyncPoolSerializer.html index 36871536034..de6d5bb37db 100644 --- a/massa_async_pool/struct.AsyncPoolSerializer.html +++ b/massa_async_pool/struct.AsyncPoolSerializer.html @@ -1,14 +1,14 @@ AsyncPoolSerializer in massa_async_pool - Rust
pub struct AsyncPoolSerializer {
-    u64_serializer: U64VarIntSerializer,
+    u64_serializer: U64VarIntSerializer,
     async_message_id_serializer: AsyncMessageIdSerializer,
     async_message_serializer: AsyncMessageSerializer,
 }
Expand description

Serializer for AsyncPool

-

Fields§

§u64_serializer: U64VarIntSerializer§async_message_id_serializer: AsyncMessageIdSerializer§async_message_serializer: AsyncMessageSerializer

Implementations§

source§

impl AsyncPoolSerializer

source

pub fn new() -> Self

Creates a new AsyncPool serializer

-

Trait Implementations§

source§

impl Default for AsyncPoolSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<BTreeMap<(Reverse<Ratio<u64>>, Slot, u64), AsyncMessage, Global>> for AsyncPoolSerializer

Fields§

§u64_serializer: U64VarIntSerializer§async_message_id_serializer: AsyncMessageIdSerializer§async_message_serializer: AsyncMessageSerializer

Implementations§

source§

impl AsyncPoolSerializer

source

pub fn new() -> Self

Creates a new AsyncPool serializer

+

Trait Implementations§

source§

impl Default for AsyncPoolSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<BTreeMap<(Reverse<Ratio<u64>>, Slot, u64), AsyncMessage, Global>> for AsyncPoolSerializer

source§

fn serialize( &self, value: &BTreeMap<AsyncMessageId, AsyncMessage>, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_bootstrap/enum.BootstrapClientMessage.html b/massa_bootstrap/enum.BootstrapClientMessage.html index 4a7bbc3b022..b1aafa911eb 100644 --- a/massa_bootstrap/enum.BootstrapClientMessage.html +++ b/massa_bootstrap/enum.BootstrapClientMessage.html @@ -22,7 +22,7 @@

§

BootstrapError

Fields

§error: String

Error message

Bootstrap error

§

BootstrapSuccess

Bootstrap succeed

-

Trait Implementations§

source§

impl Clone for BootstrapClientMessage

source§

fn clone(&self) -> BootstrapClientMessage

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 BootstrapClientMessage

source§

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

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

impl Deserializer<BootstrapClientMessage> for BootstrapClientMessageDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Trait Implementations§

source§

impl Clone for BootstrapClientMessage

source§

fn clone(&self) -> BootstrapClientMessage

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 BootstrapClientMessage

source§

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

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

impl Deserializer<BootstrapClientMessage> for BootstrapClientMessageDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], BootstrapClientMessage, E>

Example
@@ -43,11 +43,11 @@ _ => panic!("Unexpected message"), }; assert_eq!(rest.len(), 0);
-
source§

impl Serializer<BootstrapClientMessage> for BootstrapClientMessageSerializer

source§

impl Serializer<BootstrapClientMessage> for BootstrapClientMessageSerializer

source§

fn serialize( &self, value: &BootstrapClientMessage, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>

Example
use massa_bootstrap::{BootstrapClientMessage, BootstrapClientMessageSerializer};
 use massa_serialization::Serializer;
 use massa_time::MassaTime;
diff --git a/massa_bootstrap/enum.BootstrapError.html b/massa_bootstrap/enum.BootstrapError.html
index 0873aa6c89e..112a9807599 100644
--- a/massa_bootstrap/enum.BootstrapError.html
+++ b/massa_bootstrap/enum.BootstrapError.html
@@ -5,7 +5,7 @@
     DeserializeError(String),
     SerializationError(String),
     ModelsError(ModelsError),
-    SerializeError(SerializeError),
+    SerializeError(SerializeError),
     UnexpectedServerMessage(BootstrapServerMessage),
     UnexpectedClientMessage(Box<BootstrapClientMessage>),
     UnexpectedConnectionDrop,
@@ -13,7 +13,7 @@
     MassaConsensusError(ConsensusError),
     MassaSignatureError(MassaSignatureError),
     TimeError(TimeError),
-    ProtocolError(ProtocolError),
+    ProtocolError(ProtocolError),
     FinalStateError(FinalStateError),
     PoSError(PosError),
     MissingKeyError,
@@ -31,7 +31,7 @@
 
§

DeserializeError(String)

deserialization error: {0}

§

SerializationError(String)

serialization error: {0}

§

ModelsError(ModelsError)

models error: {0}

-
§

SerializeError(SerializeError)

serialize error: {0}

+
§

SerializeError(SerializeError)

serialize error: {0}

§

UnexpectedServerMessage(BootstrapServerMessage)

unexpected message received from server: {0:?}

§

UnexpectedClientMessage(Box<BootstrapClientMessage>)

unexpected message received from client: {0:?}

§

UnexpectedConnectionDrop

connection with bootstrap node dropped

@@ -39,7 +39,7 @@
§

MassaConsensusError(ConsensusError)

massa_consensus error: {0}

§

MassaSignatureError(MassaSignatureError)

massa_signature error {0}

§

TimeError(TimeError)

time error: {0}

-
§

ProtocolError(ProtocolError)

protocol error: {0}

+
§

ProtocolError(ProtocolError)

protocol error: {0}

§

FinalStateError(FinalStateError)

final state error: {0}

§

PoSError(PosError)

Proof-of-Stake error: {0}

§

MissingKeyError

missing keypair file

@@ -54,7 +54,7 @@

Platforms may return a different error code whenever a read times out as a result of setting this option. For example Unix typically returns an error of the kind ErrorKind::WouldBlock, but Windows may return ErrorKind::TimedOut.)

-
source§

fn from(e: Error) -> Self

Converts to this type from the input type.
source§

impl From<FinalStateError> for BootstrapError

source§

fn from(source: FinalStateError) -> Self

Converts to this type from the input type.
source§

impl From<MassaHashError> for BootstrapError

source§

fn from(source: MassaHashError) -> Self

Converts to this type from the input type.
source§

impl From<MassaSignatureError> for BootstrapError

source§

fn from(source: MassaSignatureError) -> Self

Converts to this type from the input type.
source§

impl From<ModelsError> for BootstrapError

source§

fn from(source: ModelsError) -> Self

Converts to this type from the input type.
source§

impl From<PosError> for BootstrapError

source§

fn from(source: PosError) -> Self

Converts to this type from the input type.
source§

impl From<ProtocolError> for BootstrapError

source§

fn from(source: ProtocolError) -> Self

Converts to this type from the input type.
source§

impl From<SerializeError> for BootstrapError

source§

fn from(source: SerializeError) -> Self

Converts to this type from the input type.
source§

impl From<TimeError> for BootstrapError

source§

fn from(source: TimeError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +

source§

fn from(e: Error) -> Self

Converts to this type from the input type.
source§

impl From<FinalStateError> for BootstrapError

source§

fn from(source: FinalStateError) -> Self

Converts to this type from the input type.
source§

impl From<MassaHashError> for BootstrapError

source§

fn from(source: MassaHashError) -> Self

Converts to this type from the input type.
source§

impl From<MassaSignatureError> for BootstrapError

source§

fn from(source: MassaSignatureError) -> Self

Converts to this type from the input type.
source§

impl From<ModelsError> for BootstrapError

source§

fn from(source: ModelsError) -> Self

Converts to this type from the input type.
source§

impl From<PosError> for BootstrapError

source§

fn from(source: PosError) -> Self

Converts to this type from the input type.
source§

impl From<ProtocolError> for BootstrapError

source§

fn from(source: ProtocolError) -> Self

Converts to this type from the input type.
source§

impl From<SerializeError> for BootstrapError

source§

fn from(source: SerializeError) -> Self

Converts to this type from the input type.
source§

impl From<TimeError> for BootstrapError

source§

fn from(source: TimeError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl !RefUnwindSafe for BootstrapError

§

impl Send for BootstrapError

§

impl Sync for BootstrapError

§

impl Unpin for BootstrapError

§

impl !UnwindSafe for BootstrapError

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> ArchivePointee for T

§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
source§

impl<T> Borrow<T> for Twhere diff --git a/massa_bootstrap/enum.BootstrapServerMessage.html b/massa_bootstrap/enum.BootstrapServerMessage.html index d4ae043a645..4b8deca60c0 100644 --- a/massa_bootstrap/enum.BootstrapServerMessage.html +++ b/massa_bootstrap/enum.BootstrapServerMessage.html @@ -4,7 +4,7 @@ version: Version, }, BootstrapPeers { - peers: BootstrapPeers, + peers: BootstrapPeers, }, BootstrapPart { slot: Slot, @@ -24,7 +24,7 @@

Variants§

§

BootstrapTime

Fields

§server_time: MassaTime

The current time on the bootstrap server.

§version: Version

The version of the bootstrap server.

Sync clocks

-
§

BootstrapPeers

Fields

§peers: BootstrapPeers

Server peers

+
§

BootstrapPeers

Fields

§peers: BootstrapPeers

Server peers

Bootstrap peers

§

BootstrapPart

Fields

§slot: Slot

Slot the state changes are attached to

§state_part: StreamBatch<Slot>

Part of the state in a serialized way

@@ -38,7 +38,7 @@
§

SlotTooOld

Slot sent to get state changes is too old

§

BootstrapError

Fields

§error: String

Error message

Bootstrap error

-

Trait Implementations§

source§

impl Clone for BootstrapServerMessage

source§

fn clone(&self) -> BootstrapServerMessage

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 BootstrapServerMessage

source§

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

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

impl Deserializer<BootstrapServerMessage> for BootstrapServerMessageDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Trait Implementations§

source§

impl Clone for BootstrapServerMessage

source§

fn clone(&self) -> BootstrapServerMessage

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 BootstrapServerMessage

source§

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

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

impl Deserializer<BootstrapServerMessage> for BootstrapServerMessageDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], BootstrapServerMessage, E>

Example
@@ -85,11 +85,11 @@ _ => panic!("Unexpected message"), } assert_eq!(rest.len(), 0);
-
source§

impl Serializer<BootstrapServerMessage> for BootstrapServerMessageSerializer

source§

impl Serializer<BootstrapServerMessage> for BootstrapServerMessageSerializer

source§

fn serialize( &self, value: &BootstrapServerMessage, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>
Example
use massa_bootstrap::{BootstrapServerMessage, BootstrapServerMessageSerializer};
 use massa_serialization::Serializer;
 use massa_time::MassaTime;
diff --git a/massa_bootstrap/error/enum.BootstrapError.html b/massa_bootstrap/error/enum.BootstrapError.html
index fe00b74c1a7..58c58cbc6c9 100644
--- a/massa_bootstrap/error/enum.BootstrapError.html
+++ b/massa_bootstrap/error/enum.BootstrapError.html
@@ -5,7 +5,7 @@
     DeserializeError(String),
     SerializationError(String),
     ModelsError(ModelsError),
-    SerializeError(SerializeError),
+    SerializeError(SerializeError),
     UnexpectedServerMessage(BootstrapServerMessage),
     UnexpectedClientMessage(Box<BootstrapClientMessage>),
     UnexpectedConnectionDrop,
@@ -13,7 +13,7 @@
     MassaConsensusError(ConsensusError),
     MassaSignatureError(MassaSignatureError),
     TimeError(TimeError),
-    ProtocolError(ProtocolError),
+    ProtocolError(ProtocolError),
     FinalStateError(FinalStateError),
     PoSError(PosError),
     MissingKeyError,
@@ -31,7 +31,7 @@
 
§

DeserializeError(String)

deserialization error: {0}

§

SerializationError(String)

serialization error: {0}

§

ModelsError(ModelsError)

models error: {0}

-
§

SerializeError(SerializeError)

serialize error: {0}

+
§

SerializeError(SerializeError)

serialize error: {0}

§

UnexpectedServerMessage(BootstrapServerMessage)

unexpected message received from server: {0:?}

§

UnexpectedClientMessage(Box<BootstrapClientMessage>)

unexpected message received from client: {0:?}

§

UnexpectedConnectionDrop

connection with bootstrap node dropped

@@ -39,7 +39,7 @@
§

MassaConsensusError(ConsensusError)

massa_consensus error: {0}

§

MassaSignatureError(MassaSignatureError)

massa_signature error {0}

§

TimeError(TimeError)

time error: {0}

-
§

ProtocolError(ProtocolError)

protocol error: {0}

+
§

ProtocolError(ProtocolError)

protocol error: {0}

§

FinalStateError(FinalStateError)

final state error: {0}

§

PoSError(PosError)

Proof-of-Stake error: {0}

§

MissingKeyError

missing keypair file

@@ -54,7 +54,7 @@

Platforms may return a different error code whenever a read times out as a result of setting this option. For example Unix typically returns an error of the kind ErrorKind::WouldBlock, but Windows may return ErrorKind::TimedOut.)

-
source§

fn from(e: Error) -> Self

Converts to this type from the input type.
source§

impl From<FinalStateError> for BootstrapError

source§

fn from(source: FinalStateError) -> Self

Converts to this type from the input type.
source§

impl From<MassaHashError> for BootstrapError

source§

fn from(source: MassaHashError) -> Self

Converts to this type from the input type.
source§

impl From<MassaSignatureError> for BootstrapError

source§

fn from(source: MassaSignatureError) -> Self

Converts to this type from the input type.
source§

impl From<ModelsError> for BootstrapError

source§

fn from(source: ModelsError) -> Self

Converts to this type from the input type.
source§

impl From<PosError> for BootstrapError

source§

fn from(source: PosError) -> Self

Converts to this type from the input type.
source§

impl From<ProtocolError> for BootstrapError

source§

fn from(source: ProtocolError) -> Self

Converts to this type from the input type.
source§

impl From<SerializeError> for BootstrapError

source§

fn from(source: SerializeError) -> Self

Converts to this type from the input type.
source§

impl From<TimeError> for BootstrapError

source§

fn from(source: TimeError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +

source§

fn from(e: Error) -> Self

Converts to this type from the input type.
source§

impl From<FinalStateError> for BootstrapError

source§

fn from(source: FinalStateError) -> Self

Converts to this type from the input type.
source§

impl From<MassaHashError> for BootstrapError

source§

fn from(source: MassaHashError) -> Self

Converts to this type from the input type.
source§

impl From<MassaSignatureError> for BootstrapError

source§

fn from(source: MassaSignatureError) -> Self

Converts to this type from the input type.
source§

impl From<ModelsError> for BootstrapError

source§

fn from(source: ModelsError) -> Self

Converts to this type from the input type.
source§

impl From<PosError> for BootstrapError

source§

fn from(source: PosError) -> Self

Converts to this type from the input type.
source§

impl From<ProtocolError> for BootstrapError

source§

fn from(source: ProtocolError) -> Self

Converts to this type from the input type.
source§

impl From<SerializeError> for BootstrapError

source§

fn from(source: SerializeError) -> Self

Converts to this type from the input type.
source§

impl From<TimeError> for BootstrapError

source§

fn from(source: TimeError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> ArchivePointee for T

§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
source§

impl<T> Borrow<T> for Twhere diff --git a/massa_bootstrap/fn.start_bootstrap_server.html b/massa_bootstrap/fn.start_bootstrap_server.html index 6082cd00a0f..7c28a552987 100644 --- a/massa_bootstrap/fn.start_bootstrap_server.html +++ b/massa_bootstrap/fn.start_bootstrap_server.html @@ -2,7 +2,7 @@ ev_poller: BootstrapTcpListener, listener_stopper: BootstrapListenerStopHandle, consensus_controller: Box<dyn ConsensusController>, - protocol_controller: Box<dyn ProtocolController>, + protocol_controller: Box<dyn ProtocolController>, final_state: Arc<RwLock<dyn FinalStateController>>, config: BootstrapConfig, keypair: KeyPair, diff --git a/massa_bootstrap/messages/enum.BootstrapClientMessage.html b/massa_bootstrap/messages/enum.BootstrapClientMessage.html index c7b1d626208..41a68a92d4c 100644 --- a/massa_bootstrap/messages/enum.BootstrapClientMessage.html +++ b/massa_bootstrap/messages/enum.BootstrapClientMessage.html @@ -22,7 +22,7 @@

§

BootstrapError

Fields

§error: String

Error message

Bootstrap error

§

BootstrapSuccess

Bootstrap succeed

-

Trait Implementations§

source§

impl Clone for BootstrapClientMessage

source§

fn clone(&self) -> BootstrapClientMessage

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 BootstrapClientMessage

source§

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

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

impl Deserializer<BootstrapClientMessage> for BootstrapClientMessageDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Trait Implementations§

source§

impl Clone for BootstrapClientMessage

source§

fn clone(&self) -> BootstrapClientMessage

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 BootstrapClientMessage

source§

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

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

impl Deserializer<BootstrapClientMessage> for BootstrapClientMessageDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], BootstrapClientMessage, E>

Example
@@ -43,11 +43,11 @@ _ => panic!("Unexpected message"), }; assert_eq!(rest.len(), 0);
-
source§

impl Serializer<BootstrapClientMessage> for BootstrapClientMessageSerializer

source§

impl Serializer<BootstrapClientMessage> for BootstrapClientMessageSerializer

source§

fn serialize( &self, value: &BootstrapClientMessage, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>
Example
use massa_bootstrap::{BootstrapClientMessage, BootstrapClientMessageSerializer};
 use massa_serialization::Serializer;
 use massa_time::MassaTime;
diff --git a/massa_bootstrap/messages/enum.BootstrapServerMessage.html b/massa_bootstrap/messages/enum.BootstrapServerMessage.html
index b976ebaccac..67c18805382 100644
--- a/massa_bootstrap/messages/enum.BootstrapServerMessage.html
+++ b/massa_bootstrap/messages/enum.BootstrapServerMessage.html
@@ -4,7 +4,7 @@
         version: Version,
     },
     BootstrapPeers {
-        peers: BootstrapPeers,
+        peers: BootstrapPeers,
     },
     BootstrapPart {
         slot: Slot,
@@ -24,7 +24,7 @@
 

Variants§

§

BootstrapTime

Fields

§server_time: MassaTime

The current time on the bootstrap server.

§version: Version

The version of the bootstrap server.

Sync clocks

-
§

BootstrapPeers

Fields

§peers: BootstrapPeers

Server peers

+
§

BootstrapPeers

Fields

§peers: BootstrapPeers

Server peers

Bootstrap peers

§

BootstrapPart

Fields

§slot: Slot

Slot the state changes are attached to

§state_part: StreamBatch<Slot>

Part of the state in a serialized way

@@ -38,7 +38,7 @@
§

SlotTooOld

Slot sent to get state changes is too old

§

BootstrapError

Fields

§error: String

Error message

Bootstrap error

-

Trait Implementations§

source§

impl Clone for BootstrapServerMessage

source§

fn clone(&self) -> BootstrapServerMessage

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 BootstrapServerMessage

source§

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

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

impl Deserializer<BootstrapServerMessage> for BootstrapServerMessageDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Trait Implementations§

source§

impl Clone for BootstrapServerMessage

source§

fn clone(&self) -> BootstrapServerMessage

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 BootstrapServerMessage

source§

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

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

impl Deserializer<BootstrapServerMessage> for BootstrapServerMessageDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], BootstrapServerMessage, E>

Example
@@ -85,11 +85,11 @@ _ => panic!("Unexpected message"), } assert_eq!(rest.len(), 0);
-
source§

impl Serializer<BootstrapServerMessage> for BootstrapServerMessageSerializer

source§

fn serialize( +

source§

impl Serializer<BootstrapServerMessage> for BootstrapServerMessageSerializer

source§

fn serialize( &self, value: &BootstrapServerMessage, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>
Example
use massa_bootstrap::{BootstrapServerMessage, BootstrapServerMessageSerializer};
 use massa_serialization::Serializer;
 use massa_time::MassaTime;
diff --git a/massa_bootstrap/messages/struct.BootstrapClientMessageDeserializer.html b/massa_bootstrap/messages/struct.BootstrapClientMessageDeserializer.html
index 37925e23111..d80a1177853 100644
--- a/massa_bootstrap/messages/struct.BootstrapClientMessageDeserializer.html
+++ b/massa_bootstrap/messages/struct.BootstrapClientMessageDeserializer.html
@@ -1,17 +1,17 @@
 BootstrapClientMessageDeserializer in massa_bootstrap::messages - Rust
pub struct BootstrapClientMessageDeserializer {
-    id_deserializer: U32VarIntDeserializer,
-    length_error_deserializer: U32VarIntDeserializer,
+    id_deserializer: U32VarIntDeserializer,
+    length_error_deserializer: U32VarIntDeserializer,
     slot_deserializer: SlotDeserializer,
     state_step_deserializer: StreamingStepDeserializer<Vec<u8>, VecU8Deserializer>,
     block_ids_step_deserializer: StreamingStepDeserializer<PreHashSet<BlockId>, PreHashSetDeserializer<BlockId, BlockIdDeserializer>>,
-    bool_deserializer: BoolDeserializer,
+    bool_deserializer: BoolDeserializer,
 }
Expand description

Deserializer for BootstrapClientMessage

-

Fields§

§id_deserializer: U32VarIntDeserializer§length_error_deserializer: U32VarIntDeserializer§slot_deserializer: SlotDeserializer§state_step_deserializer: StreamingStepDeserializer<Vec<u8>, VecU8Deserializer>§block_ids_step_deserializer: StreamingStepDeserializer<PreHashSet<BlockId>, PreHashSetDeserializer<BlockId, BlockIdDeserializer>>§bool_deserializer: BoolDeserializer

Implementations§

source§

impl BootstrapClientMessageDeserializer

source

pub fn new( +

Fields§

§id_deserializer: U32VarIntDeserializer§length_error_deserializer: U32VarIntDeserializer§slot_deserializer: SlotDeserializer§state_step_deserializer: StreamingStepDeserializer<Vec<u8>, VecU8Deserializer>§block_ids_step_deserializer: StreamingStepDeserializer<PreHashSet<BlockId>, PreHashSetDeserializer<BlockId, BlockIdDeserializer>>§bool_deserializer: BoolDeserializer

Implementations§

source§

impl BootstrapClientMessageDeserializer

source

pub fn new( thread_count: u8, max_datastore_key_length: u8, max_consensus_block_ids: u64 ) -> Self

Creates a new BootstrapClientMessageDeserializer

-

Trait Implementations§

source§

impl Deserializer<BootstrapClientMessage> for BootstrapClientMessageDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Trait Implementations§

source§

impl Deserializer<BootstrapClientMessage> for BootstrapClientMessageDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], BootstrapClientMessage, E>

Example
diff --git a/massa_bootstrap/messages/struct.BootstrapClientMessageSerializer.html b/massa_bootstrap/messages/struct.BootstrapClientMessageSerializer.html index 08c321db574..56b6082e505 100644 --- a/massa_bootstrap/messages/struct.BootstrapClientMessageSerializer.html +++ b/massa_bootstrap/messages/struct.BootstrapClientMessageSerializer.html @@ -1,16 +1,16 @@ BootstrapClientMessageSerializer in massa_bootstrap::messages - Rust
pub struct BootstrapClientMessageSerializer {
-    u32_serializer: U32VarIntSerializer,
+    u32_serializer: U32VarIntSerializer,
     slot_serializer: SlotSerializer,
     state_step_serializer: StreamingStepSerializer<Vec<u8>, VecU8Serializer>,
     block_ids_step_serializer: StreamingStepSerializer<PreHashSet<BlockId>, PreHashSetSerializer<BlockId, BlockIdSerializer>>,
-    bool_serializer: BoolSerializer,
+    bool_serializer: BoolSerializer,
 }
Expand description

Serializer for BootstrapClientMessage

-

Fields§

§u32_serializer: U32VarIntSerializer§slot_serializer: SlotSerializer§state_step_serializer: StreamingStepSerializer<Vec<u8>, VecU8Serializer>§block_ids_step_serializer: StreamingStepSerializer<PreHashSet<BlockId>, PreHashSetSerializer<BlockId, BlockIdSerializer>>§bool_serializer: BoolSerializer

Implementations§

source§

impl BootstrapClientMessageSerializer

source

pub fn new() -> Self

Creates a new BootstrapClientMessageSerializer

-

Trait Implementations§

source§

impl Default for BootstrapClientMessageSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<BootstrapClientMessage> for BootstrapClientMessageSerializer

Fields§

§u32_serializer: U32VarIntSerializer§slot_serializer: SlotSerializer§state_step_serializer: StreamingStepSerializer<Vec<u8>, VecU8Serializer>§block_ids_step_serializer: StreamingStepSerializer<PreHashSet<BlockId>, PreHashSetSerializer<BlockId, BlockIdSerializer>>§bool_serializer: BoolSerializer

Implementations§

source§

impl BootstrapClientMessageSerializer

source

pub fn new() -> Self

Creates a new BootstrapClientMessageSerializer

+

Trait Implementations§

source§

impl Default for BootstrapClientMessageSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<BootstrapClientMessage> for BootstrapClientMessageSerializer

source§

fn serialize( &self, value: &BootstrapClientMessage, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>
Example
use massa_bootstrap::{BootstrapClientMessage, BootstrapClientMessageSerializer};
 use massa_serialization::Serializer;
 use massa_time::MassaTime;
diff --git a/massa_bootstrap/messages/struct.BootstrapServerMessageDeserializer.html b/massa_bootstrap/messages/struct.BootstrapServerMessageDeserializer.html
index e4c08997c2b..ca41085712e 100644
--- a/massa_bootstrap/messages/struct.BootstrapServerMessageDeserializer.html
+++ b/massa_bootstrap/messages/struct.BootstrapServerMessageDeserializer.html
@@ -1,23 +1,23 @@
 BootstrapServerMessageDeserializer in massa_bootstrap::messages - Rust
pub struct BootstrapServerMessageDeserializer {
Show 16 fields - message_id_deserializer: U32VarIntDeserializer, + message_id_deserializer: U32VarIntDeserializer, time_deserializer: MassaTimeDeserializer, version_deserializer: VersionDeserializer, - peers_deserializer: BootstrapPeersDeserializer, - state_new_elements_length_deserializer: U64VarIntDeserializer, - versioning_part_new_elements_length_deserializer: U64VarIntDeserializer, - stream_batch_updates_length_deserializer: U64VarIntDeserializer, + peers_deserializer: BootstrapPeersDeserializer, + state_new_elements_length_deserializer: U64VarIntDeserializer, + versioning_part_new_elements_length_deserializer: U64VarIntDeserializer, + stream_batch_updates_length_deserializer: U64VarIntDeserializer, datastore_key_deserializer: VecU8Deserializer, datastore_val_deserializer: VecU8Deserializer, - opt_vec_u8_deserializer: OptionDeserializer<Vec<u8>, VecU8Deserializer>, + opt_vec_u8_deserializer: OptionDeserializer<Vec<u8>, VecU8Deserializer>, bootstrapable_graph_deserializer: BootstrapableGraphDeserializer, block_id_set_deserializer: PreHashSetDeserializer<BlockId, BlockIdDeserializer>, - length_bootstrap_error: U64VarIntDeserializer, + length_bootstrap_error: U64VarIntDeserializer, slot_deserializer: SlotDeserializer, - opt_last_start_period_deserializer: OptionDeserializer<u64, U64VarIntDeserializer>, - opt_last_slot_before_downtime_deserializer: OptionDeserializer<Option<Slot>, OptionDeserializer<Slot, SlotDeserializer>>, + opt_last_start_period_deserializer: OptionDeserializer<u64, U64VarIntDeserializer>, + opt_last_slot_before_downtime_deserializer: OptionDeserializer<Option<Slot>, OptionDeserializer<Slot, SlotDeserializer>>,
}
Expand description

Deserializer for BootstrapServerMessage

-

Fields§

§message_id_deserializer: U32VarIntDeserializer§time_deserializer: MassaTimeDeserializer§version_deserializer: VersionDeserializer§peers_deserializer: BootstrapPeersDeserializer§state_new_elements_length_deserializer: U64VarIntDeserializer§versioning_part_new_elements_length_deserializer: U64VarIntDeserializer§stream_batch_updates_length_deserializer: U64VarIntDeserializer§datastore_key_deserializer: VecU8Deserializer§datastore_val_deserializer: VecU8Deserializer§opt_vec_u8_deserializer: OptionDeserializer<Vec<u8>, VecU8Deserializer>§bootstrapable_graph_deserializer: BootstrapableGraphDeserializer§block_id_set_deserializer: PreHashSetDeserializer<BlockId, BlockIdDeserializer>§length_bootstrap_error: U64VarIntDeserializer§slot_deserializer: SlotDeserializer§opt_last_start_period_deserializer: OptionDeserializer<u64, U64VarIntDeserializer>§opt_last_slot_before_downtime_deserializer: OptionDeserializer<Option<Slot>, OptionDeserializer<Slot, SlotDeserializer>>

Implementations§

source§

impl BootstrapServerMessageDeserializer

source

pub fn new(args: BootstrapServerMessageDeserializerArgs) -> Self

Creates a new BootstrapServerMessageDeserializer

-

Trait Implementations§

source§

impl Deserializer<BootstrapServerMessage> for BootstrapServerMessageDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Fields§

§message_id_deserializer: U32VarIntDeserializer§time_deserializer: MassaTimeDeserializer§version_deserializer: VersionDeserializer§peers_deserializer: BootstrapPeersDeserializer§state_new_elements_length_deserializer: U64VarIntDeserializer§versioning_part_new_elements_length_deserializer: U64VarIntDeserializer§stream_batch_updates_length_deserializer: U64VarIntDeserializer§datastore_key_deserializer: VecU8Deserializer§datastore_val_deserializer: VecU8Deserializer§opt_vec_u8_deserializer: OptionDeserializer<Vec<u8>, VecU8Deserializer>§bootstrapable_graph_deserializer: BootstrapableGraphDeserializer§block_id_set_deserializer: PreHashSetDeserializer<BlockId, BlockIdDeserializer>§length_bootstrap_error: U64VarIntDeserializer§slot_deserializer: SlotDeserializer§opt_last_start_period_deserializer: OptionDeserializer<u64, U64VarIntDeserializer>§opt_last_slot_before_downtime_deserializer: OptionDeserializer<Option<Slot>, OptionDeserializer<Slot, SlotDeserializer>>

Implementations§

source§

impl BootstrapServerMessageDeserializer

source

pub fn new(args: BootstrapServerMessageDeserializerArgs) -> Self

Creates a new BootstrapServerMessageDeserializer

+

Trait Implementations§

source§

impl Deserializer<BootstrapServerMessage> for BootstrapServerMessageDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], BootstrapServerMessage, E>

Example
diff --git a/massa_bootstrap/messages/struct.BootstrapServerMessageSerializer.html b/massa_bootstrap/messages/struct.BootstrapServerMessageSerializer.html index 508a9cceeb0..8b476805848 100644 --- a/massa_bootstrap/messages/struct.BootstrapServerMessageSerializer.html +++ b/massa_bootstrap/messages/struct.BootstrapServerMessageSerializer.html @@ -1,23 +1,23 @@ BootstrapServerMessageSerializer in massa_bootstrap::messages - Rust
pub struct BootstrapServerMessageSerializer {
-    u32_serializer: U32VarIntSerializer,
-    u64_serializer: U64VarIntSerializer,
+    u32_serializer: U32VarIntSerializer,
+    u64_serializer: U64VarIntSerializer,
     time_serializer: MassaTimeSerializer,
     version_serializer: VersionSerializer,
-    peers_serializer: BootstrapPeersSerializer,
+    peers_serializer: BootstrapPeersSerializer,
     bootstrapable_graph_serializer: BootstrapableGraphSerializer,
     block_id_set_serializer: PreHashSetSerializer<BlockId, BlockIdSerializer>,
     vec_u8_serializer: VecU8Serializer,
-    opt_vec_u8_serializer: OptionSerializer<Vec<u8>, VecU8Serializer>,
+    opt_vec_u8_serializer: OptionSerializer<Vec<u8>, VecU8Serializer>,
     slot_serializer: SlotSerializer,
-    opt_last_start_period_serializer: OptionSerializer<u64, U64VarIntSerializer>,
-    opt_last_slot_before_downtime_serializer: OptionSerializer<Option<Slot>, OptionSerializer<Slot, SlotSerializer>>,
+    opt_last_start_period_serializer: OptionSerializer<u64, U64VarIntSerializer>,
+    opt_last_slot_before_downtime_serializer: OptionSerializer<Option<Slot>, OptionSerializer<Slot, SlotSerializer>>,
 }
Expand description

Serializer for BootstrapServerMessage

-

Fields§

§u32_serializer: U32VarIntSerializer§u64_serializer: U64VarIntSerializer§time_serializer: MassaTimeSerializer§version_serializer: VersionSerializer§peers_serializer: BootstrapPeersSerializer§bootstrapable_graph_serializer: BootstrapableGraphSerializer§block_id_set_serializer: PreHashSetSerializer<BlockId, BlockIdSerializer>§vec_u8_serializer: VecU8Serializer§opt_vec_u8_serializer: OptionSerializer<Vec<u8>, VecU8Serializer>§slot_serializer: SlotSerializer§opt_last_start_period_serializer: OptionSerializer<u64, U64VarIntSerializer>§opt_last_slot_before_downtime_serializer: OptionSerializer<Option<Slot>, OptionSerializer<Slot, SlotSerializer>>

Implementations§

source§

impl BootstrapServerMessageSerializer

source

pub fn new() -> Self

Creates a new BootstrapServerMessageSerializer

-

Trait Implementations§

source§

impl Default for BootstrapServerMessageSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<BootstrapServerMessage> for BootstrapServerMessageSerializer

Fields§

§u32_serializer: U32VarIntSerializer§u64_serializer: U64VarIntSerializer§time_serializer: MassaTimeSerializer§version_serializer: VersionSerializer§peers_serializer: BootstrapPeersSerializer§bootstrapable_graph_serializer: BootstrapableGraphSerializer§block_id_set_serializer: PreHashSetSerializer<BlockId, BlockIdSerializer>§vec_u8_serializer: VecU8Serializer§opt_vec_u8_serializer: OptionSerializer<Vec<u8>, VecU8Serializer>§slot_serializer: SlotSerializer§opt_last_start_period_serializer: OptionSerializer<u64, U64VarIntSerializer>§opt_last_slot_before_downtime_serializer: OptionSerializer<Option<Slot>, OptionSerializer<Slot, SlotSerializer>>

Implementations§

source§

impl BootstrapServerMessageSerializer

source

pub fn new() -> Self

Creates a new BootstrapServerMessageSerializer

+

Trait Implementations§

source§

impl Default for BootstrapServerMessageSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<BootstrapServerMessage> for BootstrapServerMessageSerializer

source§

fn serialize( &self, value: &BootstrapServerMessage, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>
Example
use massa_bootstrap::{BootstrapServerMessage, BootstrapServerMessageSerializer};
 use massa_serialization::Serializer;
 use massa_time::MassaTime;
diff --git a/massa_bootstrap/server/fn.manage_bootstrap.html b/massa_bootstrap/server/fn.manage_bootstrap.html
index 39957f35caa..f602e819999 100644
--- a/massa_bootstrap/server/fn.manage_bootstrap.html
+++ b/massa_bootstrap/server/fn.manage_bootstrap.html
@@ -4,6 +4,6 @@
     final_state: Arc<RwLock<dyn FinalStateController>>,
     version: Version,
     consensus_controller: Box<dyn ConsensusController>,
-    protocol_controller: Box<dyn ProtocolController>,
+    protocol_controller: Box<dyn ProtocolController>,
     deadline: Instant
 ) -> Result<(), BootstrapError>
\ No newline at end of file diff --git a/massa_bootstrap/server/fn.run_bootstrap_session.html b/massa_bootstrap/server/fn.run_bootstrap_session.html index 59c7fda7d9f..57e6eda5534 100644 --- a/massa_bootstrap/server/fn.run_bootstrap_session.html +++ b/massa_bootstrap/server/fn.run_bootstrap_session.html @@ -6,7 +6,7 @@ data_execution: Arc<RwLock<dyn FinalStateController>>, version: Version, consensus_command_sender: Box<dyn ConsensusController>, - protocol_controller: Box<dyn ProtocolController>, + protocol_controller: Box<dyn ProtocolController>, massa_metrics: MassaMetrics )
Expand description

To be called from a thread::spawn invocation

Runs the bootstrap management in a dedicated thread, handling the async by using diff --git a/massa_bootstrap/server/fn.start_bootstrap_server.html b/massa_bootstrap/server/fn.start_bootstrap_server.html index aeba3246fa4..84ee45ad14e 100644 --- a/massa_bootstrap/server/fn.start_bootstrap_server.html +++ b/massa_bootstrap/server/fn.start_bootstrap_server.html @@ -2,7 +2,7 @@ ev_poller: BootstrapTcpListener, listener_stopper: BootstrapListenerStopHandle, consensus_controller: Box<dyn ConsensusController>, - protocol_controller: Box<dyn ProtocolController>, + protocol_controller: Box<dyn ProtocolController>, final_state: Arc<RwLock<dyn FinalStateController>>, config: BootstrapConfig, keypair: KeyPair, diff --git a/massa_bootstrap/server/struct.BootstrapServer.html b/massa_bootstrap/server/struct.BootstrapServer.html index bf490fc4786..713e5ad8334 100644 --- a/massa_bootstrap/server/struct.BootstrapServer.html +++ b/massa_bootstrap/server/struct.BootstrapServer.html @@ -1,6 +1,6 @@ BootstrapServer in massa_bootstrap::server - Rust

struct BootstrapServer<'a> {
     consensus_controller: Box<dyn ConsensusController>,
-    protocol_controller: Box<dyn ProtocolController>,
+    protocol_controller: Box<dyn ProtocolController>,
     final_state: Arc<RwLock<dyn FinalStateController>>,
     ev_poller: BootstrapTcpListener,
     white_black_list: SharedWhiteBlackList<'a>,
@@ -9,7 +9,7 @@
     version: Version,
     ip_hist_map: HashMap<IpAddr, Instant>,
     massa_metrics: MassaMetrics,
-}

Fields§

§consensus_controller: Box<dyn ConsensusController>§protocol_controller: Box<dyn ProtocolController>§final_state: Arc<RwLock<dyn FinalStateController>>§ev_poller: BootstrapTcpListener§white_black_list: SharedWhiteBlackList<'a>§keypair: KeyPair§bootstrap_config: BootstrapConfig§version: Version§ip_hist_map: HashMap<IpAddr, Instant>§massa_metrics: MassaMetrics

Implementations§

source§

impl BootstrapServer<'_>

source

fn run_updater( +}

Fields§

§consensus_controller: Box<dyn ConsensusController>§protocol_controller: Box<dyn ProtocolController>§final_state: Arc<RwLock<dyn FinalStateController>>§ev_poller: BootstrapTcpListener§white_black_list: SharedWhiteBlackList<'a>§keypair: KeyPair§bootstrap_config: BootstrapConfig§version: Version§ip_hist_map: HashMap<IpAddr, Instant>§massa_metrics: MassaMetrics

Implementations§

source§

impl BootstrapServer<'_>

source

fn run_updater( list: SharedWhiteBlackList<'_>, interval: Duration, stopper: Receiver<()> diff --git a/massa_bootstrap/struct.BootstrapClientMessageDeserializer.html b/massa_bootstrap/struct.BootstrapClientMessageDeserializer.html index a9cb2f55f61..6784ef68757 100644 --- a/massa_bootstrap/struct.BootstrapClientMessageDeserializer.html +++ b/massa_bootstrap/struct.BootstrapClientMessageDeserializer.html @@ -1,17 +1,17 @@ BootstrapClientMessageDeserializer in massa_bootstrap - Rust
pub struct BootstrapClientMessageDeserializer {
-    id_deserializer: U32VarIntDeserializer,
-    length_error_deserializer: U32VarIntDeserializer,
+    id_deserializer: U32VarIntDeserializer,
+    length_error_deserializer: U32VarIntDeserializer,
     slot_deserializer: SlotDeserializer,
     state_step_deserializer: StreamingStepDeserializer<Vec<u8>, VecU8Deserializer>,
     block_ids_step_deserializer: StreamingStepDeserializer<PreHashSet<BlockId>, PreHashSetDeserializer<BlockId, BlockIdDeserializer>>,
-    bool_deserializer: BoolDeserializer,
+    bool_deserializer: BoolDeserializer,
 }
Expand description

Deserializer for BootstrapClientMessage

-

Fields§

§id_deserializer: U32VarIntDeserializer§length_error_deserializer: U32VarIntDeserializer§slot_deserializer: SlotDeserializer§state_step_deserializer: StreamingStepDeserializer<Vec<u8>, VecU8Deserializer>§block_ids_step_deserializer: StreamingStepDeserializer<PreHashSet<BlockId>, PreHashSetDeserializer<BlockId, BlockIdDeserializer>>§bool_deserializer: BoolDeserializer

Implementations§

source§

impl BootstrapClientMessageDeserializer

source

pub fn new( +

Fields§

§id_deserializer: U32VarIntDeserializer§length_error_deserializer: U32VarIntDeserializer§slot_deserializer: SlotDeserializer§state_step_deserializer: StreamingStepDeserializer<Vec<u8>, VecU8Deserializer>§block_ids_step_deserializer: StreamingStepDeserializer<PreHashSet<BlockId>, PreHashSetDeserializer<BlockId, BlockIdDeserializer>>§bool_deserializer: BoolDeserializer

Implementations§

source§

impl BootstrapClientMessageDeserializer

source

pub fn new( thread_count: u8, max_datastore_key_length: u8, max_consensus_block_ids: u64 ) -> Self

Creates a new BootstrapClientMessageDeserializer

-

Trait Implementations§

source§

impl Deserializer<BootstrapClientMessage> for BootstrapClientMessageDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Trait Implementations§

source§

impl Deserializer<BootstrapClientMessage> for BootstrapClientMessageDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], BootstrapClientMessage, E>

Example
diff --git a/massa_bootstrap/struct.BootstrapClientMessageSerializer.html b/massa_bootstrap/struct.BootstrapClientMessageSerializer.html index 4c5d12a421b..37e05ce7ca7 100644 --- a/massa_bootstrap/struct.BootstrapClientMessageSerializer.html +++ b/massa_bootstrap/struct.BootstrapClientMessageSerializer.html @@ -1,16 +1,16 @@ BootstrapClientMessageSerializer in massa_bootstrap - Rust
pub struct BootstrapClientMessageSerializer {
-    u32_serializer: U32VarIntSerializer,
+    u32_serializer: U32VarIntSerializer,
     slot_serializer: SlotSerializer,
     state_step_serializer: StreamingStepSerializer<Vec<u8>, VecU8Serializer>,
     block_ids_step_serializer: StreamingStepSerializer<PreHashSet<BlockId>, PreHashSetSerializer<BlockId, BlockIdSerializer>>,
-    bool_serializer: BoolSerializer,
+    bool_serializer: BoolSerializer,
 }
Expand description

Serializer for BootstrapClientMessage

-

Fields§

§u32_serializer: U32VarIntSerializer§slot_serializer: SlotSerializer§state_step_serializer: StreamingStepSerializer<Vec<u8>, VecU8Serializer>§block_ids_step_serializer: StreamingStepSerializer<PreHashSet<BlockId>, PreHashSetSerializer<BlockId, BlockIdSerializer>>§bool_serializer: BoolSerializer

Implementations§

source§

impl BootstrapClientMessageSerializer

source

pub fn new() -> Self

Creates a new BootstrapClientMessageSerializer

-

Trait Implementations§

source§

impl Default for BootstrapClientMessageSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<BootstrapClientMessage> for BootstrapClientMessageSerializer

Fields§

§u32_serializer: U32VarIntSerializer§slot_serializer: SlotSerializer§state_step_serializer: StreamingStepSerializer<Vec<u8>, VecU8Serializer>§block_ids_step_serializer: StreamingStepSerializer<PreHashSet<BlockId>, PreHashSetSerializer<BlockId, BlockIdSerializer>>§bool_serializer: BoolSerializer

Implementations§

source§

impl BootstrapClientMessageSerializer

source

pub fn new() -> Self

Creates a new BootstrapClientMessageSerializer

+

Trait Implementations§

source§

impl Default for BootstrapClientMessageSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<BootstrapClientMessage> for BootstrapClientMessageSerializer

source§

fn serialize( &self, value: &BootstrapClientMessage, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>
Example
use massa_bootstrap::{BootstrapClientMessage, BootstrapClientMessageSerializer};
 use massa_serialization::Serializer;
 use massa_time::MassaTime;
diff --git a/massa_bootstrap/struct.BootstrapServerMessageDeserializer.html b/massa_bootstrap/struct.BootstrapServerMessageDeserializer.html
index 059593014da..cb9f0b6070e 100644
--- a/massa_bootstrap/struct.BootstrapServerMessageDeserializer.html
+++ b/massa_bootstrap/struct.BootstrapServerMessageDeserializer.html
@@ -1,23 +1,23 @@
 BootstrapServerMessageDeserializer in massa_bootstrap - Rust
pub struct BootstrapServerMessageDeserializer {
Show 16 fields - message_id_deserializer: U32VarIntDeserializer, + message_id_deserializer: U32VarIntDeserializer, time_deserializer: MassaTimeDeserializer, version_deserializer: VersionDeserializer, - peers_deserializer: BootstrapPeersDeserializer, - state_new_elements_length_deserializer: U64VarIntDeserializer, - versioning_part_new_elements_length_deserializer: U64VarIntDeserializer, - stream_batch_updates_length_deserializer: U64VarIntDeserializer, + peers_deserializer: BootstrapPeersDeserializer, + state_new_elements_length_deserializer: U64VarIntDeserializer, + versioning_part_new_elements_length_deserializer: U64VarIntDeserializer, + stream_batch_updates_length_deserializer: U64VarIntDeserializer, datastore_key_deserializer: VecU8Deserializer, datastore_val_deserializer: VecU8Deserializer, - opt_vec_u8_deserializer: OptionDeserializer<Vec<u8>, VecU8Deserializer>, + opt_vec_u8_deserializer: OptionDeserializer<Vec<u8>, VecU8Deserializer>, bootstrapable_graph_deserializer: BootstrapableGraphDeserializer, block_id_set_deserializer: PreHashSetDeserializer<BlockId, BlockIdDeserializer>, - length_bootstrap_error: U64VarIntDeserializer, + length_bootstrap_error: U64VarIntDeserializer, slot_deserializer: SlotDeserializer, - opt_last_start_period_deserializer: OptionDeserializer<u64, U64VarIntDeserializer>, - opt_last_slot_before_downtime_deserializer: OptionDeserializer<Option<Slot>, OptionDeserializer<Slot, SlotDeserializer>>, + opt_last_start_period_deserializer: OptionDeserializer<u64, U64VarIntDeserializer>, + opt_last_slot_before_downtime_deserializer: OptionDeserializer<Option<Slot>, OptionDeserializer<Slot, SlotDeserializer>>,
}
Expand description

Deserializer for BootstrapServerMessage

-

Fields§

§message_id_deserializer: U32VarIntDeserializer§time_deserializer: MassaTimeDeserializer§version_deserializer: VersionDeserializer§peers_deserializer: BootstrapPeersDeserializer§state_new_elements_length_deserializer: U64VarIntDeserializer§versioning_part_new_elements_length_deserializer: U64VarIntDeserializer§stream_batch_updates_length_deserializer: U64VarIntDeserializer§datastore_key_deserializer: VecU8Deserializer§datastore_val_deserializer: VecU8Deserializer§opt_vec_u8_deserializer: OptionDeserializer<Vec<u8>, VecU8Deserializer>§bootstrapable_graph_deserializer: BootstrapableGraphDeserializer§block_id_set_deserializer: PreHashSetDeserializer<BlockId, BlockIdDeserializer>§length_bootstrap_error: U64VarIntDeserializer§slot_deserializer: SlotDeserializer§opt_last_start_period_deserializer: OptionDeserializer<u64, U64VarIntDeserializer>§opt_last_slot_before_downtime_deserializer: OptionDeserializer<Option<Slot>, OptionDeserializer<Slot, SlotDeserializer>>

Implementations§

source§

impl BootstrapServerMessageDeserializer

source

pub fn new(args: BootstrapServerMessageDeserializerArgs) -> Self

Creates a new BootstrapServerMessageDeserializer

-

Trait Implementations§

source§

impl Deserializer<BootstrapServerMessage> for BootstrapServerMessageDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Fields§

§message_id_deserializer: U32VarIntDeserializer§time_deserializer: MassaTimeDeserializer§version_deserializer: VersionDeserializer§peers_deserializer: BootstrapPeersDeserializer§state_new_elements_length_deserializer: U64VarIntDeserializer§versioning_part_new_elements_length_deserializer: U64VarIntDeserializer§stream_batch_updates_length_deserializer: U64VarIntDeserializer§datastore_key_deserializer: VecU8Deserializer§datastore_val_deserializer: VecU8Deserializer§opt_vec_u8_deserializer: OptionDeserializer<Vec<u8>, VecU8Deserializer>§bootstrapable_graph_deserializer: BootstrapableGraphDeserializer§block_id_set_deserializer: PreHashSetDeserializer<BlockId, BlockIdDeserializer>§length_bootstrap_error: U64VarIntDeserializer§slot_deserializer: SlotDeserializer§opt_last_start_period_deserializer: OptionDeserializer<u64, U64VarIntDeserializer>§opt_last_slot_before_downtime_deserializer: OptionDeserializer<Option<Slot>, OptionDeserializer<Slot, SlotDeserializer>>

Implementations§

source§

impl BootstrapServerMessageDeserializer

source

pub fn new(args: BootstrapServerMessageDeserializerArgs) -> Self

Creates a new BootstrapServerMessageDeserializer

+

Trait Implementations§

source§

impl Deserializer<BootstrapServerMessage> for BootstrapServerMessageDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], BootstrapServerMessage, E>

Example
diff --git a/massa_bootstrap/struct.BootstrapServerMessageSerializer.html b/massa_bootstrap/struct.BootstrapServerMessageSerializer.html index 528f75fc524..b2350c412da 100644 --- a/massa_bootstrap/struct.BootstrapServerMessageSerializer.html +++ b/massa_bootstrap/struct.BootstrapServerMessageSerializer.html @@ -1,23 +1,23 @@ BootstrapServerMessageSerializer in massa_bootstrap - Rust
pub struct BootstrapServerMessageSerializer {
-    u32_serializer: U32VarIntSerializer,
-    u64_serializer: U64VarIntSerializer,
+    u32_serializer: U32VarIntSerializer,
+    u64_serializer: U64VarIntSerializer,
     time_serializer: MassaTimeSerializer,
     version_serializer: VersionSerializer,
-    peers_serializer: BootstrapPeersSerializer,
+    peers_serializer: BootstrapPeersSerializer,
     bootstrapable_graph_serializer: BootstrapableGraphSerializer,
     block_id_set_serializer: PreHashSetSerializer<BlockId, BlockIdSerializer>,
     vec_u8_serializer: VecU8Serializer,
-    opt_vec_u8_serializer: OptionSerializer<Vec<u8>, VecU8Serializer>,
+    opt_vec_u8_serializer: OptionSerializer<Vec<u8>, VecU8Serializer>,
     slot_serializer: SlotSerializer,
-    opt_last_start_period_serializer: OptionSerializer<u64, U64VarIntSerializer>,
-    opt_last_slot_before_downtime_serializer: OptionSerializer<Option<Slot>, OptionSerializer<Slot, SlotSerializer>>,
+    opt_last_start_period_serializer: OptionSerializer<u64, U64VarIntSerializer>,
+    opt_last_slot_before_downtime_serializer: OptionSerializer<Option<Slot>, OptionSerializer<Slot, SlotSerializer>>,
 }
Expand description

Serializer for BootstrapServerMessage

-

Fields§

§u32_serializer: U32VarIntSerializer§u64_serializer: U64VarIntSerializer§time_serializer: MassaTimeSerializer§version_serializer: VersionSerializer§peers_serializer: BootstrapPeersSerializer§bootstrapable_graph_serializer: BootstrapableGraphSerializer§block_id_set_serializer: PreHashSetSerializer<BlockId, BlockIdSerializer>§vec_u8_serializer: VecU8Serializer§opt_vec_u8_serializer: OptionSerializer<Vec<u8>, VecU8Serializer>§slot_serializer: SlotSerializer§opt_last_start_period_serializer: OptionSerializer<u64, U64VarIntSerializer>§opt_last_slot_before_downtime_serializer: OptionSerializer<Option<Slot>, OptionSerializer<Slot, SlotSerializer>>

Implementations§

source§

impl BootstrapServerMessageSerializer

source

pub fn new() -> Self

Creates a new BootstrapServerMessageSerializer

-

Trait Implementations§

source§

impl Default for BootstrapServerMessageSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<BootstrapServerMessage> for BootstrapServerMessageSerializer

Fields§

§u32_serializer: U32VarIntSerializer§u64_serializer: U64VarIntSerializer§time_serializer: MassaTimeSerializer§version_serializer: VersionSerializer§peers_serializer: BootstrapPeersSerializer§bootstrapable_graph_serializer: BootstrapableGraphSerializer§block_id_set_serializer: PreHashSetSerializer<BlockId, BlockIdSerializer>§vec_u8_serializer: VecU8Serializer§opt_vec_u8_serializer: OptionSerializer<Vec<u8>, VecU8Serializer>§slot_serializer: SlotSerializer§opt_last_start_period_serializer: OptionSerializer<u64, U64VarIntSerializer>§opt_last_slot_before_downtime_serializer: OptionSerializer<Option<Slot>, OptionSerializer<Slot, SlotSerializer>>

Implementations§

source§

impl BootstrapServerMessageSerializer

source

pub fn new() -> Self

Creates a new BootstrapServerMessageSerializer

+

Trait Implementations§

source§

impl Default for BootstrapServerMessageSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<BootstrapServerMessage> for BootstrapServerMessageSerializer

source§

fn serialize( &self, value: &BootstrapServerMessage, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>
Example
use massa_bootstrap::{BootstrapServerMessage, BootstrapServerMessageSerializer};
 use massa_serialization::Serializer;
 use massa_time::MassaTime;
diff --git a/massa_bootstrap/struct.GlobalBootstrapState.html b/massa_bootstrap/struct.GlobalBootstrapState.html
index a1772af548e..aa98e5cec87 100644
--- a/massa_bootstrap/struct.GlobalBootstrapState.html
+++ b/massa_bootstrap/struct.GlobalBootstrapState.html
@@ -1,11 +1,11 @@
 GlobalBootstrapState in massa_bootstrap - Rust
pub struct GlobalBootstrapState {
     pub final_state: Arc<RwLock<dyn FinalStateController>>,
     pub graph: Option<BootstrapableGraph>,
-    pub peers: Option<BootstrapPeers>,
+    pub peers: Option<BootstrapPeers>,
 }
Expand description

a collection of the bootstrap state snapshots of all relevant modules

Fields§

§final_state: Arc<RwLock<dyn FinalStateController>>

state of the final state

§graph: Option<BootstrapableGraph>

state of the consensus graph

-
§peers: Option<BootstrapPeers>

list of network peers

+
§peers: Option<BootstrapPeers>

list of network peers

Implementations§

source§

impl GlobalBootstrapState

source

pub(crate) fn new(final_state: Arc<RwLock<dyn FinalStateController>>) -> Self

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> ArchivePointee for T

§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata diff --git a/massa_consensus_exports/bootstrapable_graph/struct.BootstrapableGraph.html b/massa_consensus_exports/bootstrapable_graph/struct.BootstrapableGraph.html index 0413f30c05c..44bfdb4b7c8 100644 --- a/massa_consensus_exports/bootstrapable_graph/struct.BootstrapableGraph.html +++ b/massa_consensus_exports/bootstrapable_graph/struct.BootstrapableGraph.html @@ -3,7 +3,7 @@ }

Expand description

Bootstrap graph

Fields§

§final_blocks: Vec<ExportActiveBlock>

list of final blocks

Trait Implementations§

source§

impl Clone for BootstrapableGraph

source§

fn clone(&self) -> BootstrapableGraph

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 BootstrapableGraph

source§

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

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

impl<'de> Deserialize<'de> for BootstrapableGraph

source§

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 Deserializer<BootstrapableGraph> for BootstrapableGraphDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Deserializer<BootstrapableGraph> for BootstrapableGraphDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], BootstrapableGraph, E>

Example
@@ -26,11 +26,11 @@ assert_eq!(buffer, buffer2); assert_eq!(rest.len(), 0);
source§

impl Serialize for BootstrapableGraph

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<BootstrapableGraph> for BootstrapableGraphSerializer

source§

fn serialize( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<BootstrapableGraph> for BootstrapableGraphSerializer

source§

fn serialize( &self, value: &BootstrapableGraph, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>
Example
use massa_consensus_exports::bootstrapable_graph::{BootstrapableGraph, BootstrapableGraphSerializer};
 use massa_serialization::Serializer;
 use massa_hash::Hash;
diff --git a/massa_consensus_exports/bootstrapable_graph/struct.BootstrapableGraphDeserializer.html b/massa_consensus_exports/bootstrapable_graph/struct.BootstrapableGraphDeserializer.html
index aca31c5a9e1..0de6fdf999c 100644
--- a/massa_consensus_exports/bootstrapable_graph/struct.BootstrapableGraphDeserializer.html
+++ b/massa_consensus_exports/bootstrapable_graph/struct.BootstrapableGraphDeserializer.html
@@ -1,12 +1,12 @@
 BootstrapableGraphDeserializer in massa_consensus_exports::bootstrapable_graph - Rust
pub struct BootstrapableGraphDeserializer {
-    block_count_deserializer: U32VarIntDeserializer,
+    block_count_deserializer: U32VarIntDeserializer,
     export_active_block_deserializer: ExportActiveBlockDeserializer,
 }
Expand description

Basic deserializer for BootstrapableGraph

-

Fields§

§block_count_deserializer: U32VarIntDeserializer§export_active_block_deserializer: ExportActiveBlockDeserializer

Implementations§

source§

impl BootstrapableGraphDeserializer

source

pub fn new( +

Fields§

§block_count_deserializer: U32VarIntDeserializer§export_active_block_deserializer: ExportActiveBlockDeserializer

Implementations§

source§

impl BootstrapableGraphDeserializer

source

pub fn new( block_der_args: BlockDeserializerArgs, max_bootstrap_blocks: u32 ) -> Self

Creates a BootstrapableGraphDeserializer

-

Trait Implementations§

source§

impl Deserializer<BootstrapableGraph> for BootstrapableGraphDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Trait Implementations§

source§

impl Deserializer<BootstrapableGraph> for BootstrapableGraphDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], BootstrapableGraph, E>

Example
diff --git a/massa_consensus_exports/bootstrapable_graph/struct.BootstrapableGraphSerializer.html b/massa_consensus_exports/bootstrapable_graph/struct.BootstrapableGraphSerializer.html index 17fda405ef9..06e4bb49aa0 100644 --- a/massa_consensus_exports/bootstrapable_graph/struct.BootstrapableGraphSerializer.html +++ b/massa_consensus_exports/bootstrapable_graph/struct.BootstrapableGraphSerializer.html @@ -1,13 +1,13 @@ BootstrapableGraphSerializer in massa_consensus_exports::bootstrapable_graph - Rust
pub struct BootstrapableGraphSerializer {
-    block_count_serializer: U32VarIntSerializer,
+    block_count_serializer: U32VarIntSerializer,
     export_active_block_serializer: ExportActiveBlockSerializer,
 }
Expand description

Basic serializer for BootstrapableGraph

-

Fields§

§block_count_serializer: U32VarIntSerializer§export_active_block_serializer: ExportActiveBlockSerializer

Implementations§

source§

impl BootstrapableGraphSerializer

source

pub fn new() -> Self

Creates a BootstrapableGraphSerializer

-

Trait Implementations§

source§

impl Default for BootstrapableGraphSerializer

source§

fn default() -> BootstrapableGraphSerializer

Returns the “default value” for a type. Read more
source§

impl Serializer<BootstrapableGraph> for BootstrapableGraphSerializer

Fields§

§block_count_serializer: U32VarIntSerializer§export_active_block_serializer: ExportActiveBlockSerializer

Implementations§

source§

impl BootstrapableGraphSerializer

source

pub fn new() -> Self

Creates a BootstrapableGraphSerializer

+

Trait Implementations§

source§

impl Default for BootstrapableGraphSerializer

source§

fn default() -> BootstrapableGraphSerializer

Returns the “default value” for a type. Read more
source§

impl Serializer<BootstrapableGraph> for BootstrapableGraphSerializer

source§

fn serialize( &self, value: &BootstrapableGraph, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>
Example
use massa_consensus_exports::bootstrapable_graph::{BootstrapableGraph, BootstrapableGraphSerializer};
 use massa_serialization::Serializer;
 use massa_hash::Hash;
diff --git a/massa_consensus_exports/channels/struct.ConsensusChannels.html b/massa_consensus_exports/channels/struct.ConsensusChannels.html
index 7e071399df9..31070c12170 100644
--- a/massa_consensus_exports/channels/struct.ConsensusChannels.html
+++ b/massa_consensus_exports/channels/struct.ConsensusChannels.html
@@ -2,14 +2,14 @@
     pub execution_controller: Box<dyn ExecutionController>,
     pub selector_controller: Box<dyn SelectorController>,
     pub pool_controller: Box<dyn PoolController>,
-    pub protocol_controller: Box<dyn ProtocolController>,
+    pub protocol_controller: Box<dyn ProtocolController>,
     pub controller_event_tx: MassaSender<ConsensusEvent>,
     pub broadcasts: ConsensusBroadcasts,
 }
Expand description

Contains links to other modules of the node to be able to interact with them.

Fields§

§execution_controller: Box<dyn ExecutionController>

Interface to interact with Execution module

§selector_controller: Box<dyn SelectorController>

Interface to interact with PoS module

§pool_controller: Box<dyn PoolController>

Interface to interact with Pool module

-
§protocol_controller: Box<dyn ProtocolController>

Interface to interact with Protocol module

+
§protocol_controller: Box<dyn ProtocolController>

Interface to interact with Protocol module

§controller_event_tx: MassaSender<ConsensusEvent>

Channel used by the consensus to send events to the node globally

§broadcasts: ConsensusBroadcasts

Structure used by consensus to broadcast all the information about the blocks

Trait Implementations§

source§

impl Clone for ConsensusChannels

source§

fn clone(&self) -> ConsensusChannels

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

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere diff --git a/massa_consensus_exports/error/enum.ConsensusError.html b/massa_consensus_exports/error/enum.ConsensusError.html index 26229ac1529..0627fd7f9ac 100644 --- a/massa_consensus_exports/error/enum.ConsensusError.html +++ b/massa_consensus_exports/error/enum.ConsensusError.html @@ -14,7 +14,7 @@ LedgerError(LedgerError), MassaTimeError(TimeError), TransactionError(String), - ProtocolError(ProtocolError), + ProtocolError(ProtocolError), InvalidTransition(String),

}
Expand description

Consensus error

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

ExecutionError(ExecutionError)

execution error: {0}

@@ -32,9 +32,9 @@
§

LedgerError(LedgerError)

Ledger error {0}

§

MassaTimeError(TimeError)

Massa time error {0}

§

TransactionError(String)

transaction error {0}

-
§

ProtocolError(ProtocolError)

Protocol error {0}

+
§

ProtocolError(ProtocolError)

Protocol error {0}

§

InvalidTransition(String)

Invalid transition {0}

-

Trait Implementations§

source§

impl Debug for ConsensusError

source§

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

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

impl Display for ConsensusError

source§

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

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

impl Error for ConsensusError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<Error> for ConsensusError

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for ConsensusError

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl From<ExecutionError> for ConsensusError

source§

fn from(source: ExecutionError) -> Self

Converts to this type from the input type.
source§

impl From<LedgerError> for ConsensusError

source§

fn from(source: LedgerError) -> Self

Converts to this type from the input type.
source§

impl From<ModelsError> for ConsensusError

source§

fn from(source: ModelsError) -> Self

Converts to this type from the input type.
source§

impl From<ProtocolError> for ConsensusError

source§

fn from(source: ProtocolError) -> Self

Converts to this type from the input type.
source§

impl From<TimeError> for ConsensusError

source§

fn from(source: TimeError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +

Trait Implementations§

source§

impl Debug for ConsensusError

source§

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

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

impl Display for ConsensusError

source§

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

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

impl Error for ConsensusError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<Error> for ConsensusError

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for ConsensusError

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl From<ExecutionError> for ConsensusError

source§

fn from(source: ExecutionError) -> Self

Converts to this type from the input type.
source§

impl From<LedgerError> for ConsensusError

source§

fn from(source: LedgerError) -> Self

Converts to this type from the input type.
source§

impl From<ModelsError> for ConsensusError

source§

fn from(source: ModelsError) -> Self

Converts to this type from the input type.
source§

impl From<ProtocolError> for ConsensusError

source§

fn from(source: ProtocolError) -> Self

Converts to this type from the input type.
source§

impl From<TimeError> for ConsensusError

source§

fn from(source: TimeError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> ArchivePointee for T

§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
source§

impl<T> Borrow<T> for Twhere diff --git a/massa_consensus_exports/export_active_block/struct.ExportActiveBlock.html b/massa_consensus_exports/export_active_block/struct.ExportActiveBlock.html index 417780414a2..03a0ef01e45 100644 --- a/massa_consensus_exports/export_active_block/struct.ExportActiveBlock.html +++ b/massa_consensus_exports/export_active_block/struct.ExportActiveBlock.html @@ -16,7 +16,7 @@ thread_count: u8 ) -> Result<(ActiveBlock, StorageOrBlock), ConsensusError>

consuming conversion from ExportActiveBlock to ActiveBlock

Trait Implementations§

source§

impl Clone for ExportActiveBlock

source§

fn clone(&self) -> ExportActiveBlock

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 ExportActiveBlock

source§

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

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

impl<'de> Deserialize<'de> for ExportActiveBlock

source§

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 Deserializer<ExportActiveBlock> for ExportActiveBlockDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Deserializer<ExportActiveBlock> for ExportActiveBlockDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], ExportActiveBlock, E>

Example:
@@ -97,11 +97,11 @@ assert_eq!(export_deserialized.block.serialized_data, export_active_block.block.serialized_data); assert_eq!(rest.len(), 0);
source§

impl Serialize for ExportActiveBlock

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<ExportActiveBlock> for ExportActiveBlockSerializer

source§

fn serialize( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<ExportActiveBlock> for ExportActiveBlockSerializer

source§

fn serialize( &self, value: &ExportActiveBlock, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> ArchivePointee for T

§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
source§

impl<T> Borrow<T> for Twhere diff --git a/massa_consensus_exports/export_active_block/struct.ExportActiveBlockDeserializer.html b/massa_consensus_exports/export_active_block/struct.ExportActiveBlockDeserializer.html index 0359c4856b0..52148e48c82 100644 --- a/massa_consensus_exports/export_active_block/struct.ExportActiveBlockDeserializer.html +++ b/massa_consensus_exports/export_active_block/struct.ExportActiveBlockDeserializer.html @@ -1,11 +1,11 @@ ExportActiveBlockDeserializer in massa_consensus_exports::export_active_block - Rust
pub struct ExportActiveBlockDeserializer {
     sec_share_block_deserializer: SecureShareDeserializer<Block, BlockDeserializer>,
     block_id_deserializer: BlockIdDeserializer,
-    period_deserializer: U64VarIntDeserializer,
+    period_deserializer: U64VarIntDeserializer,
     thread_count: u8,
 }
Expand description

Basic deserializer of ExportActiveBlock

-

Fields§

§sec_share_block_deserializer: SecureShareDeserializer<Block, BlockDeserializer>§block_id_deserializer: BlockIdDeserializer§period_deserializer: U64VarIntDeserializer§thread_count: u8

Implementations§

source§

impl ExportActiveBlockDeserializer

source

pub fn new(block_der_args: BlockDeserializerArgs) -> Self

Create a new ExportActiveBlockDeserializer

-

Trait Implementations§

source§

impl Deserializer<ExportActiveBlock> for ExportActiveBlockDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Fields§

§sec_share_block_deserializer: SecureShareDeserializer<Block, BlockDeserializer>§block_id_deserializer: BlockIdDeserializer§period_deserializer: U64VarIntDeserializer§thread_count: u8

Implementations§

source§

impl ExportActiveBlockDeserializer

source

pub fn new(block_der_args: BlockDeserializerArgs) -> Self

Create a new ExportActiveBlockDeserializer

+

Trait Implementations§

source§

impl Deserializer<ExportActiveBlock> for ExportActiveBlockDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], ExportActiveBlock, E>

Example:
diff --git a/massa_consensus_exports/export_active_block/struct.ExportActiveBlockSerializer.html b/massa_consensus_exports/export_active_block/struct.ExportActiveBlockSerializer.html index 6eda050bcdf..dac714669c6 100644 --- a/massa_consensus_exports/export_active_block/struct.ExportActiveBlockSerializer.html +++ b/massa_consensus_exports/export_active_block/struct.ExportActiveBlockSerializer.html @@ -1,14 +1,14 @@ ExportActiveBlockSerializer in massa_consensus_exports::export_active_block - Rust
pub struct ExportActiveBlockSerializer {
     sec_share_serializer: SecureShareSerializer,
-    period_serializer: U64VarIntSerializer,
+    period_serializer: U64VarIntSerializer,
     block_id_serializer: BlockIdSerializer,
 }
Expand description

Basic serializer of ExportActiveBlock

-

Fields§

§sec_share_serializer: SecureShareSerializer§period_serializer: U64VarIntSerializer§block_id_serializer: BlockIdSerializer

Implementations§

source§

impl ExportActiveBlockSerializer

source

pub fn new() -> Self

Create a new ExportActiveBlockSerializer

-

Trait Implementations§

source§

impl Default for ExportActiveBlockSerializer

source§

fn default() -> ExportActiveBlockSerializer

Returns the “default value” for a type. Read more
source§

impl Serializer<ExportActiveBlock> for ExportActiveBlockSerializer

Fields§

§sec_share_serializer: SecureShareSerializer§period_serializer: U64VarIntSerializer§block_id_serializer: BlockIdSerializer

Implementations§

source§

impl ExportActiveBlockSerializer

source

pub fn new() -> Self

Create a new ExportActiveBlockSerializer

+

Trait Implementations§

source§

impl Default for ExportActiveBlockSerializer

source§

fn default() -> ExportActiveBlockSerializer

Returns the “default value” for a type. Read more
source§

impl Serializer<ExportActiveBlock> for ExportActiveBlockSerializer

source§

fn serialize( &self, value: &ExportActiveBlock, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> ArchivePointee for T

§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
source§

impl<T> Borrow<T> for Twhere diff --git a/massa_consensus_exports/struct.ConsensusChannels.html b/massa_consensus_exports/struct.ConsensusChannels.html index 4c3f0fcc770..6c50485917b 100644 --- a/massa_consensus_exports/struct.ConsensusChannels.html +++ b/massa_consensus_exports/struct.ConsensusChannels.html @@ -2,14 +2,14 @@ pub execution_controller: Box<dyn ExecutionController>, pub selector_controller: Box<dyn SelectorController>, pub pool_controller: Box<dyn PoolController>, - pub protocol_controller: Box<dyn ProtocolController>, + pub protocol_controller: Box<dyn ProtocolController>, pub controller_event_tx: MassaSender<ConsensusEvent>, pub broadcasts: ConsensusBroadcasts, }
Expand description

Contains links to other modules of the node to be able to interact with them.

Fields§

§execution_controller: Box<dyn ExecutionController>

Interface to interact with Execution module

§selector_controller: Box<dyn SelectorController>

Interface to interact with PoS module

§pool_controller: Box<dyn PoolController>

Interface to interact with Pool module

-
§protocol_controller: Box<dyn ProtocolController>

Interface to interact with Protocol module

+
§protocol_controller: Box<dyn ProtocolController>

Interface to interact with Protocol module

§controller_event_tx: MassaSender<ConsensusEvent>

Channel used by the consensus to send events to the node globally

§broadcasts: ConsensusBroadcasts

Structure used by consensus to broadcast all the information about the blocks

Trait Implementations§

source§

impl Clone for ConsensusChannels

source§

fn clone(&self) -> ConsensusChannels

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

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere diff --git a/massa_db_worker/massa_db/struct.RawMassaDB.html b/massa_db_worker/massa_db/struct.RawMassaDB.html index 75414dbb191..df59427df27 100644 --- a/massa_db_worker/massa_db/struct.RawMassaDB.html +++ b/massa_db_worker/massa_db/struct.RawMassaDB.html @@ -1,4 +1,4 @@ -RawMassaDB in massa_db_worker::massa_db - Rust
pub struct RawMassaDB<ChangeID: PartialOrd + Ord + PartialEq + Eq + Clone + Debug, ChangeIDSerializer: Serializer<ChangeID>, ChangeIDDeserializer: Deserializer<ChangeID>> {
+RawMassaDB in massa_db_worker::massa_db - Rust
pub struct RawMassaDB<ChangeID: PartialOrd + Ord + PartialEq + Eq + Clone + Debug, ChangeIDSerializer: Serializer<ChangeID>, ChangeIDDeserializer: Deserializer<ChangeID>> {
     pub db: Arc<DB>,
     pub config: MassaDBConfig,
     pub change_history: BTreeMap<ChangeID, BTreeMap<Key, Option<Value>>>,
@@ -21,8 +21,8 @@
 
§current_batch: Arc<Mutex<WriteBatch>>

The current RocksDB batch of the database, in a Mutex to share it

Implementations§

source§

impl<ChangeID, ChangeIDSerializer, ChangeIDDeserializer> RawMassaDB<ChangeID, ChangeIDSerializer, ChangeIDDeserializer>where ChangeID: PartialOrd + Ord + PartialEq + Eq + Clone + Debug, - ChangeIDSerializer: Serializer<ChangeID>, - ChangeIDDeserializer: Deserializer<ChangeID>,

source

pub fn get_batch_to_stream( + ChangeIDSerializer: Serializer<ChangeID>, + ChangeIDDeserializer: Deserializer<ChangeID>,

source

pub fn get_batch_to_stream( &self, last_state_step: &StreamingStep<Vec<u8>>, last_change_id: Option<ChangeID> @@ -62,8 +62,8 @@ ) -> Result<Self, Error>

Returns a new MassaDB instance given a config and RocksDB options

Trait Implementations§

source§

impl<ChangeID, ChangeIDSerializer, ChangeIDDeserializer> Debug for RawMassaDB<ChangeID, ChangeIDSerializer, ChangeIDDeserializer>where ChangeID: PartialOrd + Ord + PartialEq + Eq + Clone + Debug, - ChangeIDSerializer: Serializer<ChangeID>, - ChangeIDDeserializer: Deserializer<ChangeID>,

source§

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

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

impl MassaDBController for RawMassaDB<Slot, SlotSerializer, SlotDeserializer>

source§

fn backup_db(&self, slot: Slot) -> PathBuf

Creates a new hard copy of the DB, for the given slot

+ ChangeIDSerializer: Serializer<ChangeID>, + ChangeIDDeserializer: Deserializer<ChangeID>,

source§

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

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

impl MassaDBController for RawMassaDB<Slot, SlotSerializer, SlotDeserializer>

source§

fn backup_db(&self, slot: Slot) -> PathBuf

Creates a new hard copy of the DB, for the given slot

source§

fn write_batch( &mut self, batch: DBBatch, diff --git a/massa_db_worker/massa_db/type.MassaDB.html b/massa_db_worker/massa_db/type.MassaDB.html index 7254b15a83c..3da6c3c53e0 100644 --- a/massa_db_worker/massa_db/type.MassaDB.html +++ b/massa_db_worker/massa_db/type.MassaDB.html @@ -17,8 +17,8 @@

§current_batch: Arc<Mutex<RawMutex, WriteBatchWithTransaction<false>>, Global>

The current RocksDB batch of the database, in a Mutex to share it

Implementations§

source§

impl<ChangeID, ChangeIDSerializer, ChangeIDDeserializer> RawMassaDB<ChangeID, ChangeIDSerializer, ChangeIDDeserializer>where ChangeID: PartialOrd + Ord + PartialEq + Eq + Clone + Debug, - ChangeIDSerializer: Serializer<ChangeID>, - ChangeIDDeserializer: Deserializer<ChangeID>,

source

pub fn get_batch_to_stream( + ChangeIDSerializer: Serializer<ChangeID>, + ChangeIDDeserializer: Deserializer<ChangeID>,

source

pub fn get_batch_to_stream( &self, last_state_step: &StreamingStep<Vec<u8>>, last_change_id: Option<ChangeID> @@ -58,8 +58,8 @@ ) -> Result<Self, Error>

Returns a new MassaDB instance given a config and RocksDB options

Trait Implementations§

source§

impl<ChangeID, ChangeIDSerializer, ChangeIDDeserializer> Debug for RawMassaDB<ChangeID, ChangeIDSerializer, ChangeIDDeserializer>where ChangeID: PartialOrd + Ord + PartialEq + Eq + Clone + Debug, - ChangeIDSerializer: Serializer<ChangeID>, - ChangeIDDeserializer: Deserializer<ChangeID>,

source§

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

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

impl MassaDBController for RawMassaDB<Slot, SlotSerializer, SlotDeserializer>

source§

fn backup_db(&self, slot: Slot) -> PathBuf

Creates a new hard copy of the DB, for the given slot

+ ChangeIDSerializer: Serializer<ChangeID>, + ChangeIDDeserializer: Deserializer<ChangeID>,

source§

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

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

impl MassaDBController for RawMassaDB<Slot, SlotSerializer, SlotDeserializer>

source§

fn backup_db(&self, slot: Slot) -> PathBuf

Creates a new hard copy of the DB, for the given slot

source§

fn write_batch( &mut self, batch: DBBatch, diff --git a/massa_db_worker/struct.RawMassaDB.html b/massa_db_worker/struct.RawMassaDB.html index 576ace7b82a..b488cdbdb23 100644 --- a/massa_db_worker/struct.RawMassaDB.html +++ b/massa_db_worker/struct.RawMassaDB.html @@ -1,4 +1,4 @@ -RawMassaDB in massa_db_worker - Rust
pub struct RawMassaDB<ChangeID: PartialOrd + Ord + PartialEq + Eq + Clone + Debug, ChangeIDSerializer: Serializer<ChangeID>, ChangeIDDeserializer: Deserializer<ChangeID>> {
+RawMassaDB in massa_db_worker - Rust
pub struct RawMassaDB<ChangeID: PartialOrd + Ord + PartialEq + Eq + Clone + Debug, ChangeIDSerializer: Serializer<ChangeID>, ChangeIDDeserializer: Deserializer<ChangeID>> {
     pub db: Arc<DB>,
     pub config: MassaDBConfig,
     pub change_history: BTreeMap<ChangeID, BTreeMap<Key, Option<Value>>>,
@@ -21,8 +21,8 @@
 
§current_batch: Arc<Mutex<WriteBatch>>

The current RocksDB batch of the database, in a Mutex to share it

Implementations§

source§

impl<ChangeID, ChangeIDSerializer, ChangeIDDeserializer> RawMassaDB<ChangeID, ChangeIDSerializer, ChangeIDDeserializer>where ChangeID: PartialOrd + Ord + PartialEq + Eq + Clone + Debug, - ChangeIDSerializer: Serializer<ChangeID>, - ChangeIDDeserializer: Deserializer<ChangeID>,

source

pub fn get_batch_to_stream( + ChangeIDSerializer: Serializer<ChangeID>, + ChangeIDDeserializer: Deserializer<ChangeID>,

source

pub fn get_batch_to_stream( &self, last_state_step: &StreamingStep<Vec<u8>>, last_change_id: Option<ChangeID> @@ -62,8 +62,8 @@ ) -> Result<Self, Error>

Returns a new MassaDB instance given a config and RocksDB options

Trait Implementations§

source§

impl<ChangeID, ChangeIDSerializer, ChangeIDDeserializer> Debug for RawMassaDB<ChangeID, ChangeIDSerializer, ChangeIDDeserializer>where ChangeID: PartialOrd + Ord + PartialEq + Eq + Clone + Debug, - ChangeIDSerializer: Serializer<ChangeID>, - ChangeIDDeserializer: Deserializer<ChangeID>,

source§

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

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

impl MassaDBController for RawMassaDB<Slot, SlotSerializer, SlotDeserializer>

source§

fn backup_db(&self, slot: Slot) -> PathBuf

Creates a new hard copy of the DB, for the given slot

+ ChangeIDSerializer: Serializer<ChangeID>, + ChangeIDDeserializer: Deserializer<ChangeID>,

source§

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

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

impl MassaDBController for RawMassaDB<Slot, SlotSerializer, SlotDeserializer>

source§

fn backup_db(&self, slot: Slot) -> PathBuf

Creates a new hard copy of the DB, for the given slot

source§

fn write_batch( &mut self, batch: DBBatch, diff --git a/massa_db_worker/type.MassaDB.html b/massa_db_worker/type.MassaDB.html index 918f57f39c7..5e32c8be38f 100644 --- a/massa_db_worker/type.MassaDB.html +++ b/massa_db_worker/type.MassaDB.html @@ -17,8 +17,8 @@

§current_batch: Arc<Mutex<RawMutex, WriteBatchWithTransaction<false>>, Global>

The current RocksDB batch of the database, in a Mutex to share it

Implementations§

source§

impl<ChangeID, ChangeIDSerializer, ChangeIDDeserializer> RawMassaDB<ChangeID, ChangeIDSerializer, ChangeIDDeserializer>where ChangeID: PartialOrd + Ord + PartialEq + Eq + Clone + Debug, - ChangeIDSerializer: Serializer<ChangeID>, - ChangeIDDeserializer: Deserializer<ChangeID>,

source

pub fn get_batch_to_stream( + ChangeIDSerializer: Serializer<ChangeID>, + ChangeIDDeserializer: Deserializer<ChangeID>,

source

pub fn get_batch_to_stream( &self, last_state_step: &StreamingStep<Vec<u8>>, last_change_id: Option<ChangeID> @@ -58,8 +58,8 @@ ) -> Result<Self, Error>

Returns a new MassaDB instance given a config and RocksDB options

Trait Implementations§

source§

impl<ChangeID, ChangeIDSerializer, ChangeIDDeserializer> Debug for RawMassaDB<ChangeID, ChangeIDSerializer, ChangeIDDeserializer>where ChangeID: PartialOrd + Ord + PartialEq + Eq + Clone + Debug, - ChangeIDSerializer: Serializer<ChangeID>, - ChangeIDDeserializer: Deserializer<ChangeID>,

source§

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

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

impl MassaDBController for RawMassaDB<Slot, SlotSerializer, SlotDeserializer>

source§

fn backup_db(&self, slot: Slot) -> PathBuf

Creates a new hard copy of the DB, for the given slot

+ ChangeIDSerializer: Serializer<ChangeID>, + ChangeIDDeserializer: Deserializer<ChangeID>,

source§

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

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

impl MassaDBController for RawMassaDB<Slot, SlotSerializer, SlotDeserializer>

source§

fn backup_db(&self, slot: Slot) -> PathBuf

Creates a new hard copy of the DB, for the given slot

source§

fn write_batch( &mut self, batch: DBBatch, diff --git a/massa_executed_ops/denunciations_changes/struct.ExecutedDenunciationsChangesDeserializer.html b/massa_executed_ops/denunciations_changes/struct.ExecutedDenunciationsChangesDeserializer.html index 5cda9267941..ecbb2efcee5 100644 --- a/massa_executed_ops/denunciations_changes/struct.ExecutedDenunciationsChangesDeserializer.html +++ b/massa_executed_ops/denunciations_changes/struct.ExecutedDenunciationsChangesDeserializer.html @@ -1,16 +1,16 @@ ExecutedDenunciationsChangesDeserializer in massa_executed_ops::denunciations_changes - Rust
pub struct ExecutedDenunciationsChangesDeserializer {
-    u64_deserializer: U64VarIntDeserializer,
+    u64_deserializer: U64VarIntDeserializer,
     de_idx_deserializer: DenunciationIndexDeserializer,
 }
Expand description

Deserializer for ExecutedOps

-

Fields§

§u64_deserializer: U64VarIntDeserializer§de_idx_deserializer: DenunciationIndexDeserializer

Implementations§

source§

impl ExecutedDenunciationsChangesDeserializer

source

pub fn new( +

Fields§

§u64_deserializer: U64VarIntDeserializer§de_idx_deserializer: DenunciationIndexDeserializer

Implementations§

source§

impl ExecutedDenunciationsChangesDeserializer

source

pub fn new( thread_count: u8, endorsement_count: u32, max_de_changes_length: u64 ) -> ExecutedDenunciationsChangesDeserializer

Create a new deserializer for ExecutedOps

-

Trait Implementations§

Trait Implementations§

source§

impl Deserializer<HashSet<DenunciationIndex, RandomState>> for ExecutedDenunciationsChangesDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], ExecutedDenunciationsChanges, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> IResult<&'a [u8], ExecutedDenunciationsChanges, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_executed_ops/denunciations_changes/struct.ExecutedDenunciationsChangesSerializer.html b/massa_executed_ops/denunciations_changes/struct.ExecutedDenunciationsChangesSerializer.html index f9bd27d3494..1268fa78240 100644 --- a/massa_executed_ops/denunciations_changes/struct.ExecutedDenunciationsChangesSerializer.html +++ b/massa_executed_ops/denunciations_changes/struct.ExecutedDenunciationsChangesSerializer.html @@ -1,13 +1,13 @@ ExecutedDenunciationsChangesSerializer in massa_executed_ops::denunciations_changes - Rust
pub struct ExecutedDenunciationsChangesSerializer {
-    u64_serializer: U64VarIntSerializer,
+    u64_serializer: U64VarIntSerializer,
     de_idx_serializer: DenunciationIndexSerializer,
 }
Expand description

ExecutedOps Serializer

-

Fields§

§u64_serializer: U64VarIntSerializer§de_idx_serializer: DenunciationIndexSerializer

Implementations§

source§

impl ExecutedDenunciationsChangesSerializer

source

pub fn new() -> Self

Create a new ExecutedDenunciations Serializer

-

Trait Implementations§

source§

impl Default for ExecutedDenunciationsChangesSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<HashSet<DenunciationIndex, RandomState>> for ExecutedDenunciationsChangesSerializer

Fields§

§u64_serializer: U64VarIntSerializer§de_idx_serializer: DenunciationIndexSerializer

Implementations§

source§

impl ExecutedDenunciationsChangesSerializer

source

pub fn new() -> Self

Create a new ExecutedDenunciations Serializer

+

Trait Implementations§

source§

impl Default for ExecutedDenunciationsChangesSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<HashSet<DenunciationIndex, RandomState>> for ExecutedDenunciationsChangesSerializer

source§

fn serialize( &self, value: &ExecutedDenunciationsChanges, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_executed_ops/executed_ops/struct.ExecutedOps.html b/massa_executed_ops/executed_ops/struct.ExecutedOps.html index 059f7eea8fc..1f67d4703f6 100644 --- a/massa_executed_ops/executed_ops/struct.ExecutedOps.html +++ b/massa_executed_ops/executed_ops/struct.ExecutedOps.html @@ -5,8 +5,8 @@ pub op_exec_status: HashMap<OperationId, bool>, operation_id_deserializer: OperationIdDeserializer, operation_id_serializer: OperationIdSerializer, - bool_deserializer: BoolDeserializer, - bool_serializer: BoolSerializer, + bool_deserializer: BoolDeserializer, + bool_serializer: BoolSerializer, slot_deserializer: SlotDeserializer, slot_serializer: SlotSerializer, }
Expand description

A structure to list and prune previously executed operations

@@ -14,7 +14,7 @@
§db: ShareableMassaDBController

RocksDB Instance

§sorted_ops: BTreeMap<Slot, PreHashSet<OperationId>>

Executed operations btreemap with slot as index for better pruning complexity

§op_exec_status: HashMap<OperationId, bool>

execution status of operations (true: success, false: fail)

-
§operation_id_deserializer: OperationIdDeserializer§operation_id_serializer: OperationIdSerializer§bool_deserializer: BoolDeserializer§bool_serializer: BoolSerializer§slot_deserializer: SlotDeserializer§slot_serializer: SlotSerializer

Implementations§

source§

impl ExecutedOps

source

pub fn new(config: ExecutedOpsConfig, db: ShareableMassaDBController) -> Self

Creates a new ExecutedOps

+
§operation_id_deserializer: OperationIdDeserializer§operation_id_serializer: OperationIdSerializer§bool_deserializer: BoolDeserializer§bool_serializer: BoolSerializer§slot_deserializer: SlotDeserializer§slot_serializer: SlotSerializer

Implementations§

source§

impl ExecutedOps

source

pub fn new(config: ExecutedOpsConfig, db: ShareableMassaDBController) -> Self

Creates a new ExecutedOps

source

pub fn get_ops_exec_status(&self, batch: &[OperationId]) -> Vec<Option<bool>>

Get the execution statuses of a set of operations. Returns a list where each element is None if no execution was found for that op, or a boolean indicating whether the execution was successful (true) or had an error (false).

diff --git a/massa_executed_ops/ops_changes/struct.ExecutedOpsChangesDeserializer.html b/massa_executed_ops/ops_changes/struct.ExecutedOpsChangesDeserializer.html index 1eace65aa5a..b848ee0e01f 100644 --- a/massa_executed_ops/ops_changes/struct.ExecutedOpsChangesDeserializer.html +++ b/massa_executed_ops/ops_changes/struct.ExecutedOpsChangesDeserializer.html @@ -1,17 +1,17 @@ ExecutedOpsChangesDeserializer in massa_executed_ops::ops_changes - Rust
pub struct ExecutedOpsChangesDeserializer {
-    u64_deserializer: U64VarIntDeserializer,
+    u64_deserializer: U64VarIntDeserializer,
     operation_id_deserializer: OperationIdDeserializer,
-    op_execution_deserializer: BoolDeserializer,
+    op_execution_deserializer: BoolDeserializer,
     slot_deserializer: SlotDeserializer,
 }
Expand description

Deserializer for ExecutedOps

-

Fields§

§u64_deserializer: U64VarIntDeserializer§operation_id_deserializer: OperationIdDeserializer§op_execution_deserializer: BoolDeserializer§slot_deserializer: SlotDeserializer

Implementations§

source§

impl ExecutedOpsChangesDeserializer

source

pub fn new( +

Fields§

§u64_deserializer: U64VarIntDeserializer§operation_id_deserializer: OperationIdDeserializer§op_execution_deserializer: BoolDeserializer§slot_deserializer: SlotDeserializer

Implementations§

source§

impl ExecutedOpsChangesDeserializer

source

pub fn new( thread_count: u8, max_ops_changes_length: u64 ) -> ExecutedOpsChangesDeserializer

Create a new deserializer for ExecutedOps

-

Trait Implementations§

Trait Implementations§

source§

impl Deserializer<HashMap<OperationId, (bool, Slot), BuildHasherDefault<HashMapper<OperationId>>>> for ExecutedOpsChangesDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], ExecutedOpsChanges, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> IResult<&'a [u8], ExecutedOpsChanges, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_executed_ops/ops_changes/struct.ExecutedOpsChangesSerializer.html b/massa_executed_ops/ops_changes/struct.ExecutedOpsChangesSerializer.html index 917f1a4536a..18e3aac891f 100644 --- a/massa_executed_ops/ops_changes/struct.ExecutedOpsChangesSerializer.html +++ b/massa_executed_ops/ops_changes/struct.ExecutedOpsChangesSerializer.html @@ -1,15 +1,15 @@ ExecutedOpsChangesSerializer in massa_executed_ops::ops_changes - Rust
pub struct ExecutedOpsChangesSerializer {
-    u64_serializer: U64VarIntSerializer,
+    u64_serializer: U64VarIntSerializer,
     operation_id_serializer: OperationIdSerializer,
-    op_execution: BoolSerializer,
+    op_execution: BoolSerializer,
     slot_serializer: SlotSerializer,
 }
Expand description

ExecutedOps Serializer

-

Fields§

§u64_serializer: U64VarIntSerializer§operation_id_serializer: OperationIdSerializer§op_execution: BoolSerializer§slot_serializer: SlotSerializer

Implementations§

source§

impl ExecutedOpsChangesSerializer

source

pub fn new() -> ExecutedOpsChangesSerializer

Create a new ExecutedOps Serializer

-

Trait Implementations§

source§

impl Default for ExecutedOpsChangesSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<HashMap<OperationId, (bool, Slot), BuildHasherDefault<HashMapper<OperationId>>>> for ExecutedOpsChangesSerializer

Fields§

§u64_serializer: U64VarIntSerializer§operation_id_serializer: OperationIdSerializer§op_execution: BoolSerializer§slot_serializer: SlotSerializer

Implementations§

source§

impl ExecutedOpsChangesSerializer

source

pub fn new() -> ExecutedOpsChangesSerializer

Create a new ExecutedOps Serializer

+

Trait Implementations§

source§

impl Default for ExecutedOpsChangesSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<HashMap<OperationId, (bool, Slot), BuildHasherDefault<HashMapper<OperationId>>>> for ExecutedOpsChangesSerializer

source§

fn serialize( &self, value: &ExecutedOpsChanges, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_executed_ops/struct.ExecutedDenunciationsChangesDeserializer.html b/massa_executed_ops/struct.ExecutedDenunciationsChangesDeserializer.html index bc3cb1c863c..7e66e3090c6 100644 --- a/massa_executed_ops/struct.ExecutedDenunciationsChangesDeserializer.html +++ b/massa_executed_ops/struct.ExecutedDenunciationsChangesDeserializer.html @@ -1,16 +1,16 @@ ExecutedDenunciationsChangesDeserializer in massa_executed_ops - Rust
pub struct ExecutedDenunciationsChangesDeserializer {
-    u64_deserializer: U64VarIntDeserializer,
+    u64_deserializer: U64VarIntDeserializer,
     de_idx_deserializer: DenunciationIndexDeserializer,
 }
Expand description

Deserializer for ExecutedOps

-

Fields§

§u64_deserializer: U64VarIntDeserializer§de_idx_deserializer: DenunciationIndexDeserializer

Implementations§

source§

impl ExecutedDenunciationsChangesDeserializer

source

pub fn new( +

Fields§

§u64_deserializer: U64VarIntDeserializer§de_idx_deserializer: DenunciationIndexDeserializer

Implementations§

source§

impl ExecutedDenunciationsChangesDeserializer

source

pub fn new( thread_count: u8, endorsement_count: u32, max_de_changes_length: u64 ) -> ExecutedDenunciationsChangesDeserializer

Create a new deserializer for ExecutedOps

-

Trait Implementations§

Trait Implementations§

source§

impl Deserializer<HashSet<DenunciationIndex, RandomState>> for ExecutedDenunciationsChangesDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], ExecutedDenunciationsChanges, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> IResult<&'a [u8], ExecutedDenunciationsChanges, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_executed_ops/struct.ExecutedDenunciationsChangesSerializer.html b/massa_executed_ops/struct.ExecutedDenunciationsChangesSerializer.html index 31b4da25bff..cb2e4285d32 100644 --- a/massa_executed_ops/struct.ExecutedDenunciationsChangesSerializer.html +++ b/massa_executed_ops/struct.ExecutedDenunciationsChangesSerializer.html @@ -1,13 +1,13 @@ ExecutedDenunciationsChangesSerializer in massa_executed_ops - Rust
pub struct ExecutedDenunciationsChangesSerializer {
-    u64_serializer: U64VarIntSerializer,
+    u64_serializer: U64VarIntSerializer,
     de_idx_serializer: DenunciationIndexSerializer,
 }
Expand description

ExecutedOps Serializer

-

Fields§

§u64_serializer: U64VarIntSerializer§de_idx_serializer: DenunciationIndexSerializer

Implementations§

source§

impl ExecutedDenunciationsChangesSerializer

source

pub fn new() -> Self

Create a new ExecutedDenunciations Serializer

-

Trait Implementations§

source§

impl Default for ExecutedDenunciationsChangesSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<HashSet<DenunciationIndex, RandomState>> for ExecutedDenunciationsChangesSerializer

Fields§

§u64_serializer: U64VarIntSerializer§de_idx_serializer: DenunciationIndexSerializer

Implementations§

source§

impl ExecutedDenunciationsChangesSerializer

source

pub fn new() -> Self

Create a new ExecutedDenunciations Serializer

+

Trait Implementations§

source§

impl Default for ExecutedDenunciationsChangesSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<HashSet<DenunciationIndex, RandomState>> for ExecutedDenunciationsChangesSerializer

source§

fn serialize( &self, value: &ExecutedDenunciationsChanges, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_executed_ops/struct.ExecutedOps.html b/massa_executed_ops/struct.ExecutedOps.html index d4c6d7233c7..8036ae34c56 100644 --- a/massa_executed_ops/struct.ExecutedOps.html +++ b/massa_executed_ops/struct.ExecutedOps.html @@ -5,8 +5,8 @@ pub op_exec_status: HashMap<OperationId, bool>, operation_id_deserializer: OperationIdDeserializer, operation_id_serializer: OperationIdSerializer, - bool_deserializer: BoolDeserializer, - bool_serializer: BoolSerializer, + bool_deserializer: BoolDeserializer, + bool_serializer: BoolSerializer, slot_deserializer: SlotDeserializer, slot_serializer: SlotSerializer, }
Expand description

A structure to list and prune previously executed operations

@@ -14,7 +14,7 @@
§db: ShareableMassaDBController

RocksDB Instance

§sorted_ops: BTreeMap<Slot, PreHashSet<OperationId>>

Executed operations btreemap with slot as index for better pruning complexity

§op_exec_status: HashMap<OperationId, bool>

execution status of operations (true: success, false: fail)

-
§operation_id_deserializer: OperationIdDeserializer§operation_id_serializer: OperationIdSerializer§bool_deserializer: BoolDeserializer§bool_serializer: BoolSerializer§slot_deserializer: SlotDeserializer§slot_serializer: SlotSerializer

Implementations§

source§

impl ExecutedOps

source

pub fn new(config: ExecutedOpsConfig, db: ShareableMassaDBController) -> Self

Creates a new ExecutedOps

+
§operation_id_deserializer: OperationIdDeserializer§operation_id_serializer: OperationIdSerializer§bool_deserializer: BoolDeserializer§bool_serializer: BoolSerializer§slot_deserializer: SlotDeserializer§slot_serializer: SlotSerializer

Implementations§

source§

impl ExecutedOps

source

pub fn new(config: ExecutedOpsConfig, db: ShareableMassaDBController) -> Self

Creates a new ExecutedOps

source

pub fn get_ops_exec_status(&self, batch: &[OperationId]) -> Vec<Option<bool>>

Get the execution statuses of a set of operations. Returns a list where each element is None if no execution was found for that op, or a boolean indicating whether the execution was successful (true) or had an error (false).

diff --git a/massa_executed_ops/struct.ExecutedOpsChangesDeserializer.html b/massa_executed_ops/struct.ExecutedOpsChangesDeserializer.html index 37eb4a92abd..62dea7a5e02 100644 --- a/massa_executed_ops/struct.ExecutedOpsChangesDeserializer.html +++ b/massa_executed_ops/struct.ExecutedOpsChangesDeserializer.html @@ -1,17 +1,17 @@ ExecutedOpsChangesDeserializer in massa_executed_ops - Rust
pub struct ExecutedOpsChangesDeserializer {
-    u64_deserializer: U64VarIntDeserializer,
+    u64_deserializer: U64VarIntDeserializer,
     operation_id_deserializer: OperationIdDeserializer,
-    op_execution_deserializer: BoolDeserializer,
+    op_execution_deserializer: BoolDeserializer,
     slot_deserializer: SlotDeserializer,
 }
Expand description

Deserializer for ExecutedOps

-

Fields§

§u64_deserializer: U64VarIntDeserializer§operation_id_deserializer: OperationIdDeserializer§op_execution_deserializer: BoolDeserializer§slot_deserializer: SlotDeserializer

Implementations§

source§

impl ExecutedOpsChangesDeserializer

source

pub fn new( +

Fields§

§u64_deserializer: U64VarIntDeserializer§operation_id_deserializer: OperationIdDeserializer§op_execution_deserializer: BoolDeserializer§slot_deserializer: SlotDeserializer

Implementations§

source§

impl ExecutedOpsChangesDeserializer

source

pub fn new( thread_count: u8, max_ops_changes_length: u64 ) -> ExecutedOpsChangesDeserializer

Create a new deserializer for ExecutedOps

-

Trait Implementations§

Trait Implementations§

source§

impl Deserializer<HashMap<OperationId, (bool, Slot), BuildHasherDefault<HashMapper<OperationId>>>> for ExecutedOpsChangesDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], ExecutedOpsChanges, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> IResult<&'a [u8], ExecutedOpsChanges, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_executed_ops/struct.ExecutedOpsChangesSerializer.html b/massa_executed_ops/struct.ExecutedOpsChangesSerializer.html index 1b801329c54..d05e4dcb330 100644 --- a/massa_executed_ops/struct.ExecutedOpsChangesSerializer.html +++ b/massa_executed_ops/struct.ExecutedOpsChangesSerializer.html @@ -1,15 +1,15 @@ ExecutedOpsChangesSerializer in massa_executed_ops - Rust
pub struct ExecutedOpsChangesSerializer {
-    u64_serializer: U64VarIntSerializer,
+    u64_serializer: U64VarIntSerializer,
     operation_id_serializer: OperationIdSerializer,
-    op_execution: BoolSerializer,
+    op_execution: BoolSerializer,
     slot_serializer: SlotSerializer,
 }
Expand description

ExecutedOps Serializer

-

Fields§

§u64_serializer: U64VarIntSerializer§operation_id_serializer: OperationIdSerializer§op_execution: BoolSerializer§slot_serializer: SlotSerializer

Implementations§

source§

impl ExecutedOpsChangesSerializer

source

pub fn new() -> ExecutedOpsChangesSerializer

Create a new ExecutedOps Serializer

-

Trait Implementations§

source§

impl Default for ExecutedOpsChangesSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<HashMap<OperationId, (bool, Slot), BuildHasherDefault<HashMapper<OperationId>>>> for ExecutedOpsChangesSerializer

Fields§

§u64_serializer: U64VarIntSerializer§operation_id_serializer: OperationIdSerializer§op_execution: BoolSerializer§slot_serializer: SlotSerializer

Implementations§

source§

impl ExecutedOpsChangesSerializer

source

pub fn new() -> ExecutedOpsChangesSerializer

Create a new ExecutedOps Serializer

+

Trait Implementations§

source§

impl Default for ExecutedOpsChangesSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<HashMap<OperationId, (bool, Slot), BuildHasherDefault<HashMapper<OperationId>>>> for ExecutedOpsChangesSerializer

source§

fn serialize( &self, value: &ExecutedOpsChanges, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_execution_worker/active_history/struct.ActiveHistory.html b/massa_execution_worker/active_history/struct.ActiveHistory.html index fce97f22516..4a84e9620be 100644 --- a/massa_execution_worker/active_history/struct.ActiveHistory.html +++ b/massa_execution_worker/active_history/struct.ActiveHistory.html @@ -5,9 +5,9 @@

Returns a HistorySearchResult.

source

pub fn fetch_message( &self, - message_id: &AsyncMessageId, - current_updates: AsyncMessageUpdate -) -> HistorySearchResult<SetUpdateOrDelete<AsyncMessage, AsyncMessageUpdate>>

Lazily query (from end to beginning) a message based on its id

+ message_id: &AsyncMessageId, + current_updates: AsyncMessageUpdate +) -> HistorySearchResult<SetUpdateOrDelete<AsyncMessage, AsyncMessageUpdate>>

Lazily query (from end to beginning) a message based on its id

Returns a HistorySearchResult.

source

pub fn fetch_executed_denunciation( &self, diff --git a/massa_execution_worker/context/struct.ExecutionContext.html b/massa_execution_worker/context/struct.ExecutionContext.html index 8ff4068feb4..2f50571e8c0 100644 --- a/massa_execution_worker/context/struct.ExecutionContext.html +++ b/massa_execution_worker/context/struct.ExecutionContext.html @@ -104,7 +104,7 @@

returns
&mut self, max_gas: u64, async_msg_cst_gas_cost: u64 -) -> Vec<(Option<Bytecode>, AsyncMessage)>

This function takes a batch of asynchronous operations to execute, removing them from the speculative pool.

+) -> Vec<(Option<Bytecode>, AsyncMessage)>

This function takes a batch of asynchronous operations to execute, removing them from the speculative pool.

Arguments
  • max_gas: maximal amount of asynchronous gas available
  • @@ -209,14 +209,14 @@
    Arguments
  • amount: amount of coins to transfer
  • check_rights: check that the sender has the right to spend the coins according to the call stack
-
source

pub fn push_new_message(&mut self, msg: AsyncMessage)

Add a new asynchronous message to speculative pool

+
source

pub fn push_new_message(&mut self, msg: AsyncMessage)

Add a new asynchronous message to speculative pool

Arguments
  • msg: asynchronous message to add
source

pub fn cancel_async_message( &mut self, - msg: &AsyncMessage + msg: &AsyncMessage ) -> Option<(Address, Result<Amount, String>)>

Cancels an asynchronous message, reimbursing msg.coins to the sender

Arguments
source

pub fn execute_async_message( &self, - message: AsyncMessage, + message: AsyncMessage, bytecode: Option<Bytecode> ) -> Result<AsyncMessageExecutionResult, ExecutionError>

Tries to execute an asynchronous message If the execution failed reimburse the message sender.

diff --git a/massa_execution_worker/speculative_async_pool/fn.is_triggered.html b/massa_execution_worker/speculative_async_pool/fn.is_triggered.html index e4cf65e23aa..b88eee8c9e9 100644 --- a/massa_execution_worker/speculative_async_pool/fn.is_triggered.html +++ b/massa_execution_worker/speculative_async_pool/fn.is_triggered.html @@ -1,5 +1,5 @@ is_triggered in massa_execution_worker::speculative_async_pool - Rust
fn is_triggered(
-    filter: &AsyncMessageTrigger,
+    filter: &AsyncMessageTrigger,
     ledger_changes: &LedgerChanges
 ) -> bool
Expand description

Check in the ledger changes if a message trigger has been triggered

\ No newline at end of file diff --git a/massa_execution_worker/speculative_async_pool/struct.SpeculativeAsyncPool.html b/massa_execution_worker/speculative_async_pool/struct.SpeculativeAsyncPool.html index 201bf688c18..00a11ef7529 100644 --- a/massa_execution_worker/speculative_async_pool/struct.SpeculativeAsyncPool.html +++ b/massa_execution_worker/speculative_async_pool/struct.SpeculativeAsyncPool.html @@ -1,30 +1,30 @@ SpeculativeAsyncPool in massa_execution_worker::speculative_async_pool - Rust
pub(crate) struct SpeculativeAsyncPool {
     final_state: Arc<RwLock<dyn FinalStateController>>,
     active_history: Arc<RwLock<ActiveHistory>>,
-    pool_changes: AsyncPoolChanges,
-    message_infos: BTreeMap<AsyncMessageId, AsyncMessageInfo>,
-}

Fields§

§final_state: Arc<RwLock<dyn FinalStateController>>§active_history: Arc<RwLock<ActiveHistory>>§pool_changes: AsyncPoolChanges§message_infos: BTreeMap<AsyncMessageId, AsyncMessageInfo>

Implementations§

source§

impl SpeculativeAsyncPool

source

pub fn new( + pool_changes: AsyncPoolChanges, + message_infos: BTreeMap<AsyncMessageId, AsyncMessageInfo>, +}

Fields§

§final_state: Arc<RwLock<dyn FinalStateController>>§active_history: Arc<RwLock<ActiveHistory>>§pool_changes: AsyncPoolChanges§message_infos: BTreeMap<AsyncMessageId, AsyncMessageInfo>

Implementations§

source§

impl SpeculativeAsyncPool

source

pub fn new( final_state: Arc<RwLock<dyn FinalStateController>>, active_history: Arc<RwLock<ActiveHistory>> ) -> Self

Creates a new SpeculativeAsyncPool

-
Arguments
source

pub fn take(&mut self) -> AsyncPoolChanges

Returns the changes caused to the SpeculativeAsyncPool since its creation, +

Arguments
source

pub fn take(&mut self) -> AsyncPoolChanges

Returns the changes caused to the SpeculativeAsyncPool since its creation, and resets their local value to nothing. This must be called after settle_emitted_messages() The message_infos should already be removed if taken, no need to do it here.

source

pub fn get_snapshot( &self -) -> (AsyncPoolChanges, BTreeMap<AsyncMessageId, AsyncMessageInfo>)

Takes a snapshot (clone) of the emitted messages

+) -> (AsyncPoolChanges, BTreeMap<AsyncMessageId, AsyncMessageInfo>)

Takes a snapshot (clone) of the emitted messages

source

pub fn reset_to_snapshot( &mut self, - snapshot: (AsyncPoolChanges, BTreeMap<AsyncMessageId, AsyncMessageInfo>) + snapshot: (AsyncPoolChanges, BTreeMap<AsyncMessageId, AsyncMessageInfo>) )

Resets the SpeculativeAsyncPool emitted messages to a snapshot (see get_snapshot method)

-
source

pub fn push_new_message(&mut self, msg: AsyncMessage)

Add a new message to the list of changes of this SpeculativeAsyncPool

+
source

pub fn push_new_message(&mut self, msg: AsyncMessage)

Add a new message to the list of changes of this SpeculativeAsyncPool

source

pub fn take_batch_to_execute( &mut self, slot: Slot, max_gas: u64, async_msg_cst_gas_cost: u64 -) -> Vec<(AsyncMessageId, AsyncMessage)>

Takes a batch of asynchronous messages to execute, +) -> Vec<(AsyncMessageId, AsyncMessage)>

Takes a batch of asynchronous messages to execute, removing them from the speculative asynchronous pool and settling their deletion from it in the changes accumulator.

Arguments
    @@ -37,7 +37,7 @@
    Returns
    &mut self, slot: &Slot, ledger_changes: &LedgerChanges -) -> Vec<(AsyncMessageId, AsyncMessage)>

    Settle a slot. +) -> Vec<(AsyncMessageId, AsyncMessage)>

    Settle a slot. Consume newly emitted messages into self.async_pool, recording changes into self.settled_changes.

    Arguments
      @@ -48,9 +48,9 @@
      Returns

      the list of deleted (message_id, message), used for reimbursement

source

fn fetch_msgs( &mut self, - wanted_ids: Vec<&AsyncMessageId>, + wanted_ids: Vec<&AsyncMessageId>, delete_existing: bool -) -> Vec<(AsyncMessageId, AsyncMessage)>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Vec<(AsyncMessageId, AsyncMessage)>

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> ArchivePointee for T

§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
source§

impl<T> Borrow<T> for Twhere diff --git a/massa_execution_worker/speculative_executed_denunciations/index.html b/massa_execution_worker/speculative_executed_denunciations/index.html index 215a2b60626..203972c1ab3 100644 --- a/massa_execution_worker/speculative_executed_denunciations/index.html +++ b/massa_execution_worker/speculative_executed_denunciations/index.html @@ -1,3 +1,3 @@ -massa_execution_worker::speculative_executed_denunciations - Rust
Expand description

Copyright (c) 2023 MASSA LABS info@massa.net +massa_execution_worker::speculative_executed_denunciations - Rust

Expand description

Copyright (c) 2023 MASSA LABS info@massa.net Speculative list of previously executed denunciations, to prevent reuse.

Structs

\ No newline at end of file diff --git a/massa_execution_worker/speculative_executed_denunciations/struct.SpeculativeExecutedDenunciations.html b/massa_execution_worker/speculative_executed_denunciations/struct.SpeculativeExecutedDenunciations.html index 8f1401bea32..c0c7fad05ca 100644 --- a/massa_execution_worker/speculative_executed_denunciations/struct.SpeculativeExecutedDenunciations.html +++ b/massa_execution_worker/speculative_executed_denunciations/struct.SpeculativeExecutedDenunciations.html @@ -7,7 +7,7 @@
§active_history: Arc<RwLock<ActiveHistory>>

History of the outputs of recently executed slots. Slots should be consecutive, newest at the back.

§executed_denunciations: ExecutedDenunciationsChanges

executed operations: maps the operation ID to its validity slot end - included

-

Implementations§

source§

impl SpeculativeExecutedDenunciations

source

pub fn new( +

Implementations§

source§

impl SpeculativeExecutedDenunciations

source

pub fn new( final_state: Arc<RwLock<dyn FinalStateController>>, active_history: Arc<RwLock<ActiveHistory>> ) -> Self

Creates a new SpeculativeExecutedDenunciations

@@ -20,8 +20,8 @@
Arguments
its creation, and resets their local value to nothing

source

pub fn get_snapshot(&self) -> ExecutedDenunciationsChanges

Takes a snapshot (clone) of the changes since its creation

source

pub fn reset_to_snapshot(&mut self, snapshot: ExecutedDenunciationsChanges)

Resets the SpeculativeRollState to a snapshot (see get_snapshot method)

-
source

pub fn is_denunciation_executed(&self, de_idx: &DenunciationIndex) -> bool

Checks if a denunciation was executed previously

-
source

pub fn insert_executed_denunciation(&mut self, de_idx: DenunciationIndex)

Insert an executed denunciation.

+
source

pub fn is_denunciation_executed(&self, de_idx: &DenunciationIndex) -> bool

Checks if a denunciation was executed previously

+
source

pub fn insert_executed_denunciation(&mut self, de_idx: DenunciationIndex)

Insert an executed denunciation.

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> ArchivePointee for T

§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata diff --git a/massa_execution_worker/speculative_executed_ops/index.html b/massa_execution_worker/speculative_executed_ops/index.html index 4c6ba802e8e..414ba7f07cf 100644 --- a/massa_execution_worker/speculative_executed_ops/index.html +++ b/massa_execution_worker/speculative_executed_ops/index.html @@ -1,3 +1,3 @@ -massa_execution_worker::speculative_executed_ops - Rust
Expand description

Copyright (c) 2022 MASSA LABS info@massa.net +massa_execution_worker::speculative_executed_ops - Rust

Expand description

Copyright (c) 2022 MASSA LABS info@massa.net Speculative list of previously executed operations, to prevent reuse.

Structs

\ No newline at end of file diff --git a/massa_execution_worker/speculative_executed_ops/struct.SpeculativeExecutedOps.html b/massa_execution_worker/speculative_executed_ops/struct.SpeculativeExecutedOps.html index 282175c09ec..d5c68ea30a1 100644 --- a/massa_execution_worker/speculative_executed_ops/struct.SpeculativeExecutedOps.html +++ b/massa_execution_worker/speculative_executed_ops/struct.SpeculativeExecutedOps.html @@ -7,7 +7,7 @@
§active_history: Arc<RwLock<ActiveHistory>>

History of the outputs of recently executed slots. Slots should be consecutive, newest at the back.

§executed_ops: ExecutedOpsChanges

executed operations: maps the operation ID to its validity slot end - included

-

Implementations§

source§

impl SpeculativeExecutedOps

source

pub fn new( +

Implementations§

source§

impl SpeculativeExecutedOps

source

pub fn new( final_state: Arc<RwLock<dyn FinalStateController>>, active_history: Arc<RwLock<ActiveHistory>> ) -> Self

Creates a new SpeculativeExecutedOps

@@ -20,8 +20,8 @@
Arguments
and resets their local value to nothing

source

pub fn get_snapshot(&self) -> ExecutedOpsChanges

Takes a snapshot (clone) of the changes caused to the SpeculativeExecutedOps since its creation

source

pub fn reset_to_snapshot(&mut self, snapshot: ExecutedOpsChanges)

Resets the SpeculativeRollState to a snapshot (see get_snapshot method)

-
source

pub fn is_op_executed(&self, op_id: &OperationId) -> bool

Checks if an operation was executed previously

-
source

pub fn insert_executed_op( +

source

pub fn is_op_executed(&self, op_id: &OperationId) -> bool

Checks if an operation was executed previously

+
source

pub fn insert_executed_op( &mut self, op_id: OperationId, op_exec_status: bool, diff --git a/massa_factory_exports/struct.FactoryChannels.html b/massa_factory_exports/struct.FactoryChannels.html index b154e444b75..faec42c63a0 100644 --- a/massa_factory_exports/struct.FactoryChannels.html +++ b/massa_factory_exports/struct.FactoryChannels.html @@ -2,13 +2,13 @@ pub selector: Box<dyn SelectorController>, pub consensus: Box<dyn ConsensusController>, pub pool: Box<dyn PoolController>, - pub protocol: Box<dyn ProtocolController>, + pub protocol: Box<dyn ProtocolController>, pub storage: Storage, }
Expand description

List of channels the factory will send commands to

Fields§

§selector: Box<dyn SelectorController>

selector controller to get draws

§consensus: Box<dyn ConsensusController>

consensus controller

§pool: Box<dyn PoolController>

pool controller

-
§protocol: Box<dyn ProtocolController>

protocol controller

+
§protocol: Box<dyn ProtocolController>

protocol controller

§storage: Storage

storage instance

Trait Implementations§

source§

impl Clone for FactoryChannels

source§

fn clone(&self) -> FactoryChannels

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

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> ArchivePointee for T

§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
§

fn pointer_metadata( diff --git a/massa_factory_exports/types/struct.FactoryChannels.html b/massa_factory_exports/types/struct.FactoryChannels.html index d03a1967bc6..9b9d9bce5ee 100644 --- a/massa_factory_exports/types/struct.FactoryChannels.html +++ b/massa_factory_exports/types/struct.FactoryChannels.html @@ -2,13 +2,13 @@ pub selector: Box<dyn SelectorController>, pub consensus: Box<dyn ConsensusController>, pub pool: Box<dyn PoolController>, - pub protocol: Box<dyn ProtocolController>, + pub protocol: Box<dyn ProtocolController>, pub storage: Storage, }
Expand description

List of channels the factory will send commands to

Fields§

§selector: Box<dyn SelectorController>

selector controller to get draws

§consensus: Box<dyn ConsensusController>

consensus controller

§pool: Box<dyn PoolController>

pool controller

-
§protocol: Box<dyn ProtocolController>

protocol controller

+
§protocol: Box<dyn ProtocolController>

protocol controller

§storage: Storage

storage instance

Trait Implementations§

source§

impl Clone for FactoryChannels

source§

fn clone(&self) -> FactoryChannels

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

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> ArchivePointee for T

§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
§

fn pointer_metadata( diff --git a/massa_final_state/state_changes/struct.StateChanges.html b/massa_final_state/state_changes/struct.StateChanges.html index f9bb1f27263..a21f1736a5d 100644 --- a/massa_final_state/state_changes/struct.StateChanges.html +++ b/massa_final_state/state_changes/struct.StateChanges.html @@ -14,15 +14,15 @@

§execution_trail_hash_change: SetOrKeep<Hash>

execution trail hash change

Implementations§

source§

impl StateChanges

source

pub fn apply(&mut self, changes: StateChanges)

extends the current StateChanges with another one

Trait Implementations§

source§

impl Clone for StateChanges

source§

fn clone(&self) -> StateChanges

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 StateChanges

source§

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

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

impl Default for StateChanges

source§

fn default() -> StateChanges

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for StateChanges

source§

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 Deserializer<StateChanges> for StateChangesDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Deserializer<StateChanges> for StateChangesDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], StateChanges, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl From<StateChanges> for StateChanges

source§

fn from(value: StateChanges) -> Self

Converts to this type from the input type.
source§

impl Serialize for StateChanges

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<StateChanges> for StateChangesSerializer

source§

fn serialize( +) -> IResult<&'a [u8], StateChanges, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl From<StateChanges> for StateChanges

source§

fn from(value: StateChanges) -> Self

Converts to this type from the input type.
source§

impl Serialize for StateChanges

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<StateChanges> for StateChangesSerializer

source§

fn serialize( &self, value: &StateChanges, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_final_state/state_changes/struct.StateChangesDeserializer.html b/massa_final_state/state_changes/struct.StateChangesDeserializer.html index e5072b9edd0..47910644a11 100644 --- a/massa_final_state/state_changes/struct.StateChangesDeserializer.html +++ b/massa_final_state/state_changes/struct.StateChangesDeserializer.html @@ -22,10 +22,10 @@ endorsement_count: u32, max_de_changes_length: u64 ) -> Self

Creates a StateChangesDeserializer

-

Trait Implementations§

source§

impl Deserializer<StateChanges> for StateChangesDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Trait Implementations§

source§

impl Deserializer<StateChanges> for StateChangesDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], StateChanges, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> IResult<&'a [u8], StateChanges, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_final_state/state_changes/struct.StateChangesSerializer.html b/massa_final_state/state_changes/struct.StateChangesSerializer.html index c8e863b6e10..881dca8a624 100644 --- a/massa_final_state/state_changes/struct.StateChangesSerializer.html +++ b/massa_final_state/state_changes/struct.StateChangesSerializer.html @@ -7,11 +7,11 @@ execution_trail_hash_change_serializer: SetOrKeepSerializer<Hash, HashSerializer>, }
Expand description

Basic StateChanges serializer.

Fields§

§ledger_changes_serializer: LedgerChangesSerializer§async_pool_changes_serializer: AsyncPoolChangesSerializer§pos_changes_serializer: PoSChangesSerializer§ops_changes_serializer: ExecutedOpsChangesSerializer§de_changes_serializer: ExecutedDenunciationsChangesSerializer§execution_trail_hash_change_serializer: SetOrKeepSerializer<Hash, HashSerializer>

Implementations§

source§

impl StateChangesSerializer

source

pub fn new() -> Self

Creates a StateChangesSerializer

-

Trait Implementations§

Trait Implementations§

source§

impl Default for StateChangesSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<StateChanges> for StateChangesSerializer

source§

fn serialize( &self, value: &StateChanges, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_final_state/struct.StateChanges.html b/massa_final_state/struct.StateChanges.html index dec5ddf5938..86981d1d522 100644 --- a/massa_final_state/struct.StateChanges.html +++ b/massa_final_state/struct.StateChanges.html @@ -14,15 +14,15 @@

§execution_trail_hash_change: SetOrKeep<Hash>

execution trail hash change

Implementations§

source§

impl StateChanges

source

pub fn apply(&mut self, changes: StateChanges)

extends the current StateChanges with another one

Trait Implementations§

source§

impl Clone for StateChanges

source§

fn clone(&self) -> StateChanges

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 StateChanges

source§

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

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

impl Default for StateChanges

source§

fn default() -> StateChanges

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for StateChanges

source§

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 Deserializer<StateChanges> for StateChangesDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Deserializer<StateChanges> for StateChangesDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], StateChanges, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl From<StateChanges> for StateChanges

source§

fn from(value: StateChanges) -> Self

Converts to this type from the input type.
source§

impl Serialize for StateChanges

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<StateChanges> for StateChangesSerializer

source§

fn serialize( +) -> IResult<&'a [u8], StateChanges, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl From<StateChanges> for StateChanges

source§

fn from(value: StateChanges) -> Self

Converts to this type from the input type.
source§

impl Serialize for StateChanges

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<StateChanges> for StateChangesSerializer

source§

fn serialize( &self, value: &StateChanges, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_final_state/struct.StateChangesDeserializer.html b/massa_final_state/struct.StateChangesDeserializer.html index 1e4d3c992b4..0296b6fa5a9 100644 --- a/massa_final_state/struct.StateChangesDeserializer.html +++ b/massa_final_state/struct.StateChangesDeserializer.html @@ -22,10 +22,10 @@ endorsement_count: u32, max_de_changes_length: u64 ) -> Self

Creates a StateChangesDeserializer

-

Trait Implementations§

source§

impl Deserializer<StateChanges> for StateChangesDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Trait Implementations§

source§

impl Deserializer<StateChanges> for StateChangesDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], StateChanges, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> IResult<&'a [u8], StateChanges, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_final_state/struct.StateChangesSerializer.html b/massa_final_state/struct.StateChangesSerializer.html index c1e5721075c..390e65ea3d5 100644 --- a/massa_final_state/struct.StateChangesSerializer.html +++ b/massa_final_state/struct.StateChangesSerializer.html @@ -7,11 +7,11 @@ execution_trail_hash_change_serializer: SetOrKeepSerializer<Hash, HashSerializer>, }
Expand description

Basic StateChanges serializer.

Fields§

§ledger_changes_serializer: LedgerChangesSerializer§async_pool_changes_serializer: AsyncPoolChangesSerializer§pos_changes_serializer: PoSChangesSerializer§ops_changes_serializer: ExecutedOpsChangesSerializer§de_changes_serializer: ExecutedDenunciationsChangesSerializer§execution_trail_hash_change_serializer: SetOrKeepSerializer<Hash, HashSerializer>

Implementations§

source§

impl StateChangesSerializer

source

pub fn new() -> Self

Creates a StateChangesSerializer

-

Trait Implementations§

Trait Implementations§

source§

impl Default for StateChangesSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<StateChanges> for StateChangesSerializer

source§

fn serialize( &self, value: &StateChanges, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_grpc/error/enum.GrpcError.html b/massa_grpc/error/enum.GrpcError.html index 065d87a2938..7a1a5996282 100644 --- a/massa_grpc/error/enum.GrpcError.html +++ b/massa_grpc/error/enum.GrpcError.html @@ -3,7 +3,7 @@ MassaSignatureError(MassaSignatureError), ConsensusError(ConsensusError), ExecutionError(ExecutionError), - ProtocolError(ProtocolError), + ProtocolError(ProtocolError), ReflectionError(Error), ModelsError(ModelsError), TimeError(TimeError), @@ -17,7 +17,7 @@

§

MassaSignatureError(MassaSignatureError)

massa_hash error: {0}

§

ConsensusError(ConsensusError)

consensus error: {0}

§

ExecutionError(ExecutionError)

execution error: {0}

-
§

ProtocolError(ProtocolError)

Protocol error: {0}

+
§

ProtocolError(ProtocolError)

Protocol error: {0}

§

ReflectionError(Error)

Reflection error : {0}

§

ModelsError(ModelsError)

Models error: {0}

§

TimeError(TimeError)

Time error: {0}

@@ -26,7 +26,7 @@
§

InternalServerError(String)

Internal server error: {0}

§

InvalidArgument(String)

Invalid argument error: {0}

§

Unimplemented(String)

Not implemented error: {0}

-

Trait Implementations§

source§

impl Debug for GrpcError

source§

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

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

impl Display for GrpcError

source§

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

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

impl Error for GrpcError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<ConsensusError> for GrpcError

source§

fn from(source: ConsensusError) -> Self

Converts to this type from the input type.
source§

impl From<Error> for GrpcError

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl From<ExecutionError> for GrpcError

source§

fn from(source: ExecutionError) -> Self

Converts to this type from the input type.
source§

impl From<FactoryError> for GrpcError

source§

fn from(source: FactoryError) -> Self

Converts to this type from the input type.
source§

impl From<GrpcError> for Status

source§

fn from(error: GrpcError) -> Self

Converts to this type from the input type.
source§

impl From<MassaHashError> for GrpcError

source§

fn from(source: MassaHashError) -> Self

Converts to this type from the input type.
source§

impl From<MassaSignatureError> for GrpcError

source§

fn from(source: MassaSignatureError) -> Self

Converts to this type from the input type.
source§

impl From<ModelsError> for GrpcError

source§

fn from(source: ModelsError) -> Self

Converts to this type from the input type.
source§

impl From<ProtocolError> for GrpcError

source§

fn from(source: ProtocolError) -> Self

Converts to this type from the input type.
source§

impl From<TimeError> for GrpcError

source§

fn from(source: TimeError) -> Self

Converts to this type from the input type.
source§

impl From<WalletError> for GrpcError

source§

fn from(source: WalletError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +

Trait Implementations§

source§

impl Debug for GrpcError

source§

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

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

impl Display for GrpcError

source§

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

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

impl Error for GrpcError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<ConsensusError> for GrpcError

source§

fn from(source: ConsensusError) -> Self

Converts to this type from the input type.
source§

impl From<Error> for GrpcError

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl From<ExecutionError> for GrpcError

source§

fn from(source: ExecutionError) -> Self

Converts to this type from the input type.
source§

impl From<FactoryError> for GrpcError

source§

fn from(source: FactoryError) -> Self

Converts to this type from the input type.
source§

impl From<GrpcError> for Status

source§

fn from(error: GrpcError) -> Self

Converts to this type from the input type.
source§

impl From<MassaHashError> for GrpcError

source§

fn from(source: MassaHashError) -> Self

Converts to this type from the input type.
source§

impl From<MassaSignatureError> for GrpcError

source§

fn from(source: MassaSignatureError) -> Self

Converts to this type from the input type.
source§

impl From<ModelsError> for GrpcError

source§

fn from(source: ModelsError) -> Self

Converts to this type from the input type.
source§

impl From<ProtocolError> for GrpcError

source§

fn from(source: ProtocolError) -> Self

Converts to this type from the input type.
source§

impl From<TimeError> for GrpcError

source§

fn from(source: TimeError) -> Self

Converts to this type from the input type.
source§

impl From<WalletError> for GrpcError

source§

fn from(source: WalletError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> ArchivePointee for T

§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere diff --git a/massa_grpc/server/struct.MassaPrivateGrpc.html b/massa_grpc/server/struct.MassaPrivateGrpc.html index b1db4c1e54d..eaf365ca035 100644 --- a/massa_grpc/server/struct.MassaPrivateGrpc.html +++ b/massa_grpc/server/struct.MassaPrivateGrpc.html @@ -2,11 +2,11 @@ pub consensus_controller: Box<dyn ConsensusController>, pub execution_controller: Box<dyn ExecutionController>, pub pool_controller: Box<dyn PoolController>, - pub protocol_controller: Box<dyn ProtocolController>, + pub protocol_controller: Box<dyn ProtocolController>, pub stop_cv: Arc<(Mutex<bool>, Condvar)>, pub node_wallet: Arc<RwLock<Wallet>>, pub grpc_config: GrpcConfig, - pub protocol_config: ProtocolConfig, + pub protocol_config: ProtocolConfig, pub node_id: NodeId, pub mip_store: MipStore, pub version: Version, @@ -15,12 +15,12 @@

Fields§

§consensus_controller: Box<dyn ConsensusController>

link to the consensus component

§execution_controller: Box<dyn ExecutionController>

link to the execution component

§pool_controller: Box<dyn PoolController>

link to the pool component

-
§protocol_controller: Box<dyn ProtocolController>

link to the protocol component

+
§protocol_controller: Box<dyn ProtocolController>

link to the protocol component

§stop_cv: Arc<(Mutex<bool>, Condvar)>

Mechanism by which to gracefully shut down. To be a clone of the same pair provided to the ctrlc handler.

§node_wallet: Arc<RwLock<Wallet>>

User wallet

§grpc_config: GrpcConfig

gRPC configuration

-
§protocol_config: ProtocolConfig

Massa protocol configuration

+
§protocol_config: ProtocolConfig

Massa protocol configuration

§node_id: NodeId

our node id

§mip_store: MipStore

database for all MIP info

§version: Version

node version

diff --git a/massa_grpc/server/struct.MassaPublicGrpc.html b/massa_grpc/server/struct.MassaPublicGrpc.html index b8fd919c061..7eff1294b7b 100644 --- a/massa_grpc/server/struct.MassaPublicGrpc.html +++ b/massa_grpc/server/struct.MassaPublicGrpc.html @@ -5,11 +5,11 @@ pub execution_channels: ExecutionChannels, pub pool_broadcasts: PoolBroadcasts, pub pool_controller: Box<dyn PoolController>, - pub protocol_controller: Box<dyn ProtocolController>, + pub protocol_controller: Box<dyn ProtocolController>, pub selector_controller: Box<dyn SelectorController>, pub storage: Storage, pub grpc_config: GrpcConfig, - pub protocol_config: ProtocolConfig, + pub protocol_config: ProtocolConfig, pub node_id: NodeId, pub version: Version, pub keypair_factory: KeyPairFactory, @@ -20,11 +20,11 @@
§execution_channels: ExecutionChannels

link(channels) to the execution component

§pool_broadcasts: PoolBroadcasts

Broadcasts made by pool component

§pool_controller: Box<dyn PoolController>

link to the pool component

-
§protocol_controller: Box<dyn ProtocolController>

link to the protocol component

+
§protocol_controller: Box<dyn ProtocolController>

link to the protocol component

§selector_controller: Box<dyn SelectorController>

link to the selector component

§storage: Storage

link to the storage component

§grpc_config: GrpcConfig

gRPC configuration

-
§protocol_config: ProtocolConfig

Massa protocol configuration

+
§protocol_config: ProtocolConfig

Massa protocol configuration

§node_id: NodeId

our node id

§version: Version

node version

§keypair_factory: KeyPairFactory

keypair factory

diff --git a/massa_ledger_exports/enum.KeyType.html b/massa_ledger_exports/enum.KeyType.html index f74e75aa09d..c4b22f29de6 100644 --- a/massa_ledger_exports/enum.KeyType.html +++ b/massa_ledger_exports/enum.KeyType.html @@ -3,16 +3,16 @@ BALANCE, BYTECODE, DATASTORE(Vec<u8>), -}

Variants§

§

VERSION

§

BALANCE

§

BYTECODE

§

DATASTORE(Vec<u8>)

Trait Implementations§

source§

impl Clone for KeyType

source§

fn clone(&self) -> KeyType

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 KeyType

source§

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

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

impl Deserializer<KeyType> for KeyTypeDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +}

Variants§

§

VERSION

§

BALANCE

§

BYTECODE

§

DATASTORE(Vec<u8>)

Trait Implementations§

source§

impl Clone for KeyType

source§

fn clone(&self) -> KeyType

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 KeyType

source§

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

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

impl Deserializer<KeyType> for KeyTypeDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, input: &'a [u8] -) -> IResult<&'a [u8], KeyType, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl PartialEq<KeyType> for KeyType

source§

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

This method tests for self and other values to be equal, and is used +) -> IResult<&'a [u8], KeyType, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl PartialEq<KeyType> for KeyType

source§

fn eq(&self, other: &KeyType) -> 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 Serializer<KeyType> for KeyTypeSerializer

source§

fn serialize( +sufficient, and should not be overridden without very good reason.

source§

impl Serializer<KeyType> for KeyTypeSerializer

source§

fn serialize( &self, value: &KeyType, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Eq for KeyType

source§

impl StructuralEq for KeyType

source§

impl StructuralPartialEq for KeyType

Auto Trait Implementations§

§

impl RefUnwindSafe for KeyType

§

impl Send for KeyType

§

impl Sync for KeyType

§

impl Unpin for KeyType

§

impl UnwindSafe for KeyType

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Eq for KeyType

source§

impl StructuralEq for KeyType

source§

impl StructuralPartialEq for KeyType

Auto Trait Implementations§

§

impl RefUnwindSafe for KeyType

§

impl Send for KeyType

§

impl Sync for KeyType

§

impl Unpin for KeyType

§

impl UnwindSafe for KeyType

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_ledger_exports/enum.SetOrDelete.html b/massa_ledger_exports/enum.SetOrDelete.html index 66b482ab0af..ba04b48deca 100644 --- a/massa_ledger_exports/enum.SetOrDelete.html +++ b/massa_ledger_exports/enum.SetOrDelete.html @@ -7,18 +7,18 @@

Trait Implementations§

source§

impl<T: Clone> Applicable<SetOrDelete<T>> for SetOrDelete<T>

allows applying another SetOrDelete to the current one

source§

fn apply(&mut self, other: Self)

apply changes from other to mutable self
source§

impl<T: Clone + Clone> Clone for SetOrDelete<T>

source§

fn clone(&self) -> SetOrDelete<T>

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<T: Debug + Clone> Debug for SetOrDelete<T>

source§

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

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

impl<'de, T> Deserialize<'de> for SetOrDelete<T>where T: Deserialize<'de> + Clone,

source§

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<T: Clone, DT: Deserializer<T>> Deserializer<SetOrDelete<T>> for SetOrDeleteDeserializer<T, DT>

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<T: Clone, DT: Deserializer<T>> Deserializer<SetOrDelete<T>> for SetOrDeleteDeserializer<T, DT>

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], SetOrDelete<T>, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl<T: PartialEq + Clone> PartialEq<SetOrDelete<T>> for SetOrDelete<T>

source§

fn eq(&self, other: &SetOrDelete<T>) -> bool

This method tests for self and other values to be equal, and is used +) -> IResult<&'a [u8], SetOrDelete<T>, E>
Deserialize a value T from a buffer of u8. Read more
source§

impl<T: PartialEq + Clone> PartialEq<SetOrDelete<T>> for SetOrDelete<T>

source§

fn eq(&self, other: &SetOrDelete<T>) -> 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<T> Serialize for SetOrDelete<T>where T: Serialize + Clone,

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T: Clone, ST: Serializer<T>> Serializer<SetOrDelete<T>> for SetOrDeleteSerializer<T, ST>

source§

fn serialize( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T: Clone, ST: Serializer<T>> Serializer<SetOrDelete<T>> for SetOrDeleteSerializer<T, ST>

source§

fn serialize( &self, value: &SetOrDelete<T>, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl<T: Eq + Clone> Eq for SetOrDelete<T>

source§

impl<T: Clone> StructuralEq for SetOrDelete<T>

source§

impl<T: Clone> StructuralPartialEq for SetOrDelete<T>

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for SetOrDelete<T>where +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl<T: Eq + Clone> Eq for SetOrDelete<T>

source§

impl<T: Clone> StructuralEq for SetOrDelete<T>

source§

impl<T: Clone> StructuralPartialEq for SetOrDelete<T>

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for SetOrDelete<T>where T: RefUnwindSafe,

§

impl<T> Send for SetOrDelete<T>where T: Send,

§

impl<T> Sync for SetOrDelete<T>where T: Sync,

§

impl<T> Unpin for SetOrDelete<T>where diff --git a/massa_ledger_exports/enum.SetOrKeep.html b/massa_ledger_exports/enum.SetOrKeep.html index 6779d552352..3bf79e724fd 100644 --- a/massa_ledger_exports/enum.SetOrKeep.html +++ b/massa_ledger_exports/enum.SetOrKeep.html @@ -9,18 +9,18 @@

source§

fn apply(&mut self, other: SetOrKeep<T>)

apply changes from other to mutable self
source§

impl<T: Clone + Clone> Clone for SetOrKeep<T>

source§

fn clone(&self) -> SetOrKeep<T>

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<T: Debug + Clone> Debug for SetOrKeep<T>

source§

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

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

impl<T: Clone> Default for SetOrKeep<T>

By default, SetOrKeep keeps the existing value

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<'de, T> Deserialize<'de> for SetOrKeep<T>where T: Deserialize<'de> + Clone,

source§

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<T: Clone, DT: Deserializer<T>> Deserializer<SetOrKeep<T>> for SetOrKeepDeserializer<T, DT>

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<T: Clone, DT: Deserializer<T>> Deserializer<SetOrKeep<T>> for SetOrKeepDeserializer<T, DT>

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], SetOrKeep<T>, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl<T: PartialEq + Clone> PartialEq<SetOrKeep<T>> for SetOrKeep<T>

source§

fn eq(&self, other: &SetOrKeep<T>) -> bool

This method tests for self and other values to be equal, and is used +) -> IResult<&'a [u8], SetOrKeep<T>, E>
Deserialize a value T from a buffer of u8. Read more
source§

impl<T: PartialEq + Clone> PartialEq<SetOrKeep<T>> for SetOrKeep<T>

source§

fn eq(&self, other: &SetOrKeep<T>) -> 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<T> Serialize for SetOrKeep<T>where T: Serialize + Clone,

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T: Clone, ST: Serializer<T>> Serializer<SetOrKeep<T>> for SetOrKeepSerializer<T, ST>

source§

fn serialize( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T: Clone, ST: Serializer<T>> Serializer<SetOrKeep<T>> for SetOrKeepSerializer<T, ST>

source§

fn serialize( &self, value: &SetOrKeep<T>, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl<T: Eq + Clone> Eq for SetOrKeep<T>

source§

impl<T: Clone> StructuralEq for SetOrKeep<T>

source§

impl<T: Clone> StructuralPartialEq for SetOrKeep<T>

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for SetOrKeep<T>where +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl<T: Eq + Clone> Eq for SetOrKeep<T>

source§

impl<T: Clone> StructuralEq for SetOrKeep<T>

source§

impl<T: Clone> StructuralPartialEq for SetOrKeep<T>

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for SetOrKeep<T>where T: RefUnwindSafe,

§

impl<T> Send for SetOrKeep<T>where T: Send,

§

impl<T> Sync for SetOrKeep<T>where T: Sync,

§

impl<T> Unpin for SetOrKeep<T>where diff --git a/massa_ledger_exports/enum.SetUpdateOrDelete.html b/massa_ledger_exports/enum.SetUpdateOrDelete.html index d5731b6c929..2738faf346b 100644 --- a/massa_ledger_exports/enum.SetUpdateOrDelete.html +++ b/massa_ledger_exports/enum.SetUpdateOrDelete.html @@ -15,19 +15,19 @@

source§

fn apply(&mut self, other: SetUpdateOrDelete<T, V>)

apply changes from other to mutable self
source§

impl<T: Clone + Default + Applicable<V>, V: Clone + Applicable<V> + Clone> Clone for SetUpdateOrDelete<T, V>

source§

fn clone(&self) -> SetUpdateOrDelete<T, V>

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<T: Debug + Default + Applicable<V>, V: Debug + Applicable<V> + Clone> Debug for SetUpdateOrDelete<T, V>

source§

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

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

impl<'de, T, V> Deserialize<'de> for SetUpdateOrDelete<T, V>where T: Deserialize<'de> + Default + Applicable<V>, V: Deserialize<'de> + Applicable<V> + Clone,

source§

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<T: Default + Applicable<V>, V: Applicable<V> + Clone, DT: Deserializer<T>, DV: Deserializer<V>> Deserializer<SetUpdateOrDelete<T, V>> for SetUpdateOrDeleteDeserializer<T, V, DT, DV>

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<T: Default + Applicable<V>, V: Applicable<V> + Clone, DT: Deserializer<T>, DV: Deserializer<V>> Deserializer<SetUpdateOrDelete<T, V>> for SetUpdateOrDeleteDeserializer<T, V, DT, DV>

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], SetUpdateOrDelete<T, V>, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl<T: PartialEq + Default + Applicable<V>, V: PartialEq + Applicable<V> + Clone> PartialEq<SetUpdateOrDelete<T, V>> for SetUpdateOrDelete<T, V>

source§

fn eq(&self, other: &SetUpdateOrDelete<T, V>) -> bool

This method tests for self and other values to be equal, and is used +) -> IResult<&'a [u8], SetUpdateOrDelete<T, V>, E>
Deserialize a value T from a buffer of u8. Read more
source§

impl<T: PartialEq + Default + Applicable<V>, V: PartialEq + Applicable<V> + Clone> PartialEq<SetUpdateOrDelete<T, V>> for SetUpdateOrDelete<T, V>

source§

fn eq(&self, other: &SetUpdateOrDelete<T, V>) -> 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<T, V> Serialize for SetUpdateOrDelete<T, V>where T: Serialize + Default + Applicable<V>, V: Serialize + Applicable<V> + Clone,

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T: Default + Applicable<V>, V: Applicable<V> + Clone, ST: Serializer<T>, SV: Serializer<V>> Serializer<SetUpdateOrDelete<T, V>> for SetUpdateOrDeleteSerializer<T, V, ST, SV>

source§

fn serialize( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T: Default + Applicable<V>, V: Applicable<V> + Clone, ST: Serializer<T>, SV: Serializer<V>> Serializer<SetUpdateOrDelete<T, V>> for SetUpdateOrDeleteSerializer<T, V, ST, SV>

source§

fn serialize( &self, value: &SetUpdateOrDelete<T, V>, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl<T: Eq + Default + Applicable<V>, V: Eq + Applicable<V> + Clone> Eq for SetUpdateOrDelete<T, V>

source§

impl<T: Default + Applicable<V>, V: Applicable<V> + Clone> StructuralEq for SetUpdateOrDelete<T, V>

source§

impl<T: Default + Applicable<V>, V: Applicable<V> + Clone> StructuralPartialEq for SetUpdateOrDelete<T, V>

Auto Trait Implementations§

§

impl<T, V> RefUnwindSafe for SetUpdateOrDelete<T, V>where +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl<T: Eq + Default + Applicable<V>, V: Eq + Applicable<V> + Clone> Eq for SetUpdateOrDelete<T, V>

source§

impl<T: Default + Applicable<V>, V: Applicable<V> + Clone> StructuralEq for SetUpdateOrDelete<T, V>

source§

impl<T: Default + Applicable<V>, V: Applicable<V> + Clone> StructuralPartialEq for SetUpdateOrDelete<T, V>

Auto Trait Implementations§

§

impl<T, V> RefUnwindSafe for SetUpdateOrDelete<T, V>where T: RefUnwindSafe, V: RefUnwindSafe,

§

impl<T, V> Send for SetUpdateOrDelete<T, V>where T: Send, diff --git a/massa_ledger_exports/key/enum.KeyType.html b/massa_ledger_exports/key/enum.KeyType.html index 2571b541c9f..94a10da28ee 100644 --- a/massa_ledger_exports/key/enum.KeyType.html +++ b/massa_ledger_exports/key/enum.KeyType.html @@ -3,16 +3,16 @@ BALANCE, BYTECODE, DATASTORE(Vec<u8>), -}

Variants§

§

VERSION

§

BALANCE

§

BYTECODE

§

DATASTORE(Vec<u8>)

Trait Implementations§

source§

impl Clone for KeyType

source§

fn clone(&self) -> KeyType

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 KeyType

source§

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

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

impl Deserializer<KeyType> for KeyTypeDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +}

Variants§

§

VERSION

§

BALANCE

§

BYTECODE

§

DATASTORE(Vec<u8>)

Trait Implementations§

source§

impl Clone for KeyType

source§

fn clone(&self) -> KeyType

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 KeyType

source§

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

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

impl Deserializer<KeyType> for KeyTypeDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, input: &'a [u8] -) -> IResult<&'a [u8], KeyType, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl PartialEq<KeyType> for KeyType

source§

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

This method tests for self and other values to be equal, and is used +) -> IResult<&'a [u8], KeyType, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl PartialEq<KeyType> for KeyType

source§

fn eq(&self, other: &KeyType) -> 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 Serializer<KeyType> for KeyTypeSerializer

source§

fn serialize( +sufficient, and should not be overridden without very good reason.

source§

impl Serializer<KeyType> for KeyTypeSerializer

source§

fn serialize( &self, value: &KeyType, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Eq for KeyType

source§

impl StructuralEq for KeyType

source§

impl StructuralPartialEq for KeyType

Auto Trait Implementations§

§

impl RefUnwindSafe for KeyType

§

impl Send for KeyType

§

impl Sync for KeyType

§

impl Unpin for KeyType

§

impl UnwindSafe for KeyType

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Eq for KeyType

source§

impl StructuralEq for KeyType

source§

impl StructuralPartialEq for KeyType

Auto Trait Implementations§

§

impl RefUnwindSafe for KeyType

§

impl Send for KeyType

§

impl Sync for KeyType

§

impl Unpin for KeyType

§

impl UnwindSafe for KeyType

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_ledger_exports/key/struct.Key.html b/massa_ledger_exports/key/struct.Key.html index 72ac342183f..f9cf98a45ed 100644 --- a/massa_ledger_exports/key/struct.Key.html +++ b/massa_ledger_exports/key/struct.Key.html @@ -2,7 +2,7 @@ pub key_type: KeyType, pub address: Address, }
Expand description

Disk ledger keys representation

-

Fields§

§key_type: KeyType§address: Address

Implementations§

source§

impl Key

source

pub fn new(address: &Address, key_type: KeyType) -> Self

Trait Implementations§

source§

impl Clone for Key

source§

fn clone(&self) -> Key

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 Key

source§

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

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

impl Deserializer<Key> for KeyDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Fields§

§key_type: KeyType§address: Address

Implementations§

source§

impl Key

source

pub fn new(address: &Address, key_type: KeyType) -> Self

Trait Implementations§

source§

impl Clone for Key

source§

fn clone(&self) -> Key

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 Key

source§

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

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

impl Deserializer<Key> for KeyDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], Key, E>

Example
@@ -30,11 +30,11 @@ assert_eq!(key_deser, key);

source§

impl PartialEq<Key> for Key

source§

fn eq(&self, other: &Key) -> 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 Serializer<Key> for KeySerializer

source§

fn serialize( +sufficient, and should not be overridden without very good reason.

source§

impl Serializer<Key> for KeySerializer

source§

fn serialize( &self, value: &Key, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

+) -> Result<(), SerializeError>
use massa_models::address::Address;
 use massa_ledger_exports::{KeySerializer, KeyType, Key};
 use massa_serialization::Serializer;
diff --git a/massa_ledger_exports/key/struct.KeyDeserializer.html b/massa_ledger_exports/key/struct.KeyDeserializer.html
index ea2c0b4ded0..9e0980ce204 100644
--- a/massa_ledger_exports/key/struct.KeyDeserializer.html
+++ b/massa_ledger_exports/key/struct.KeyDeserializer.html
@@ -1,15 +1,15 @@
 KeyDeserializer in massa_ledger_exports::key - Rust
pub struct KeyDeserializer {
     address_deserializer: AddressDeserializer,
     key_type_deserializer: KeyTypeDeserializer,
-    version_byte_deserializer: U64VarIntDeserializer,
+    version_byte_deserializer: U64VarIntDeserializer,
 }
Expand description

Basic key deserializer

-

Fields§

§address_deserializer: AddressDeserializer§key_type_deserializer: KeyTypeDeserializer§version_byte_deserializer: U64VarIntDeserializer

Implementations§

source§

impl KeyDeserializer

source

pub fn new( +

Fields§

§address_deserializer: AddressDeserializer§key_type_deserializer: KeyTypeDeserializer§version_byte_deserializer: U64VarIntDeserializer

Implementations§

source§

impl KeyDeserializer

source

pub fn new( max_datastore_key_length: u8, with_datastore_key_length: bool ) -> Self

Creates a new KeyDeserializer max_datastore_key_length is the maximum length of a datastore key. with_datastore_key_length if true, the datastore key is deserialized with its length.

-

Trait Implementations§

source§

impl Clone for KeyDeserializer

source§

fn clone(&self) -> KeyDeserializer

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 Deserializer<Key> for KeyDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Trait Implementations§

source§

impl Clone for KeyDeserializer

source§

fn clone(&self) -> KeyDeserializer

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 Deserializer<Key> for KeyDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], Key, E>

Example
diff --git a/massa_ledger_exports/key/struct.KeySerializer.html b/massa_ledger_exports/key/struct.KeySerializer.html index c4101f09d43..04ec73837e8 100644 --- a/massa_ledger_exports/key/struct.KeySerializer.html +++ b/massa_ledger_exports/key/struct.KeySerializer.html @@ -1,15 +1,15 @@ KeySerializer in massa_ledger_exports::key - Rust
pub struct KeySerializer {
     address_serializer: AddressSerializer,
     key_type_serializer: KeyTypeSerializer,
-    version_byte_serializer: U64VarIntSerializer,
+    version_byte_serializer: U64VarIntSerializer,
 }
Expand description

Basic key serializer

-

Fields§

§address_serializer: AddressSerializer§key_type_serializer: KeyTypeSerializer§version_byte_serializer: U64VarIntSerializer

Implementations§

source§

impl KeySerializer

source

pub fn new(with_datastore_key_length: bool) -> Self

Creates a new KeySerializer +

Fields§

§address_serializer: AddressSerializer§key_type_serializer: KeyTypeSerializer§version_byte_serializer: U64VarIntSerializer

Implementations§

source§

impl KeySerializer

source

pub fn new(with_datastore_key_length: bool) -> Self

Creates a new KeySerializer with_datastore_key_length if true, the datastore key is serialized with its length.

-

Trait Implementations§

source§

impl Clone for KeySerializer

source§

fn clone(&self) -> KeySerializer

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 Default for KeySerializer

source§

fn default() -> KeySerializer

Returns the “default value” for a type. Read more
source§

impl Serializer<Key> for KeySerializer

Trait Implementations§

source§

impl Clone for KeySerializer

source§

fn clone(&self) -> KeySerializer

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 Default for KeySerializer

source§

fn default() -> KeySerializer

Returns the “default value” for a type. Read more
source§

impl Serializer<Key> for KeySerializer

source§

fn serialize( &self, value: &Key, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

+) -> Result<(), SerializeError>
use massa_models::address::Address;
 use massa_ledger_exports::{KeySerializer, KeyType, Key};
 use massa_serialization::Serializer;
diff --git a/massa_ledger_exports/key/struct.KeyTypeDeserializer.html b/massa_ledger_exports/key/struct.KeyTypeDeserializer.html
index e6f88e25b1b..030c76ab767 100644
--- a/massa_ledger_exports/key/struct.KeyTypeDeserializer.html
+++ b/massa_ledger_exports/key/struct.KeyTypeDeserializer.html
@@ -7,10 +7,10 @@
 ) -> Self

Creates a new KeyTypeDeserializer. max_datastore_key_length is the maximum length of a datastore key. with_datastore_key_length if true, the datastore key is deserialized with its length.

-

Trait Implementations§

source§

impl Clone for KeyTypeDeserializer

source§

fn clone(&self) -> KeyTypeDeserializer

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 Deserializer<KeyType> for KeyTypeDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Trait Implementations§

source§

impl Clone for KeyTypeDeserializer

source§

fn clone(&self) -> KeyTypeDeserializer

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 Deserializer<KeyType> for KeyTypeDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, input: &'a [u8] -) -> IResult<&'a [u8], KeyType, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for KeyTypeDeserializer

§

impl Send for KeyTypeDeserializer

§

impl Sync for KeyTypeDeserializer

§

impl Unpin for KeyTypeDeserializer

§

impl UnwindSafe for KeyTypeDeserializer

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> IResult<&'a [u8], KeyType, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for KeyTypeDeserializer

§

impl Send for KeyTypeDeserializer

§

impl Sync for KeyTypeDeserializer

§

impl Unpin for KeyTypeDeserializer

§

impl UnwindSafe for KeyTypeDeserializer

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_ledger_exports/key/struct.KeyTypeSerializer.html b/massa_ledger_exports/key/struct.KeyTypeSerializer.html index 17fe5a18f60..b1f91c9e94d 100644 --- a/massa_ledger_exports/key/struct.KeyTypeSerializer.html +++ b/massa_ledger_exports/key/struct.KeyTypeSerializer.html @@ -3,11 +3,11 @@ with_datastore_key_length: bool, }

Fields§

§vec_u8_serializer: VecU8Serializer§with_datastore_key_length: bool

Implementations§

source§

impl KeyTypeSerializer

source

pub fn new(with_datastore_key_length: bool) -> Self

Creates a new KeyTypeSerializer. with_datastore_key_length if true, the datastore key is serialized with its length.

-

Trait Implementations§

source§

impl Clone for KeyTypeSerializer

source§

fn clone(&self) -> KeyTypeSerializer

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 Default for KeyTypeSerializer

source§

fn default() -> KeyTypeSerializer

Returns the “default value” for a type. Read more
source§

impl Serializer<KeyType> for KeyTypeSerializer

Trait Implementations§

source§

impl Clone for KeyTypeSerializer

source§

fn clone(&self) -> KeyTypeSerializer

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 Default for KeyTypeSerializer

source§

fn default() -> KeyTypeSerializer

Returns the “default value” for a type. Read more
source§

impl Serializer<KeyType> for KeyTypeSerializer

source§

fn serialize( &self, value: &KeyType, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for KeyTypeSerializer

§

impl Send for KeyTypeSerializer

§

impl Sync for KeyTypeSerializer

§

impl Unpin for KeyTypeSerializer

§

impl UnwindSafe for KeyTypeSerializer

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_ledger_exports/ledger_changes/struct.DatastoreUpdateDeserializer.html b/massa_ledger_exports/ledger_changes/struct.DatastoreUpdateDeserializer.html index 78a958aaef0..689a3c834c9 100644 --- a/massa_ledger_exports/ledger_changes/struct.DatastoreUpdateDeserializer.html +++ b/massa_ledger_exports/ledger_changes/struct.DatastoreUpdateDeserializer.html @@ -1,14 +1,14 @@ DatastoreUpdateDeserializer in massa_ledger_exports::ledger_changes - Rust
pub struct DatastoreUpdateDeserializer {
-    length_deserializer: U64VarIntDeserializer,
+    length_deserializer: U64VarIntDeserializer,
     key_deserializer: VecU8Deserializer,
     value_deserializer: SetOrDeleteDeserializer<Vec<u8>, VecU8Deserializer>,
 }
Expand description

Serializer for datastore field of LedgerEntryUpdate

-

Fields§

§length_deserializer: U64VarIntDeserializer§key_deserializer: VecU8Deserializer§value_deserializer: SetOrDeleteDeserializer<Vec<u8>, VecU8Deserializer>

Implementations§

source§

impl DatastoreUpdateDeserializer

source

pub fn new( +

Fields§

§length_deserializer: U64VarIntDeserializer§key_deserializer: VecU8Deserializer§value_deserializer: SetOrDeleteDeserializer<Vec<u8>, VecU8Deserializer>

Implementations§

source§

impl DatastoreUpdateDeserializer

source

pub fn new( max_datastore_key_length: u8, max_datastore_value_length: u64, max_datastore_entry_count: u64 ) -> Self

Creates a new DatastoreUpdateDeserializer

-

Trait Implementations§

source§

impl Deserializer<BTreeMap<Vec<u8, Global>, SetOrDelete<Vec<u8, Global>>, Global>> for DatastoreUpdateDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Trait Implementations§

source§

impl Deserializer<BTreeMap<Vec<u8, Global>, SetOrDelete<Vec<u8, Global>>, Global>> for DatastoreUpdateDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], BTreeMap<Vec<u8>, SetOrDelete<Vec<u8>>>, E>

Example
diff --git a/massa_ledger_exports/ledger_changes/struct.DatastoreUpdateSerializer.html b/massa_ledger_exports/ledger_changes/struct.DatastoreUpdateSerializer.html index f4afc92aea7..67ba69faef8 100644 --- a/massa_ledger_exports/ledger_changes/struct.DatastoreUpdateSerializer.html +++ b/massa_ledger_exports/ledger_changes/struct.DatastoreUpdateSerializer.html @@ -1,14 +1,14 @@ DatastoreUpdateSerializer in massa_ledger_exports::ledger_changes - Rust
pub struct DatastoreUpdateSerializer {
-    u64_serializer: U64VarIntSerializer,
+    u64_serializer: U64VarIntSerializer,
     vec_u8_serializer: VecU8Serializer,
     value_serializer: SetOrDeleteSerializer<Vec<u8>, VecU8Serializer>,
 }
Expand description

Serializer for datastore field of LedgerEntryUpdate

-

Fields§

§u64_serializer: U64VarIntSerializer§vec_u8_serializer: VecU8Serializer§value_serializer: SetOrDeleteSerializer<Vec<u8>, VecU8Serializer>

Implementations§

source§

impl DatastoreUpdateSerializer

source

pub fn new() -> Self

Creates a new DatastoreUpdateSerializer

-

Trait Implementations§

source§

impl Default for DatastoreUpdateSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<BTreeMap<Vec<u8, Global>, SetOrDelete<Vec<u8, Global>>, Global>> for DatastoreUpdateSerializer

Fields§

§u64_serializer: U64VarIntSerializer§vec_u8_serializer: VecU8Serializer§value_serializer: SetOrDeleteSerializer<Vec<u8>, VecU8Serializer>

Implementations§

source§

impl DatastoreUpdateSerializer

source

pub fn new() -> Self

Creates a new DatastoreUpdateSerializer

+

Trait Implementations§

source§

impl Default for DatastoreUpdateSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<BTreeMap<Vec<u8, Global>, SetOrDelete<Vec<u8, Global>>, Global>> for DatastoreUpdateSerializer

source§

fn serialize( &self, value: &BTreeMap<Vec<u8>, SetOrDelete<Vec<u8>>>, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>
Example
use std::collections::BTreeMap;
 use massa_ledger_exports::{DatastoreUpdateSerializer, SetOrDelete};
 use massa_serialization::Serializer;
diff --git a/massa_ledger_exports/ledger_changes/struct.LedgerChanges.html b/massa_ledger_exports/ledger_changes/struct.LedgerChanges.html
index f1be7217f96..2c34be5e29f 100644
--- a/massa_ledger_exports/ledger_changes/struct.LedgerChanges.html
+++ b/massa_ledger_exports/ledger_changes/struct.LedgerChanges.html
@@ -153,7 +153,7 @@ 
Arguments

Trait Implementations§

source§

impl Applicable<LedgerChanges> for LedgerChanges

source§

fn apply(&mut self, changes: LedgerChanges)

extends the current LedgerChanges with another one

source§

impl Clone for LedgerChanges

source§

fn clone(&self) -> LedgerChanges

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 LedgerChanges

source§

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

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

impl Default for LedgerChanges

source§

fn default() -> LedgerChanges

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for LedgerChanges

source§

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 Deserializer<LedgerChanges> for LedgerChangesDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Deserializer<LedgerChanges> for LedgerChangesDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], LedgerChanges, E>

Example
@@ -186,11 +186,11 @@
Arguments
source§

impl PartialEq<LedgerChanges> for LedgerChanges

source§

fn eq(&self, other: &LedgerChanges) -> 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 Serialize for LedgerChanges

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<LedgerChanges> for LedgerChangesSerializer

source§

fn serialize( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<LedgerChanges> for LedgerChangesSerializer

source§

fn serialize( &self, value: &LedgerChanges, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>
Example
use massa_serialization::Serializer;
 use massa_ledger_exports::{LedgerEntry, SetUpdateOrDelete, LedgerChanges, LedgerChangesSerializer};
 use std::str::FromStr;
diff --git a/massa_ledger_exports/ledger_changes/struct.LedgerChangesDeserializer.html b/massa_ledger_exports/ledger_changes/struct.LedgerChangesDeserializer.html
index f90c0a12eb5..d71b71e2221 100644
--- a/massa_ledger_exports/ledger_changes/struct.LedgerChangesDeserializer.html
+++ b/massa_ledger_exports/ledger_changes/struct.LedgerChangesDeserializer.html
@@ -1,15 +1,15 @@
 LedgerChangesDeserializer in massa_ledger_exports::ledger_changes - Rust
pub struct LedgerChangesDeserializer {
-    length_deserializer: U64VarIntDeserializer,
+    length_deserializer: U64VarIntDeserializer,
     address_deserializer: AddressDeserializer,
     entry_deserializer: SetUpdateOrDeleteDeserializer<LedgerEntry, LedgerEntryUpdate, LedgerEntryDeserializer, LedgerEntryUpdateDeserializer>,
 }
Expand description

LedgerChanges deserializer

-

Fields§

§length_deserializer: U64VarIntDeserializer§address_deserializer: AddressDeserializer§entry_deserializer: SetUpdateOrDeleteDeserializer<LedgerEntry, LedgerEntryUpdate, LedgerEntryDeserializer, LedgerEntryUpdateDeserializer>

Implementations§

source§

impl LedgerChangesDeserializer

source

pub fn new( +

Fields§

§length_deserializer: U64VarIntDeserializer§address_deserializer: AddressDeserializer§entry_deserializer: SetUpdateOrDeleteDeserializer<LedgerEntry, LedgerEntryUpdate, LedgerEntryDeserializer, LedgerEntryUpdateDeserializer>

Implementations§

source§

impl LedgerChangesDeserializer

source

pub fn new( max_ledger_changes_count: u64, max_datastore_key_length: u8, max_datastore_value_length: u64, max_datastore_entry_count: u64 ) -> Self

Creates a new LedgerChangesDeserializer

-

Trait Implementations§

source§

impl Deserializer<LedgerChanges> for LedgerChangesDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Trait Implementations§

source§

impl Deserializer<LedgerChanges> for LedgerChangesDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], LedgerChanges, E>

Example
diff --git a/massa_ledger_exports/ledger_changes/struct.LedgerChangesSerializer.html b/massa_ledger_exports/ledger_changes/struct.LedgerChangesSerializer.html index 6822ecdfadd..07495d282a3 100644 --- a/massa_ledger_exports/ledger_changes/struct.LedgerChangesSerializer.html +++ b/massa_ledger_exports/ledger_changes/struct.LedgerChangesSerializer.html @@ -1,14 +1,14 @@ LedgerChangesSerializer in massa_ledger_exports::ledger_changes - Rust
pub struct LedgerChangesSerializer {
-    u64_serializer: U64VarIntSerializer,
+    u64_serializer: U64VarIntSerializer,
     address_serializer: AddressSerializer,
     entry_serializer: SetUpdateOrDeleteSerializer<LedgerEntry, LedgerEntryUpdate, LedgerEntrySerializer, LedgerEntryUpdateSerializer>,
 }
Expand description

LedgerChanges serializer

-

Fields§

§u64_serializer: U64VarIntSerializer§address_serializer: AddressSerializer§entry_serializer: SetUpdateOrDeleteSerializer<LedgerEntry, LedgerEntryUpdate, LedgerEntrySerializer, LedgerEntryUpdateSerializer>

Implementations§

source§

impl LedgerChangesSerializer

source

pub fn new() -> Self

Creates a new LedgerChangesSerializer

-

Trait Implementations§

source§

impl Default for LedgerChangesSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<LedgerChanges> for LedgerChangesSerializer

Fields§

§u64_serializer: U64VarIntSerializer§address_serializer: AddressSerializer§entry_serializer: SetUpdateOrDeleteSerializer<LedgerEntry, LedgerEntryUpdate, LedgerEntrySerializer, LedgerEntryUpdateSerializer>

Implementations§

source§

impl LedgerChangesSerializer

source

pub fn new() -> Self

Creates a new LedgerChangesSerializer

+

Trait Implementations§

source§

impl Default for LedgerChangesSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<LedgerChanges> for LedgerChangesSerializer

source§

fn serialize( &self, value: &LedgerChanges, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>
Example
use massa_serialization::Serializer;
 use massa_ledger_exports::{LedgerEntry, SetUpdateOrDelete, LedgerChanges, LedgerChangesSerializer};
 use std::str::FromStr;
diff --git a/massa_ledger_exports/ledger_changes/struct.LedgerEntryUpdate.html b/massa_ledger_exports/ledger_changes/struct.LedgerEntryUpdate.html
index 4c7863beaea..7e07ecfaabd 100644
--- a/massa_ledger_exports/ledger_changes/struct.LedgerEntryUpdate.html
+++ b/massa_ledger_exports/ledger_changes/struct.LedgerEntryUpdate.html
@@ -9,7 +9,7 @@
 

Trait Implementations§

source§

impl Applicable<LedgerEntryUpdate> for LedgerEntry

A LedgerEntryUpdate can be applied to a LedgerEntry

source§

fn apply(&mut self, update: LedgerEntryUpdate)

apply changes from other to mutable self
source§

impl Applicable<LedgerEntryUpdate> for LedgerEntryUpdate

source§

fn apply(&mut self, update: LedgerEntryUpdate)

extends the LedgerEntryUpdate with another one

source§

impl Clone for LedgerEntryUpdate

source§

fn clone(&self) -> LedgerEntryUpdate

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 LedgerEntryUpdate

source§

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

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

impl Default for LedgerEntryUpdate

source§

fn default() -> LedgerEntryUpdate

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for LedgerEntryUpdate

source§

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 Deserializer<LedgerEntryUpdate> for LedgerEntryUpdateDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Deserializer<LedgerEntryUpdate> for LedgerEntryUpdateDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], LedgerEntryUpdate, E>

Example
@@ -39,11 +39,11 @@
source§

impl From<LedgerEntryUpdate> for LedgerEntryUpdate

source§

fn from(value: LedgerEntryUpdate) -> Self

Converts to this type from the input type.
source§

impl PartialEq<LedgerEntryUpdate> for LedgerEntryUpdate

source§

fn eq(&self, other: &LedgerEntryUpdate) -> 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 Serialize for LedgerEntryUpdate

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<LedgerEntryUpdate> for LedgerEntryUpdateSerializer

source§

fn serialize( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<LedgerEntryUpdate> for LedgerEntryUpdateSerializer

source§

fn serialize( &self, value: &LedgerEntryUpdate, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>
Example
use massa_serialization::Serializer;
 use massa_models::{prehash::PreHashMap, address::Address, amount::Amount, bytecode::Bytecode};
 use std::str::FromStr;
diff --git a/massa_ledger_exports/ledger_changes/struct.LedgerEntryUpdateDeserializer.html b/massa_ledger_exports/ledger_changes/struct.LedgerEntryUpdateDeserializer.html
index 49e25f7c7c2..3b97c3d0883 100644
--- a/massa_ledger_exports/ledger_changes/struct.LedgerEntryUpdateDeserializer.html
+++ b/massa_ledger_exports/ledger_changes/struct.LedgerEntryUpdateDeserializer.html
@@ -8,7 +8,7 @@
     max_datastore_value_length: u64,
     max_datastore_entry_count: u64
 ) -> Self

Creates a new LedgerEntryUpdateDeserializer

-

Trait Implementations§

source§

impl Deserializer<LedgerEntryUpdate> for LedgerEntryUpdateDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Trait Implementations§

source§

impl Deserializer<LedgerEntryUpdate> for LedgerEntryUpdateDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], LedgerEntryUpdate, E>

Example
diff --git a/massa_ledger_exports/ledger_changes/struct.LedgerEntryUpdateSerializer.html b/massa_ledger_exports/ledger_changes/struct.LedgerEntryUpdateSerializer.html index 5c3f9411cf5..044b004638c 100644 --- a/massa_ledger_exports/ledger_changes/struct.LedgerEntryUpdateSerializer.html +++ b/massa_ledger_exports/ledger_changes/struct.LedgerEntryUpdateSerializer.html @@ -4,11 +4,11 @@ datastore_serializer: DatastoreUpdateSerializer, }
Expand description

Serializer for LedgerEntryUpdate

Fields§

§balance_serializer: SetOrKeepSerializer<Amount, AmountSerializer>§bytecode_serializer: SetOrKeepSerializer<Bytecode, BytecodeSerializer>§datastore_serializer: DatastoreUpdateSerializer

Implementations§

source§

impl LedgerEntryUpdateSerializer

source

pub fn new() -> Self

Creates a new LedgerEntryUpdateSerializer

-

Trait Implementations§

Trait Implementations§

source§

impl Default for LedgerEntryUpdateSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<LedgerEntryUpdate> for LedgerEntryUpdateSerializer

source§

fn serialize( &self, value: &LedgerEntryUpdate, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>
Example
use massa_serialization::Serializer;
 use massa_models::{prehash::PreHashMap, address::Address, amount::Amount, bytecode::Bytecode};
 use std::str::FromStr;
diff --git a/massa_ledger_exports/ledger_entry/struct.LedgerEntry.html b/massa_ledger_exports/ledger_entry/struct.LedgerEntry.html
index baf41215f6d..f4b4e08a792 100644
--- a/massa_ledger_exports/ledger_entry/struct.LedgerEntry.html
+++ b/massa_ledger_exports/ledger_entry/struct.LedgerEntry.html
@@ -8,7 +8,7 @@
 
§datastore: Datastore

A key-value store associating a hash to arbitrary bytes

Trait Implementations§

source§

impl Applicable<LedgerEntryUpdate> for LedgerEntry

A LedgerEntryUpdate can be applied to a LedgerEntry

source§

fn apply(&mut self, update: LedgerEntryUpdate)

apply changes from other to mutable self
source§

impl Clone for LedgerEntry

source§

fn clone(&self) -> LedgerEntry

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 LedgerEntry

source§

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

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

impl Default for LedgerEntry

source§

fn default() -> LedgerEntry

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for LedgerEntry

source§

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 Deserializer<LedgerEntry> for LedgerEntryDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Deserializer<LedgerEntry> for LedgerEntryDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], LedgerEntry, E>

Example
@@ -38,11 +38,11 @@
source§

impl From<LedgerEntry> for LedgerEntry

source§

fn from(value: LedgerEntry) -> Self

Converts to this type from the input type.
source§

impl PartialEq<LedgerEntry> for LedgerEntry

source§

fn eq(&self, other: &LedgerEntry) -> 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 Serialize for LedgerEntry

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<LedgerEntry> for LedgerEntrySerializer

source§

fn serialize( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<LedgerEntry> for LedgerEntrySerializer

source§

fn serialize( &self, value: &LedgerEntry, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>
Example
use massa_serialization::Serializer;
 use std::collections::BTreeMap;
 use std::str::FromStr;
diff --git a/massa_ledger_exports/ledger_entry/struct.LedgerEntryDeserializer.html b/massa_ledger_exports/ledger_entry/struct.LedgerEntryDeserializer.html
index 93cae0c36a2..5d3badada70 100644
--- a/massa_ledger_exports/ledger_entry/struct.LedgerEntryDeserializer.html
+++ b/massa_ledger_exports/ledger_entry/struct.LedgerEntryDeserializer.html
@@ -8,7 +8,7 @@
     max_datastore_key_length: u8,
     max_datastore_value_length: u64
 ) -> Self

Creates a new LedgerEntryDeserializer

-

Trait Implementations§

source§

impl Deserializer<LedgerEntry> for LedgerEntryDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Trait Implementations§

source§

impl Deserializer<LedgerEntry> for LedgerEntryDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], LedgerEntry, E>

Example
diff --git a/massa_ledger_exports/ledger_entry/struct.LedgerEntrySerializer.html b/massa_ledger_exports/ledger_entry/struct.LedgerEntrySerializer.html index 075db56b57e..18528d88ccc 100644 --- a/massa_ledger_exports/ledger_entry/struct.LedgerEntrySerializer.html +++ b/massa_ledger_exports/ledger_entry/struct.LedgerEntrySerializer.html @@ -4,11 +4,11 @@ datastore_serializer: DatastoreSerializer, }
Expand description

Serializer for LedgerEntry

Fields§

§amount_serializer: AmountSerializer§bytecode_serializer: BytecodeSerializer§datastore_serializer: DatastoreSerializer

Implementations§

source§

impl LedgerEntrySerializer

source

pub fn new() -> Self

Creates a new LedgerEntrySerializer

-

Trait Implementations§

source§

impl Default for LedgerEntrySerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<LedgerEntry> for LedgerEntrySerializer

Trait Implementations§

source§

impl Default for LedgerEntrySerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<LedgerEntry> for LedgerEntrySerializer

source§

fn serialize( &self, value: &LedgerEntry, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>
Example
use massa_serialization::Serializer;
 use std::collections::BTreeMap;
 use std::str::FromStr;
diff --git a/massa_ledger_exports/struct.DatastoreUpdateDeserializer.html b/massa_ledger_exports/struct.DatastoreUpdateDeserializer.html
index 57c03a1c7f1..80b6f617622 100644
--- a/massa_ledger_exports/struct.DatastoreUpdateDeserializer.html
+++ b/massa_ledger_exports/struct.DatastoreUpdateDeserializer.html
@@ -1,14 +1,14 @@
 DatastoreUpdateDeserializer in massa_ledger_exports - Rust
pub struct DatastoreUpdateDeserializer {
-    length_deserializer: U64VarIntDeserializer,
+    length_deserializer: U64VarIntDeserializer,
     key_deserializer: VecU8Deserializer,
     value_deserializer: SetOrDeleteDeserializer<Vec<u8>, VecU8Deserializer>,
 }
Expand description

Serializer for datastore field of LedgerEntryUpdate

-

Fields§

§length_deserializer: U64VarIntDeserializer§key_deserializer: VecU8Deserializer§value_deserializer: SetOrDeleteDeserializer<Vec<u8>, VecU8Deserializer>

Implementations§

source§

impl DatastoreUpdateDeserializer

source

pub fn new( +

Fields§

§length_deserializer: U64VarIntDeserializer§key_deserializer: VecU8Deserializer§value_deserializer: SetOrDeleteDeserializer<Vec<u8>, VecU8Deserializer>

Implementations§

source§

impl DatastoreUpdateDeserializer

source

pub fn new( max_datastore_key_length: u8, max_datastore_value_length: u64, max_datastore_entry_count: u64 ) -> Self

Creates a new DatastoreUpdateDeserializer

-

Trait Implementations§

source§

impl Deserializer<BTreeMap<Vec<u8, Global>, SetOrDelete<Vec<u8, Global>>, Global>> for DatastoreUpdateDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Trait Implementations§

source§

impl Deserializer<BTreeMap<Vec<u8, Global>, SetOrDelete<Vec<u8, Global>>, Global>> for DatastoreUpdateDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], BTreeMap<Vec<u8>, SetOrDelete<Vec<u8>>>, E>

Example
diff --git a/massa_ledger_exports/struct.DatastoreUpdateSerializer.html b/massa_ledger_exports/struct.DatastoreUpdateSerializer.html index ffe6f1e8a87..54d96e84a60 100644 --- a/massa_ledger_exports/struct.DatastoreUpdateSerializer.html +++ b/massa_ledger_exports/struct.DatastoreUpdateSerializer.html @@ -1,14 +1,14 @@ DatastoreUpdateSerializer in massa_ledger_exports - Rust
pub struct DatastoreUpdateSerializer {
-    u64_serializer: U64VarIntSerializer,
+    u64_serializer: U64VarIntSerializer,
     vec_u8_serializer: VecU8Serializer,
     value_serializer: SetOrDeleteSerializer<Vec<u8>, VecU8Serializer>,
 }
Expand description

Serializer for datastore field of LedgerEntryUpdate

-

Fields§

§u64_serializer: U64VarIntSerializer§vec_u8_serializer: VecU8Serializer§value_serializer: SetOrDeleteSerializer<Vec<u8>, VecU8Serializer>

Implementations§

source§

impl DatastoreUpdateSerializer

source

pub fn new() -> Self

Creates a new DatastoreUpdateSerializer

-

Trait Implementations§

source§

impl Default for DatastoreUpdateSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<BTreeMap<Vec<u8, Global>, SetOrDelete<Vec<u8, Global>>, Global>> for DatastoreUpdateSerializer

Fields§

§u64_serializer: U64VarIntSerializer§vec_u8_serializer: VecU8Serializer§value_serializer: SetOrDeleteSerializer<Vec<u8>, VecU8Serializer>

Implementations§

source§

impl DatastoreUpdateSerializer

source

pub fn new() -> Self

Creates a new DatastoreUpdateSerializer

+

Trait Implementations§

source§

impl Default for DatastoreUpdateSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<BTreeMap<Vec<u8, Global>, SetOrDelete<Vec<u8, Global>>, Global>> for DatastoreUpdateSerializer

source§

fn serialize( &self, value: &BTreeMap<Vec<u8>, SetOrDelete<Vec<u8>>>, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>
Example
use std::collections::BTreeMap;
 use massa_ledger_exports::{DatastoreUpdateSerializer, SetOrDelete};
 use massa_serialization::Serializer;
diff --git a/massa_ledger_exports/struct.Key.html b/massa_ledger_exports/struct.Key.html
index 8596bab68c6..017c740f344 100644
--- a/massa_ledger_exports/struct.Key.html
+++ b/massa_ledger_exports/struct.Key.html
@@ -2,7 +2,7 @@
     pub key_type: KeyType,
     pub address: Address,
 }
Expand description

Disk ledger keys representation

-

Fields§

§key_type: KeyType§address: Address

Implementations§

source§

impl Key

source

pub fn new(address: &Address, key_type: KeyType) -> Self

Trait Implementations§

source§

impl Clone for Key

source§

fn clone(&self) -> Key

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 Key

source§

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

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

impl Deserializer<Key> for KeyDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Fields§

§key_type: KeyType§address: Address

Implementations§

source§

impl Key

source

pub fn new(address: &Address, key_type: KeyType) -> Self

Trait Implementations§

source§

impl Clone for Key

source§

fn clone(&self) -> Key

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 Key

source§

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

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

impl Deserializer<Key> for KeyDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], Key, E>

Example
@@ -30,11 +30,11 @@ assert_eq!(key_deser, key);
source§

impl PartialEq<Key> for Key

source§

fn eq(&self, other: &Key) -> 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 Serializer<Key> for KeySerializer

source§

fn serialize( +sufficient, and should not be overridden without very good reason.

source§

impl Serializer<Key> for KeySerializer

source§

fn serialize( &self, value: &Key, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

+) -> Result<(), SerializeError>
use massa_models::address::Address;
 use massa_ledger_exports::{KeySerializer, KeyType, Key};
 use massa_serialization::Serializer;
diff --git a/massa_ledger_exports/struct.KeyDeserializer.html b/massa_ledger_exports/struct.KeyDeserializer.html
index e6b25d4fba3..a01cda15cc7 100644
--- a/massa_ledger_exports/struct.KeyDeserializer.html
+++ b/massa_ledger_exports/struct.KeyDeserializer.html
@@ -1,15 +1,15 @@
 KeyDeserializer in massa_ledger_exports - Rust
pub struct KeyDeserializer {
     address_deserializer: AddressDeserializer,
     key_type_deserializer: KeyTypeDeserializer,
-    version_byte_deserializer: U64VarIntDeserializer,
+    version_byte_deserializer: U64VarIntDeserializer,
 }
Expand description

Basic key deserializer

-

Fields§

§address_deserializer: AddressDeserializer§key_type_deserializer: KeyTypeDeserializer§version_byte_deserializer: U64VarIntDeserializer

Implementations§

source§

impl KeyDeserializer

source

pub fn new( +

Fields§

§address_deserializer: AddressDeserializer§key_type_deserializer: KeyTypeDeserializer§version_byte_deserializer: U64VarIntDeserializer

Implementations§

source§

impl KeyDeserializer

source

pub fn new( max_datastore_key_length: u8, with_datastore_key_length: bool ) -> Self

Creates a new KeyDeserializer max_datastore_key_length is the maximum length of a datastore key. with_datastore_key_length if true, the datastore key is deserialized with its length.

-

Trait Implementations§

source§

impl Clone for KeyDeserializer

source§

fn clone(&self) -> KeyDeserializer

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 Deserializer<Key> for KeyDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Trait Implementations§

source§

impl Clone for KeyDeserializer

source§

fn clone(&self) -> KeyDeserializer

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 Deserializer<Key> for KeyDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], Key, E>

Example
diff --git a/massa_ledger_exports/struct.KeySerializer.html b/massa_ledger_exports/struct.KeySerializer.html index 0f6c6ece84b..9f3029e3d0d 100644 --- a/massa_ledger_exports/struct.KeySerializer.html +++ b/massa_ledger_exports/struct.KeySerializer.html @@ -1,15 +1,15 @@ KeySerializer in massa_ledger_exports - Rust
pub struct KeySerializer {
     address_serializer: AddressSerializer,
     key_type_serializer: KeyTypeSerializer,
-    version_byte_serializer: U64VarIntSerializer,
+    version_byte_serializer: U64VarIntSerializer,
 }
Expand description

Basic key serializer

-

Fields§

§address_serializer: AddressSerializer§key_type_serializer: KeyTypeSerializer§version_byte_serializer: U64VarIntSerializer

Implementations§

source§

impl KeySerializer

source

pub fn new(with_datastore_key_length: bool) -> Self

Creates a new KeySerializer +

Fields§

§address_serializer: AddressSerializer§key_type_serializer: KeyTypeSerializer§version_byte_serializer: U64VarIntSerializer

Implementations§

source§

impl KeySerializer

source

pub fn new(with_datastore_key_length: bool) -> Self

Creates a new KeySerializer with_datastore_key_length if true, the datastore key is serialized with its length.

-

Trait Implementations§

source§

impl Clone for KeySerializer

source§

fn clone(&self) -> KeySerializer

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 Default for KeySerializer

source§

fn default() -> KeySerializer

Returns the “default value” for a type. Read more
source§

impl Serializer<Key> for KeySerializer

Trait Implementations§

source§

impl Clone for KeySerializer

source§

fn clone(&self) -> KeySerializer

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 Default for KeySerializer

source§

fn default() -> KeySerializer

Returns the “default value” for a type. Read more
source§

impl Serializer<Key> for KeySerializer

source§

fn serialize( &self, value: &Key, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

+) -> Result<(), SerializeError>
use massa_models::address::Address;
 use massa_ledger_exports::{KeySerializer, KeyType, Key};
 use massa_serialization::Serializer;
diff --git a/massa_ledger_exports/struct.LedgerChanges.html b/massa_ledger_exports/struct.LedgerChanges.html
index a0b3048b690..52e4c0dd4fd 100644
--- a/massa_ledger_exports/struct.LedgerChanges.html
+++ b/massa_ledger_exports/struct.LedgerChanges.html
@@ -153,7 +153,7 @@ 
Arguments

Trait Implementations§

source§

impl Applicable<LedgerChanges> for LedgerChanges

source§

fn apply(&mut self, changes: LedgerChanges)

extends the current LedgerChanges with another one

source§

impl Clone for LedgerChanges

source§

fn clone(&self) -> LedgerChanges

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 LedgerChanges

source§

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

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

impl Default for LedgerChanges

source§

fn default() -> LedgerChanges

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for LedgerChanges

source§

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 Deserializer<LedgerChanges> for LedgerChangesDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Deserializer<LedgerChanges> for LedgerChangesDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], LedgerChanges, E>

Example
@@ -186,11 +186,11 @@
Arguments
source§

impl PartialEq<LedgerChanges> for LedgerChanges

source§

fn eq(&self, other: &LedgerChanges) -> 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 Serialize for LedgerChanges

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<LedgerChanges> for LedgerChangesSerializer

source§

fn serialize( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<LedgerChanges> for LedgerChangesSerializer

source§

fn serialize( &self, value: &LedgerChanges, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>
Example
use massa_serialization::Serializer;
 use massa_ledger_exports::{LedgerEntry, SetUpdateOrDelete, LedgerChanges, LedgerChangesSerializer};
 use std::str::FromStr;
diff --git a/massa_ledger_exports/struct.LedgerChangesDeserializer.html b/massa_ledger_exports/struct.LedgerChangesDeserializer.html
index 47f0d0dbad0..84efd7fcfae 100644
--- a/massa_ledger_exports/struct.LedgerChangesDeserializer.html
+++ b/massa_ledger_exports/struct.LedgerChangesDeserializer.html
@@ -1,15 +1,15 @@
 LedgerChangesDeserializer in massa_ledger_exports - Rust
pub struct LedgerChangesDeserializer {
-    length_deserializer: U64VarIntDeserializer,
+    length_deserializer: U64VarIntDeserializer,
     address_deserializer: AddressDeserializer,
     entry_deserializer: SetUpdateOrDeleteDeserializer<LedgerEntry, LedgerEntryUpdate, LedgerEntryDeserializer, LedgerEntryUpdateDeserializer>,
 }
Expand description

LedgerChanges deserializer

-

Fields§

§length_deserializer: U64VarIntDeserializer§address_deserializer: AddressDeserializer§entry_deserializer: SetUpdateOrDeleteDeserializer<LedgerEntry, LedgerEntryUpdate, LedgerEntryDeserializer, LedgerEntryUpdateDeserializer>

Implementations§

source§

impl LedgerChangesDeserializer

source

pub fn new( +

Fields§

§length_deserializer: U64VarIntDeserializer§address_deserializer: AddressDeserializer§entry_deserializer: SetUpdateOrDeleteDeserializer<LedgerEntry, LedgerEntryUpdate, LedgerEntryDeserializer, LedgerEntryUpdateDeserializer>

Implementations§

source§

impl LedgerChangesDeserializer

source

pub fn new( max_ledger_changes_count: u64, max_datastore_key_length: u8, max_datastore_value_length: u64, max_datastore_entry_count: u64 ) -> Self

Creates a new LedgerChangesDeserializer

-

Trait Implementations§

source§

impl Deserializer<LedgerChanges> for LedgerChangesDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Trait Implementations§

source§

impl Deserializer<LedgerChanges> for LedgerChangesDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], LedgerChanges, E>

Example
diff --git a/massa_ledger_exports/struct.LedgerChangesSerializer.html b/massa_ledger_exports/struct.LedgerChangesSerializer.html index b2692db04b5..e91b149ba62 100644 --- a/massa_ledger_exports/struct.LedgerChangesSerializer.html +++ b/massa_ledger_exports/struct.LedgerChangesSerializer.html @@ -1,14 +1,14 @@ LedgerChangesSerializer in massa_ledger_exports - Rust
pub struct LedgerChangesSerializer {
-    u64_serializer: U64VarIntSerializer,
+    u64_serializer: U64VarIntSerializer,
     address_serializer: AddressSerializer,
     entry_serializer: SetUpdateOrDeleteSerializer<LedgerEntry, LedgerEntryUpdate, LedgerEntrySerializer, LedgerEntryUpdateSerializer>,
 }
Expand description

LedgerChanges serializer

-

Fields§

§u64_serializer: U64VarIntSerializer§address_serializer: AddressSerializer§entry_serializer: SetUpdateOrDeleteSerializer<LedgerEntry, LedgerEntryUpdate, LedgerEntrySerializer, LedgerEntryUpdateSerializer>

Implementations§

source§

impl LedgerChangesSerializer

source

pub fn new() -> Self

Creates a new LedgerChangesSerializer

-

Trait Implementations§

source§

impl Default for LedgerChangesSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<LedgerChanges> for LedgerChangesSerializer

Fields§

§u64_serializer: U64VarIntSerializer§address_serializer: AddressSerializer§entry_serializer: SetUpdateOrDeleteSerializer<LedgerEntry, LedgerEntryUpdate, LedgerEntrySerializer, LedgerEntryUpdateSerializer>

Implementations§

source§

impl LedgerChangesSerializer

source

pub fn new() -> Self

Creates a new LedgerChangesSerializer

+

Trait Implementations§

source§

impl Default for LedgerChangesSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<LedgerChanges> for LedgerChangesSerializer

source§

fn serialize( &self, value: &LedgerChanges, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>
Example
use massa_serialization::Serializer;
 use massa_ledger_exports::{LedgerEntry, SetUpdateOrDelete, LedgerChanges, LedgerChangesSerializer};
 use std::str::FromStr;
diff --git a/massa_ledger_exports/struct.LedgerEntry.html b/massa_ledger_exports/struct.LedgerEntry.html
index e1a6d2f2959..8ed99daaabe 100644
--- a/massa_ledger_exports/struct.LedgerEntry.html
+++ b/massa_ledger_exports/struct.LedgerEntry.html
@@ -8,7 +8,7 @@
 
§datastore: Datastore

A key-value store associating a hash to arbitrary bytes

Trait Implementations§

source§

impl Applicable<LedgerEntryUpdate> for LedgerEntry

A LedgerEntryUpdate can be applied to a LedgerEntry

source§

fn apply(&mut self, update: LedgerEntryUpdate)

apply changes from other to mutable self
source§

impl Clone for LedgerEntry

source§

fn clone(&self) -> LedgerEntry

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 LedgerEntry

source§

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

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

impl Default for LedgerEntry

source§

fn default() -> LedgerEntry

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for LedgerEntry

source§

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 Deserializer<LedgerEntry> for LedgerEntryDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Deserializer<LedgerEntry> for LedgerEntryDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], LedgerEntry, E>

Example
@@ -38,11 +38,11 @@
source§

impl From<LedgerEntry> for LedgerEntry

source§

fn from(value: LedgerEntry) -> Self

Converts to this type from the input type.
source§

impl PartialEq<LedgerEntry> for LedgerEntry

source§

fn eq(&self, other: &LedgerEntry) -> 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 Serialize for LedgerEntry

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<LedgerEntry> for LedgerEntrySerializer

source§

fn serialize( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<LedgerEntry> for LedgerEntrySerializer

source§

fn serialize( &self, value: &LedgerEntry, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>
Example
use massa_serialization::Serializer;
 use std::collections::BTreeMap;
 use std::str::FromStr;
diff --git a/massa_ledger_exports/struct.LedgerEntryDeserializer.html b/massa_ledger_exports/struct.LedgerEntryDeserializer.html
index fdeb12ca248..165fb4dd770 100644
--- a/massa_ledger_exports/struct.LedgerEntryDeserializer.html
+++ b/massa_ledger_exports/struct.LedgerEntryDeserializer.html
@@ -8,7 +8,7 @@
     max_datastore_key_length: u8,
     max_datastore_value_length: u64
 ) -> Self

Creates a new LedgerEntryDeserializer

-

Trait Implementations§

source§

impl Deserializer<LedgerEntry> for LedgerEntryDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Trait Implementations§

source§

impl Deserializer<LedgerEntry> for LedgerEntryDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], LedgerEntry, E>

Example
diff --git a/massa_ledger_exports/struct.LedgerEntrySerializer.html b/massa_ledger_exports/struct.LedgerEntrySerializer.html index b0cdd434745..12110172bd4 100644 --- a/massa_ledger_exports/struct.LedgerEntrySerializer.html +++ b/massa_ledger_exports/struct.LedgerEntrySerializer.html @@ -4,11 +4,11 @@ datastore_serializer: DatastoreSerializer, }
Expand description

Serializer for LedgerEntry

Fields§

§amount_serializer: AmountSerializer§bytecode_serializer: BytecodeSerializer§datastore_serializer: DatastoreSerializer

Implementations§

source§

impl LedgerEntrySerializer

source

pub fn new() -> Self

Creates a new LedgerEntrySerializer

-

Trait Implementations§

source§

impl Default for LedgerEntrySerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<LedgerEntry> for LedgerEntrySerializer

Trait Implementations§

source§

impl Default for LedgerEntrySerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<LedgerEntry> for LedgerEntrySerializer

source§

fn serialize( &self, value: &LedgerEntry, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>
Example
use massa_serialization::Serializer;
 use std::collections::BTreeMap;
 use std::str::FromStr;
diff --git a/massa_ledger_exports/struct.LedgerEntryUpdate.html b/massa_ledger_exports/struct.LedgerEntryUpdate.html
index 47012afd505..bbce869a23f 100644
--- a/massa_ledger_exports/struct.LedgerEntryUpdate.html
+++ b/massa_ledger_exports/struct.LedgerEntryUpdate.html
@@ -9,7 +9,7 @@
 

Trait Implementations§

source§

impl Applicable<LedgerEntryUpdate> for LedgerEntry

A LedgerEntryUpdate can be applied to a LedgerEntry

source§

fn apply(&mut self, update: LedgerEntryUpdate)

apply changes from other to mutable self
source§

impl Applicable<LedgerEntryUpdate> for LedgerEntryUpdate

source§

fn apply(&mut self, update: LedgerEntryUpdate)

extends the LedgerEntryUpdate with another one

source§

impl Clone for LedgerEntryUpdate

source§

fn clone(&self) -> LedgerEntryUpdate

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 LedgerEntryUpdate

source§

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

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

impl Default for LedgerEntryUpdate

source§

fn default() -> LedgerEntryUpdate

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for LedgerEntryUpdate

source§

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 Deserializer<LedgerEntryUpdate> for LedgerEntryUpdateDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Deserializer<LedgerEntryUpdate> for LedgerEntryUpdateDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], LedgerEntryUpdate, E>

Example
@@ -39,11 +39,11 @@
source§

impl From<LedgerEntryUpdate> for LedgerEntryUpdate

source§

fn from(value: LedgerEntryUpdate) -> Self

Converts to this type from the input type.
source§

impl PartialEq<LedgerEntryUpdate> for LedgerEntryUpdate

source§

fn eq(&self, other: &LedgerEntryUpdate) -> 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 Serialize for LedgerEntryUpdate

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<LedgerEntryUpdate> for LedgerEntryUpdateSerializer

source§

fn serialize( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<LedgerEntryUpdate> for LedgerEntryUpdateSerializer

source§

fn serialize( &self, value: &LedgerEntryUpdate, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>
Example
use massa_serialization::Serializer;
 use massa_models::{prehash::PreHashMap, address::Address, amount::Amount, bytecode::Bytecode};
 use std::str::FromStr;
diff --git a/massa_ledger_exports/struct.LedgerEntryUpdateDeserializer.html b/massa_ledger_exports/struct.LedgerEntryUpdateDeserializer.html
index a4f1a1a8ec0..74962a9eccf 100644
--- a/massa_ledger_exports/struct.LedgerEntryUpdateDeserializer.html
+++ b/massa_ledger_exports/struct.LedgerEntryUpdateDeserializer.html
@@ -8,7 +8,7 @@
     max_datastore_value_length: u64,
     max_datastore_entry_count: u64
 ) -> Self

Creates a new LedgerEntryUpdateDeserializer

-

Trait Implementations§

source§

impl Deserializer<LedgerEntryUpdate> for LedgerEntryUpdateDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Trait Implementations§

source§

impl Deserializer<LedgerEntryUpdate> for LedgerEntryUpdateDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], LedgerEntryUpdate, E>

Example
diff --git a/massa_ledger_exports/struct.LedgerEntryUpdateSerializer.html b/massa_ledger_exports/struct.LedgerEntryUpdateSerializer.html index a536e074ef1..1a235cb2068 100644 --- a/massa_ledger_exports/struct.LedgerEntryUpdateSerializer.html +++ b/massa_ledger_exports/struct.LedgerEntryUpdateSerializer.html @@ -4,11 +4,11 @@ datastore_serializer: DatastoreUpdateSerializer, }
Expand description

Serializer for LedgerEntryUpdate

Fields§

§balance_serializer: SetOrKeepSerializer<Amount, AmountSerializer>§bytecode_serializer: SetOrKeepSerializer<Bytecode, BytecodeSerializer>§datastore_serializer: DatastoreUpdateSerializer

Implementations§

source§

impl LedgerEntryUpdateSerializer

source

pub fn new() -> Self

Creates a new LedgerEntryUpdateSerializer

-

Trait Implementations§

Trait Implementations§

source§

impl Default for LedgerEntryUpdateSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<LedgerEntryUpdate> for LedgerEntryUpdateSerializer

source§

fn serialize( &self, value: &LedgerEntryUpdate, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>
Example
use massa_serialization::Serializer;
 use massa_models::{prehash::PreHashMap, address::Address, amount::Amount, bytecode::Bytecode};
 use std::str::FromStr;
diff --git a/massa_ledger_exports/struct.SetOrKeepDeserializer.html b/massa_ledger_exports/struct.SetOrKeepDeserializer.html
index a8c67250df0..fc8e5190db9 100644
--- a/massa_ledger_exports/struct.SetOrKeepDeserializer.html
+++ b/massa_ledger_exports/struct.SetOrKeepDeserializer.html
@@ -1,10 +1,10 @@
-SetOrKeepDeserializer in massa_ledger_exports - Rust
pub struct SetOrKeepDeserializer<T: Clone, DT: Deserializer<T>> {
+SetOrKeepDeserializer in massa_ledger_exports - Rust
pub struct SetOrKeepDeserializer<T: Clone, DT: Deserializer<T>> {
     inner_deserializer: DT,
     phantom_t: PhantomData<T>,
-}

Fields§

§inner_deserializer: DT§phantom_t: PhantomData<T>

Implementations§

source§

impl<T: Clone, DT: Deserializer<T>> SetOrKeepDeserializer<T, DT>

source

pub fn new(inner_deserializer: DT) -> Self

Trait Implementations§

source§

impl<T: Clone, DT: Deserializer<T>> Deserializer<SetOrKeep<T>> for SetOrKeepDeserializer<T, DT>

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +}

Fields§

§inner_deserializer: DT§phantom_t: PhantomData<T>

Implementations§

source§

impl<T: Clone, DT: Deserializer<T>> SetOrKeepDeserializer<T, DT>

source

pub fn new(inner_deserializer: DT) -> Self

Trait Implementations§

source§

impl<T: Clone, DT: Deserializer<T>> Deserializer<SetOrKeep<T>> for SetOrKeepDeserializer<T, DT>

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], SetOrKeep<T>, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

§

impl<T, DT> RefUnwindSafe for SetOrKeepDeserializer<T, DT>where +) -> IResult<&'a [u8], SetOrKeep<T>, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

§

impl<T, DT> RefUnwindSafe for SetOrKeepDeserializer<T, DT>where DT: RefUnwindSafe, T: RefUnwindSafe,

§

impl<T, DT> Send for SetOrKeepDeserializer<T, DT>where DT: Send, diff --git a/massa_ledger_exports/struct.SetOrKeepSerializer.html b/massa_ledger_exports/struct.SetOrKeepSerializer.html index b0d38ebcd42..79ee2a668ff 100644 --- a/massa_ledger_exports/struct.SetOrKeepSerializer.html +++ b/massa_ledger_exports/struct.SetOrKeepSerializer.html @@ -1,11 +1,11 @@ -SetOrKeepSerializer in massa_ledger_exports - Rust
pub struct SetOrKeepSerializer<T: Clone, ST: Serializer<T>> {
+SetOrKeepSerializer in massa_ledger_exports - Rust
pub struct SetOrKeepSerializer<T: Clone, ST: Serializer<T>> {
     inner_serializer: ST,
     phantom_t: PhantomData<T>,
-}

Fields§

§inner_serializer: ST§phantom_t: PhantomData<T>

Implementations§

source§

impl<T: Clone, ST: Serializer<T>> SetOrKeepSerializer<T, ST>

source

pub fn new(inner_serializer: ST) -> Self

Trait Implementations§

Fields§

§inner_serializer: ST§phantom_t: PhantomData<T>

Implementations§

source§

impl<T: Clone, ST: Serializer<T>> SetOrKeepSerializer<T, ST>

source

pub fn new(inner_serializer: ST) -> Self

Trait Implementations§

source§

impl<T: Clone, ST: Serializer<T>> Serializer<SetOrKeep<T>> for SetOrKeepSerializer<T, ST>

source§

fn serialize( &self, value: &SetOrKeep<T>, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

§

impl<T, ST> RefUnwindSafe for SetOrKeepSerializer<T, ST>where +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

§

impl<T, ST> RefUnwindSafe for SetOrKeepSerializer<T, ST>where ST: RefUnwindSafe, T: RefUnwindSafe,

§

impl<T, ST> Send for SetOrKeepSerializer<T, ST>where ST: Send, diff --git a/massa_ledger_exports/struct.SetUpdateOrDeleteDeserializer.html b/massa_ledger_exports/struct.SetUpdateOrDeleteDeserializer.html index 8f7be8fb5c8..b2f7ffd4047 100644 --- a/massa_ledger_exports/struct.SetUpdateOrDeleteDeserializer.html +++ b/massa_ledger_exports/struct.SetUpdateOrDeleteDeserializer.html @@ -1,12 +1,12 @@ -SetUpdateOrDeleteDeserializer in massa_ledger_exports - Rust
pub struct SetUpdateOrDeleteDeserializer<T: Default + Applicable<V>, V: Applicable<V> + Clone, DT: Deserializer<T>, DV: Deserializer<V>> {
+SetUpdateOrDeleteDeserializer in massa_ledger_exports - Rust
pub struct SetUpdateOrDeleteDeserializer<T: Default + Applicable<V>, V: Applicable<V> + Clone, DT: Deserializer<T>, DV: Deserializer<V>> {
     inner_deserializer_set: DT,
     inner_deserializer_update: DV,
     phantom_t: PhantomData<T>,
     phantom_v: PhantomData<V>,
-}

Fields§

§inner_deserializer_set: DT§inner_deserializer_update: DV§phantom_t: PhantomData<T>§phantom_v: PhantomData<V>

Implementations§

source§

impl<T: Default + Applicable<V>, V: Applicable<V> + Clone, DT: Deserializer<T>, DV: Deserializer<V>> SetUpdateOrDeleteDeserializer<T, V, DT, DV>

source

pub fn new(inner_deserializer_set: DT, inner_deserializer_update: DV) -> Self

Trait Implementations§

source§

impl<T: Default + Applicable<V>, V: Applicable<V> + Clone, DT: Deserializer<T>, DV: Deserializer<V>> Deserializer<SetUpdateOrDelete<T, V>> for SetUpdateOrDeleteDeserializer<T, V, DT, DV>

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +}

Fields§

§inner_deserializer_set: DT§inner_deserializer_update: DV§phantom_t: PhantomData<T>§phantom_v: PhantomData<V>

Implementations§

source§

impl<T: Default + Applicable<V>, V: Applicable<V> + Clone, DT: Deserializer<T>, DV: Deserializer<V>> SetUpdateOrDeleteDeserializer<T, V, DT, DV>

source

pub fn new(inner_deserializer_set: DT, inner_deserializer_update: DV) -> Self

Trait Implementations§

source§

impl<T: Default + Applicable<V>, V: Applicable<V> + Clone, DT: Deserializer<T>, DV: Deserializer<V>> Deserializer<SetUpdateOrDelete<T, V>> for SetUpdateOrDeleteDeserializer<T, V, DT, DV>

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], SetUpdateOrDelete<T, V>, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

§

impl<T, V, DT, DV> RefUnwindSafe for SetUpdateOrDeleteDeserializer<T, V, DT, DV>where +) -> IResult<&'a [u8], SetUpdateOrDelete<T, V>, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

§

impl<T, V, DT, DV> RefUnwindSafe for SetUpdateOrDeleteDeserializer<T, V, DT, DV>where DT: RefUnwindSafe, DV: RefUnwindSafe, T: RefUnwindSafe, diff --git a/massa_ledger_exports/struct.SetUpdateOrDeleteSerializer.html b/massa_ledger_exports/struct.SetUpdateOrDeleteSerializer.html index 1669ba01e4b..dcaabb2cd41 100644 --- a/massa_ledger_exports/struct.SetUpdateOrDeleteSerializer.html +++ b/massa_ledger_exports/struct.SetUpdateOrDeleteSerializer.html @@ -1,13 +1,13 @@ -SetUpdateOrDeleteSerializer in massa_ledger_exports - Rust
pub struct SetUpdateOrDeleteSerializer<T: Default + Applicable<V>, V: Applicable<V> + Clone, ST: Serializer<T>, SV: Serializer<V>> {
+SetUpdateOrDeleteSerializer in massa_ledger_exports - Rust
pub struct SetUpdateOrDeleteSerializer<T: Default + Applicable<V>, V: Applicable<V> + Clone, ST: Serializer<T>, SV: Serializer<V>> {
     inner_serializer_set: ST,
     inner_serializer_update: SV,
     phantom_t: PhantomData<T>,
     phantom_v: PhantomData<V>,
-}

Fields§

§inner_serializer_set: ST§inner_serializer_update: SV§phantom_t: PhantomData<T>§phantom_v: PhantomData<V>

Implementations§

source§

impl<T: Default + Applicable<V>, V: Applicable<V> + Clone, ST: Serializer<T>, SV: Serializer<V>> SetUpdateOrDeleteSerializer<T, V, ST, SV>

source

pub fn new(inner_serializer_set: ST, inner_serializer_update: SV) -> Self

Trait Implementations§

Fields§

§inner_serializer_set: ST§inner_serializer_update: SV§phantom_t: PhantomData<T>§phantom_v: PhantomData<V>

Implementations§

source§

impl<T: Default + Applicable<V>, V: Applicable<V> + Clone, ST: Serializer<T>, SV: Serializer<V>> SetUpdateOrDeleteSerializer<T, V, ST, SV>

source

pub fn new(inner_serializer_set: ST, inner_serializer_update: SV) -> Self

Trait Implementations§

source§

impl<T: Default + Applicable<V>, V: Applicable<V> + Clone, ST: Serializer<T>, SV: Serializer<V>> Serializer<SetUpdateOrDelete<T, V>> for SetUpdateOrDeleteSerializer<T, V, ST, SV>

source§

fn serialize( &self, value: &SetUpdateOrDelete<T, V>, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

§

impl<T, V, ST, SV> RefUnwindSafe for SetUpdateOrDeleteSerializer<T, V, ST, SV>where +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

§

impl<T, V, ST, SV> RefUnwindSafe for SetUpdateOrDeleteSerializer<T, V, ST, SV>where ST: RefUnwindSafe, SV: RefUnwindSafe, T: RefUnwindSafe, diff --git a/massa_ledger_exports/types/enum.SetOrDelete.html b/massa_ledger_exports/types/enum.SetOrDelete.html index 4811f5385d3..bded82dbd59 100644 --- a/massa_ledger_exports/types/enum.SetOrDelete.html +++ b/massa_ledger_exports/types/enum.SetOrDelete.html @@ -7,18 +7,18 @@

Trait Implementations§

source§

impl<T: Clone> Applicable<SetOrDelete<T>> for SetOrDelete<T>

allows applying another SetOrDelete to the current one

source§

fn apply(&mut self, other: Self)

apply changes from other to mutable self
source§

impl<T: Clone + Clone> Clone for SetOrDelete<T>

source§

fn clone(&self) -> SetOrDelete<T>

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<T: Debug + Clone> Debug for SetOrDelete<T>

source§

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

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

impl<'de, T> Deserialize<'de> for SetOrDelete<T>where T: Deserialize<'de> + Clone,

source§

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<T: Clone, DT: Deserializer<T>> Deserializer<SetOrDelete<T>> for SetOrDeleteDeserializer<T, DT>

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<T: Clone, DT: Deserializer<T>> Deserializer<SetOrDelete<T>> for SetOrDeleteDeserializer<T, DT>

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], SetOrDelete<T>, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl<T: PartialEq + Clone> PartialEq<SetOrDelete<T>> for SetOrDelete<T>

source§

fn eq(&self, other: &SetOrDelete<T>) -> bool

This method tests for self and other values to be equal, and is used +) -> IResult<&'a [u8], SetOrDelete<T>, E>
Deserialize a value T from a buffer of u8. Read more
source§

impl<T: PartialEq + Clone> PartialEq<SetOrDelete<T>> for SetOrDelete<T>

source§

fn eq(&self, other: &SetOrDelete<T>) -> 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<T> Serialize for SetOrDelete<T>where T: Serialize + Clone,

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T: Clone, ST: Serializer<T>> Serializer<SetOrDelete<T>> for SetOrDeleteSerializer<T, ST>

source§

fn serialize( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T: Clone, ST: Serializer<T>> Serializer<SetOrDelete<T>> for SetOrDeleteSerializer<T, ST>

source§

fn serialize( &self, value: &SetOrDelete<T>, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl<T: Eq + Clone> Eq for SetOrDelete<T>

source§

impl<T: Clone> StructuralEq for SetOrDelete<T>

source§

impl<T: Clone> StructuralPartialEq for SetOrDelete<T>

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for SetOrDelete<T>where +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl<T: Eq + Clone> Eq for SetOrDelete<T>

source§

impl<T: Clone> StructuralEq for SetOrDelete<T>

source§

impl<T: Clone> StructuralPartialEq for SetOrDelete<T>

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for SetOrDelete<T>where T: RefUnwindSafe,

§

impl<T> Send for SetOrDelete<T>where T: Send,

§

impl<T> Sync for SetOrDelete<T>where T: Sync,

§

impl<T> Unpin for SetOrDelete<T>where diff --git a/massa_ledger_exports/types/enum.SetOrKeep.html b/massa_ledger_exports/types/enum.SetOrKeep.html index 5c7c36cd502..fcfd84eb88a 100644 --- a/massa_ledger_exports/types/enum.SetOrKeep.html +++ b/massa_ledger_exports/types/enum.SetOrKeep.html @@ -9,18 +9,18 @@

source§

fn apply(&mut self, other: SetOrKeep<T>)

apply changes from other to mutable self
source§

impl<T: Clone + Clone> Clone for SetOrKeep<T>

source§

fn clone(&self) -> SetOrKeep<T>

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<T: Debug + Clone> Debug for SetOrKeep<T>

source§

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

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

impl<T: Clone> Default for SetOrKeep<T>

By default, SetOrKeep keeps the existing value

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<'de, T> Deserialize<'de> for SetOrKeep<T>where T: Deserialize<'de> + Clone,

source§

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<T: Clone, DT: Deserializer<T>> Deserializer<SetOrKeep<T>> for SetOrKeepDeserializer<T, DT>

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<T: Clone, DT: Deserializer<T>> Deserializer<SetOrKeep<T>> for SetOrKeepDeserializer<T, DT>

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], SetOrKeep<T>, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl<T: PartialEq + Clone> PartialEq<SetOrKeep<T>> for SetOrKeep<T>

source§

fn eq(&self, other: &SetOrKeep<T>) -> bool

This method tests for self and other values to be equal, and is used +) -> IResult<&'a [u8], SetOrKeep<T>, E>
Deserialize a value T from a buffer of u8. Read more
source§

impl<T: PartialEq + Clone> PartialEq<SetOrKeep<T>> for SetOrKeep<T>

source§

fn eq(&self, other: &SetOrKeep<T>) -> 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<T> Serialize for SetOrKeep<T>where T: Serialize + Clone,

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T: Clone, ST: Serializer<T>> Serializer<SetOrKeep<T>> for SetOrKeepSerializer<T, ST>

source§

fn serialize( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T: Clone, ST: Serializer<T>> Serializer<SetOrKeep<T>> for SetOrKeepSerializer<T, ST>

source§

fn serialize( &self, value: &SetOrKeep<T>, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl<T: Eq + Clone> Eq for SetOrKeep<T>

source§

impl<T: Clone> StructuralEq for SetOrKeep<T>

source§

impl<T: Clone> StructuralPartialEq for SetOrKeep<T>

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for SetOrKeep<T>where +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl<T: Eq + Clone> Eq for SetOrKeep<T>

source§

impl<T: Clone> StructuralEq for SetOrKeep<T>

source§

impl<T: Clone> StructuralPartialEq for SetOrKeep<T>

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for SetOrKeep<T>where T: RefUnwindSafe,

§

impl<T> Send for SetOrKeep<T>where T: Send,

§

impl<T> Sync for SetOrKeep<T>where T: Sync,

§

impl<T> Unpin for SetOrKeep<T>where diff --git a/massa_ledger_exports/types/enum.SetUpdateOrDelete.html b/massa_ledger_exports/types/enum.SetUpdateOrDelete.html index f1d807863a9..2500a782c7c 100644 --- a/massa_ledger_exports/types/enum.SetUpdateOrDelete.html +++ b/massa_ledger_exports/types/enum.SetUpdateOrDelete.html @@ -15,19 +15,19 @@

source§

fn apply(&mut self, other: SetUpdateOrDelete<T, V>)

apply changes from other to mutable self
source§

impl<T: Clone + Default + Applicable<V>, V: Clone + Applicable<V> + Clone> Clone for SetUpdateOrDelete<T, V>

source§

fn clone(&self) -> SetUpdateOrDelete<T, V>

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<T: Debug + Default + Applicable<V>, V: Debug + Applicable<V> + Clone> Debug for SetUpdateOrDelete<T, V>

source§

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

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

impl<'de, T, V> Deserialize<'de> for SetUpdateOrDelete<T, V>where T: Deserialize<'de> + Default + Applicable<V>, V: Deserialize<'de> + Applicable<V> + Clone,

source§

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<T: Default + Applicable<V>, V: Applicable<V> + Clone, DT: Deserializer<T>, DV: Deserializer<V>> Deserializer<SetUpdateOrDelete<T, V>> for SetUpdateOrDeleteDeserializer<T, V, DT, DV>

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<T: Default + Applicable<V>, V: Applicable<V> + Clone, DT: Deserializer<T>, DV: Deserializer<V>> Deserializer<SetUpdateOrDelete<T, V>> for SetUpdateOrDeleteDeserializer<T, V, DT, DV>

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], SetUpdateOrDelete<T, V>, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl<T: PartialEq + Default + Applicable<V>, V: PartialEq + Applicable<V> + Clone> PartialEq<SetUpdateOrDelete<T, V>> for SetUpdateOrDelete<T, V>

source§

fn eq(&self, other: &SetUpdateOrDelete<T, V>) -> bool

This method tests for self and other values to be equal, and is used +) -> IResult<&'a [u8], SetUpdateOrDelete<T, V>, E>
Deserialize a value T from a buffer of u8. Read more
source§

impl<T: PartialEq + Default + Applicable<V>, V: PartialEq + Applicable<V> + Clone> PartialEq<SetUpdateOrDelete<T, V>> for SetUpdateOrDelete<T, V>

source§

fn eq(&self, other: &SetUpdateOrDelete<T, V>) -> 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<T, V> Serialize for SetUpdateOrDelete<T, V>where T: Serialize + Default + Applicable<V>, V: Serialize + Applicable<V> + Clone,

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T: Default + Applicable<V>, V: Applicable<V> + Clone, ST: Serializer<T>, SV: Serializer<V>> Serializer<SetUpdateOrDelete<T, V>> for SetUpdateOrDeleteSerializer<T, V, ST, SV>

source§

fn serialize( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T: Default + Applicable<V>, V: Applicable<V> + Clone, ST: Serializer<T>, SV: Serializer<V>> Serializer<SetUpdateOrDelete<T, V>> for SetUpdateOrDeleteSerializer<T, V, ST, SV>

source§

fn serialize( &self, value: &SetUpdateOrDelete<T, V>, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl<T: Eq + Default + Applicable<V>, V: Eq + Applicable<V> + Clone> Eq for SetUpdateOrDelete<T, V>

source§

impl<T: Default + Applicable<V>, V: Applicable<V> + Clone> StructuralEq for SetUpdateOrDelete<T, V>

source§

impl<T: Default + Applicable<V>, V: Applicable<V> + Clone> StructuralPartialEq for SetUpdateOrDelete<T, V>

Auto Trait Implementations§

§

impl<T, V> RefUnwindSafe for SetUpdateOrDelete<T, V>where +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl<T: Eq + Default + Applicable<V>, V: Eq + Applicable<V> + Clone> Eq for SetUpdateOrDelete<T, V>

source§

impl<T: Default + Applicable<V>, V: Applicable<V> + Clone> StructuralEq for SetUpdateOrDelete<T, V>

source§

impl<T: Default + Applicable<V>, V: Applicable<V> + Clone> StructuralPartialEq for SetUpdateOrDelete<T, V>

Auto Trait Implementations§

§

impl<T, V> RefUnwindSafe for SetUpdateOrDelete<T, V>where T: RefUnwindSafe, V: RefUnwindSafe,

§

impl<T, V> Send for SetUpdateOrDelete<T, V>where T: Send, diff --git a/massa_ledger_exports/types/struct.SetOrDeleteDeserializer.html b/massa_ledger_exports/types/struct.SetOrDeleteDeserializer.html index a57f5e9dc54..8598fe6bac8 100644 --- a/massa_ledger_exports/types/struct.SetOrDeleteDeserializer.html +++ b/massa_ledger_exports/types/struct.SetOrDeleteDeserializer.html @@ -1,10 +1,10 @@ -SetOrDeleteDeserializer in massa_ledger_exports::types - Rust
pub struct SetOrDeleteDeserializer<T: Clone, DT: Deserializer<T>> {
+SetOrDeleteDeserializer in massa_ledger_exports::types - Rust
pub struct SetOrDeleteDeserializer<T: Clone, DT: Deserializer<T>> {
     inner_deserializer: DT,
     phantom_t: PhantomData<T>,
-}

Fields§

§inner_deserializer: DT§phantom_t: PhantomData<T>

Implementations§

source§

impl<T: Clone, DT: Deserializer<T>> SetOrDeleteDeserializer<T, DT>

source

pub fn new(inner_deserializer: DT) -> Self

Trait Implementations§

source§

impl<T: Clone, DT: Deserializer<T>> Deserializer<SetOrDelete<T>> for SetOrDeleteDeserializer<T, DT>

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +}

Fields§

§inner_deserializer: DT§phantom_t: PhantomData<T>

Implementations§

source§

impl<T: Clone, DT: Deserializer<T>> SetOrDeleteDeserializer<T, DT>

source

pub fn new(inner_deserializer: DT) -> Self

Trait Implementations§

source§

impl<T: Clone, DT: Deserializer<T>> Deserializer<SetOrDelete<T>> for SetOrDeleteDeserializer<T, DT>

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], SetOrDelete<T>, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

§

impl<T, DT> RefUnwindSafe for SetOrDeleteDeserializer<T, DT>where +) -> IResult<&'a [u8], SetOrDelete<T>, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

§

impl<T, DT> RefUnwindSafe for SetOrDeleteDeserializer<T, DT>where DT: RefUnwindSafe, T: RefUnwindSafe,

§

impl<T, DT> Send for SetOrDeleteDeserializer<T, DT>where DT: Send, diff --git a/massa_ledger_exports/types/struct.SetOrDeleteSerializer.html b/massa_ledger_exports/types/struct.SetOrDeleteSerializer.html index 1037e7a9af6..fadaaaa4f12 100644 --- a/massa_ledger_exports/types/struct.SetOrDeleteSerializer.html +++ b/massa_ledger_exports/types/struct.SetOrDeleteSerializer.html @@ -1,11 +1,11 @@ -SetOrDeleteSerializer in massa_ledger_exports::types - Rust
pub struct SetOrDeleteSerializer<T: Clone, ST: Serializer<T>> {
+SetOrDeleteSerializer in massa_ledger_exports::types - Rust
pub struct SetOrDeleteSerializer<T: Clone, ST: Serializer<T>> {
     inner_serializer: ST,
     phantom_t: PhantomData<T>,
-}

Fields§

§inner_serializer: ST§phantom_t: PhantomData<T>

Implementations§

source§

impl<T: Clone, ST: Serializer<T>> SetOrDeleteSerializer<T, ST>

source

pub fn new(inner_serializer: ST) -> Self

Trait Implementations§

Fields§

§inner_serializer: ST§phantom_t: PhantomData<T>

Implementations§

source§

impl<T: Clone, ST: Serializer<T>> SetOrDeleteSerializer<T, ST>

source

pub fn new(inner_serializer: ST) -> Self

Trait Implementations§

source§

impl<T: Clone, ST: Serializer<T>> Serializer<SetOrDelete<T>> for SetOrDeleteSerializer<T, ST>

source§

fn serialize( &self, value: &SetOrDelete<T>, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

§

impl<T, ST> RefUnwindSafe for SetOrDeleteSerializer<T, ST>where +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

§

impl<T, ST> RefUnwindSafe for SetOrDeleteSerializer<T, ST>where ST: RefUnwindSafe, T: RefUnwindSafe,

§

impl<T, ST> Send for SetOrDeleteSerializer<T, ST>where ST: Send, diff --git a/massa_ledger_exports/types/struct.SetOrKeepDeserializer.html b/massa_ledger_exports/types/struct.SetOrKeepDeserializer.html index 6048279f7b1..298c65eaad1 100644 --- a/massa_ledger_exports/types/struct.SetOrKeepDeserializer.html +++ b/massa_ledger_exports/types/struct.SetOrKeepDeserializer.html @@ -1,10 +1,10 @@ -SetOrKeepDeserializer in massa_ledger_exports::types - Rust
pub struct SetOrKeepDeserializer<T: Clone, DT: Deserializer<T>> {
+SetOrKeepDeserializer in massa_ledger_exports::types - Rust
pub struct SetOrKeepDeserializer<T: Clone, DT: Deserializer<T>> {
     inner_deserializer: DT,
     phantom_t: PhantomData<T>,
-}

Fields§

§inner_deserializer: DT§phantom_t: PhantomData<T>

Implementations§

source§

impl<T: Clone, DT: Deserializer<T>> SetOrKeepDeserializer<T, DT>

source

pub fn new(inner_deserializer: DT) -> Self

Trait Implementations§

source§

impl<T: Clone, DT: Deserializer<T>> Deserializer<SetOrKeep<T>> for SetOrKeepDeserializer<T, DT>

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +}

Fields§

§inner_deserializer: DT§phantom_t: PhantomData<T>

Implementations§

source§

impl<T: Clone, DT: Deserializer<T>> SetOrKeepDeserializer<T, DT>

source

pub fn new(inner_deserializer: DT) -> Self

Trait Implementations§

source§

impl<T: Clone, DT: Deserializer<T>> Deserializer<SetOrKeep<T>> for SetOrKeepDeserializer<T, DT>

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], SetOrKeep<T>, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

§

impl<T, DT> RefUnwindSafe for SetOrKeepDeserializer<T, DT>where +) -> IResult<&'a [u8], SetOrKeep<T>, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

§

impl<T, DT> RefUnwindSafe for SetOrKeepDeserializer<T, DT>where DT: RefUnwindSafe, T: RefUnwindSafe,

§

impl<T, DT> Send for SetOrKeepDeserializer<T, DT>where DT: Send, diff --git a/massa_ledger_exports/types/struct.SetOrKeepSerializer.html b/massa_ledger_exports/types/struct.SetOrKeepSerializer.html index 3a92219e306..cfda54b3dc9 100644 --- a/massa_ledger_exports/types/struct.SetOrKeepSerializer.html +++ b/massa_ledger_exports/types/struct.SetOrKeepSerializer.html @@ -1,11 +1,11 @@ -SetOrKeepSerializer in massa_ledger_exports::types - Rust
pub struct SetOrKeepSerializer<T: Clone, ST: Serializer<T>> {
+SetOrKeepSerializer in massa_ledger_exports::types - Rust
pub struct SetOrKeepSerializer<T: Clone, ST: Serializer<T>> {
     inner_serializer: ST,
     phantom_t: PhantomData<T>,
-}

Fields§

§inner_serializer: ST§phantom_t: PhantomData<T>

Implementations§

source§

impl<T: Clone, ST: Serializer<T>> SetOrKeepSerializer<T, ST>

source

pub fn new(inner_serializer: ST) -> Self

Trait Implementations§

Fields§

§inner_serializer: ST§phantom_t: PhantomData<T>

Implementations§

source§

impl<T: Clone, ST: Serializer<T>> SetOrKeepSerializer<T, ST>

source

pub fn new(inner_serializer: ST) -> Self

Trait Implementations§

source§

impl<T: Clone, ST: Serializer<T>> Serializer<SetOrKeep<T>> for SetOrKeepSerializer<T, ST>

source§

fn serialize( &self, value: &SetOrKeep<T>, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

§

impl<T, ST> RefUnwindSafe for SetOrKeepSerializer<T, ST>where +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

§

impl<T, ST> RefUnwindSafe for SetOrKeepSerializer<T, ST>where ST: RefUnwindSafe, T: RefUnwindSafe,

§

impl<T, ST> Send for SetOrKeepSerializer<T, ST>where ST: Send, diff --git a/massa_ledger_exports/types/struct.SetUpdateOrDeleteDeserializer.html b/massa_ledger_exports/types/struct.SetUpdateOrDeleteDeserializer.html index 29c39835d65..aedcc2c50ce 100644 --- a/massa_ledger_exports/types/struct.SetUpdateOrDeleteDeserializer.html +++ b/massa_ledger_exports/types/struct.SetUpdateOrDeleteDeserializer.html @@ -1,12 +1,12 @@ -SetUpdateOrDeleteDeserializer in massa_ledger_exports::types - Rust
pub struct SetUpdateOrDeleteDeserializer<T: Default + Applicable<V>, V: Applicable<V> + Clone, DT: Deserializer<T>, DV: Deserializer<V>> {
+SetUpdateOrDeleteDeserializer in massa_ledger_exports::types - Rust
pub struct SetUpdateOrDeleteDeserializer<T: Default + Applicable<V>, V: Applicable<V> + Clone, DT: Deserializer<T>, DV: Deserializer<V>> {
     inner_deserializer_set: DT,
     inner_deserializer_update: DV,
     phantom_t: PhantomData<T>,
     phantom_v: PhantomData<V>,
-}

Fields§

§inner_deserializer_set: DT§inner_deserializer_update: DV§phantom_t: PhantomData<T>§phantom_v: PhantomData<V>

Implementations§

source§

impl<T: Default + Applicable<V>, V: Applicable<V> + Clone, DT: Deserializer<T>, DV: Deserializer<V>> SetUpdateOrDeleteDeserializer<T, V, DT, DV>

source

pub fn new(inner_deserializer_set: DT, inner_deserializer_update: DV) -> Self

Trait Implementations§

source§

impl<T: Default + Applicable<V>, V: Applicable<V> + Clone, DT: Deserializer<T>, DV: Deserializer<V>> Deserializer<SetUpdateOrDelete<T, V>> for SetUpdateOrDeleteDeserializer<T, V, DT, DV>

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +}

Fields§

§inner_deserializer_set: DT§inner_deserializer_update: DV§phantom_t: PhantomData<T>§phantom_v: PhantomData<V>

Implementations§

source§

impl<T: Default + Applicable<V>, V: Applicable<V> + Clone, DT: Deserializer<T>, DV: Deserializer<V>> SetUpdateOrDeleteDeserializer<T, V, DT, DV>

source

pub fn new(inner_deserializer_set: DT, inner_deserializer_update: DV) -> Self

Trait Implementations§

source§

impl<T: Default + Applicable<V>, V: Applicable<V> + Clone, DT: Deserializer<T>, DV: Deserializer<V>> Deserializer<SetUpdateOrDelete<T, V>> for SetUpdateOrDeleteDeserializer<T, V, DT, DV>

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], SetUpdateOrDelete<T, V>, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

§

impl<T, V, DT, DV> RefUnwindSafe for SetUpdateOrDeleteDeserializer<T, V, DT, DV>where +) -> IResult<&'a [u8], SetUpdateOrDelete<T, V>, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

§

impl<T, V, DT, DV> RefUnwindSafe for SetUpdateOrDeleteDeserializer<T, V, DT, DV>where DT: RefUnwindSafe, DV: RefUnwindSafe, T: RefUnwindSafe, diff --git a/massa_ledger_exports/types/struct.SetUpdateOrDeleteSerializer.html b/massa_ledger_exports/types/struct.SetUpdateOrDeleteSerializer.html index 3e1093b8032..f8f75a8b1ba 100644 --- a/massa_ledger_exports/types/struct.SetUpdateOrDeleteSerializer.html +++ b/massa_ledger_exports/types/struct.SetUpdateOrDeleteSerializer.html @@ -1,13 +1,13 @@ -SetUpdateOrDeleteSerializer in massa_ledger_exports::types - Rust
pub struct SetUpdateOrDeleteSerializer<T: Default + Applicable<V>, V: Applicable<V> + Clone, ST: Serializer<T>, SV: Serializer<V>> {
+SetUpdateOrDeleteSerializer in massa_ledger_exports::types - Rust
pub struct SetUpdateOrDeleteSerializer<T: Default + Applicable<V>, V: Applicable<V> + Clone, ST: Serializer<T>, SV: Serializer<V>> {
     inner_serializer_set: ST,
     inner_serializer_update: SV,
     phantom_t: PhantomData<T>,
     phantom_v: PhantomData<V>,
-}

Fields§

§inner_serializer_set: ST§inner_serializer_update: SV§phantom_t: PhantomData<T>§phantom_v: PhantomData<V>

Implementations§

source§

impl<T: Default + Applicable<V>, V: Applicable<V> + Clone, ST: Serializer<T>, SV: Serializer<V>> SetUpdateOrDeleteSerializer<T, V, ST, SV>

source

pub fn new(inner_serializer_set: ST, inner_serializer_update: SV) -> Self

Trait Implementations§

Fields§

§inner_serializer_set: ST§inner_serializer_update: SV§phantom_t: PhantomData<T>§phantom_v: PhantomData<V>

Implementations§

source§

impl<T: Default + Applicable<V>, V: Applicable<V> + Clone, ST: Serializer<T>, SV: Serializer<V>> SetUpdateOrDeleteSerializer<T, V, ST, SV>

source

pub fn new(inner_serializer_set: ST, inner_serializer_update: SV) -> Self

Trait Implementations§

source§

impl<T: Default + Applicable<V>, V: Applicable<V> + Clone, ST: Serializer<T>, SV: Serializer<V>> Serializer<SetUpdateOrDelete<T, V>> for SetUpdateOrDeleteSerializer<T, V, ST, SV>

source§

fn serialize( &self, value: &SetUpdateOrDelete<T, V>, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

§

impl<T, V, ST, SV> RefUnwindSafe for SetUpdateOrDeleteSerializer<T, V, ST, SV>where +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

§

impl<T, V, ST, SV> RefUnwindSafe for SetUpdateOrDeleteSerializer<T, V, ST, SV>where ST: RefUnwindSafe, SV: RefUnwindSafe, T: RefUnwindSafe, diff --git a/massa_ledger_worker/ledger_db/struct.LedgerDB.html b/massa_ledger_worker/ledger_db/struct.LedgerDB.html index 27e3e52df2c..d8fd4f80c61 100644 --- a/massa_ledger_worker/ledger_db/struct.LedgerDB.html +++ b/massa_ledger_worker/ledger_db/struct.LedgerDB.html @@ -4,8 +4,8 @@ key_serializer_db: KeySerializer, key_deserializer_db: KeyDeserializer, amount_serializer: AmountSerializer, - version_serializer: U64VarIntSerializer, - version_deserializer: U64VarIntDeserializer, + version_serializer: U64VarIntSerializer, + version_deserializer: U64VarIntDeserializer, bytecode_serializer: BytecodeSerializer, amount_deserializer: AmountDeserializer, bytecode_deserializer: BytecodeDeserializer, @@ -13,7 +13,7 @@ max_datastore_key_length: u8, }
Expand description

Disk ledger DB module

Contains a RocksDB DB instance

-

Fields§

§db: ShareableMassaDBController§thread_count: u8§key_serializer_db: KeySerializer§key_deserializer_db: KeyDeserializer§amount_serializer: AmountSerializer§version_serializer: U64VarIntSerializer§version_deserializer: U64VarIntDeserializer§bytecode_serializer: BytecodeSerializer§amount_deserializer: AmountDeserializer§bytecode_deserializer: BytecodeDeserializer§max_datastore_value_length: u64§max_datastore_key_length: u8

Implementations§

source§

impl LedgerDB

source

pub fn new( +

Fields§

§db: ShareableMassaDBController§thread_count: u8§key_serializer_db: KeySerializer§key_deserializer_db: KeyDeserializer§amount_serializer: AmountSerializer§version_serializer: U64VarIntSerializer§version_deserializer: U64VarIntDeserializer§bytecode_serializer: BytecodeSerializer§amount_deserializer: AmountDeserializer§bytecode_deserializer: BytecodeDeserializer§max_datastore_value_length: u64§max_datastore_key_length: u8

Implementations§

source§

impl LedgerDB

source

pub fn new( db: ShareableMassaDBController, thread_count: u8, max_datastore_key_length: u8, diff --git a/massa_models/address/enum.Address.html b/massa_models/address/enum.Address.html index 8b42e11ed40..22cb6f5ca14 100644 --- a/massa_models/address/enum.Address.html +++ b/massa_models/address/enum.Address.html @@ -7,10 +7,10 @@

source

pub fn from_public_key(public_key: &PublicKey) -> Self

Computes the address associated with the given public key. Depends on the Public Key version

source

pub fn to_prefixed_bytes(self) -> Vec<u8>

Serialize the address as bytes. Includes the type and version prefixes

-

Trait Implementations§

source§

impl Clone for Address

source§

fn clone(&self) -> Address

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 Address

source§

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

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

impl<'de> Deserialize<'de> for Address

source§

fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Address, D::Error>

Deserialize this value from the given Serde deserializer. Read more
source§

impl Deserializer<Address> for AddressDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Trait Implementations§

source§

impl Clone for Address

source§

fn clone(&self) -> Address

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 Address

source§

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

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

impl<'de> Deserialize<'de> for Address

source§

fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Address, D::Error>

Deserialize this value from the given Serde deserializer. Read more
source§

impl Deserializer<Address> for AddressDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], Address, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl Display for Address

source§

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

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

impl FromStr for Address

§

type Err = ModelsError

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for Address

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 +) -> IResult<&'a [u8], Address, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl Display for Address

source§

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

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

impl FromStr for Address

§

type Err = ModelsError

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for Address

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 Ord for Address

source§

fn cmp(&self, other: &Address) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere @@ -19,11 +19,11 @@ 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 PartialOrd<Address> for Address

source§

fn partial_cmp(&self, other: &Address) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for Address

source§

fn serialize<S: Serializer>(&self, s: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<Address> for AddressSerializer

source§

impl Serialize for Address

source§

fn serialize<S: Serializer>(&self, s: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<Address> for AddressSerializer

source§

fn serialize( &self, value: &Address, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Copy for Address

source§

impl Eq for Address

source§

impl PreHashed for Address

source§

impl StructuralEq for Address

source§

impl StructuralPartialEq for Address

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Copy for Address

source§

impl Eq for Address

source§

impl PreHashed for Address

source§

impl StructuralEq for Address

source§

impl StructuralPartialEq for Address

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> CallHasher for Twhere diff --git a/massa_models/address/enum.SCAddress.html b/massa_models/address/enum.SCAddress.html index 3f237d95035..d26c05e2899 100644 --- a/massa_models/address/enum.SCAddress.html +++ b/massa_models/address/enum.SCAddress.html @@ -2,10 +2,10 @@ SCAddressV0(SCAddressV0), }
Expand description

Derived from a public key.

Variants§

§

SCAddressV0(SCAddressV0)

Implementations§

source§

impl SCAddress

source

fn from_str_without_prefixed_type(s: &str) -> Result<Self, ModelsError>

source

pub fn to_prefixed_bytes(self) -> Vec<u8>

Serialize the address as bytes. Includes the type and version prefixes

-

Trait Implementations§

source§

impl Clone for SCAddress

source§

fn clone(&self) -> SCAddress

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 Deserializer<SCAddress> for AddressDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Trait Implementations§

source§

impl Clone for SCAddress

source§

fn clone(&self) -> SCAddress

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 Deserializer<SCAddress> for AddressDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], SCAddress, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl Display for SCAddress

source§

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

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

impl Hash for SCAddress

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 +) -> IResult<&'a [u8], SCAddress, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl Display for SCAddress

source§

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

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

impl Hash for SCAddress

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 Ord for SCAddress

source§

fn cmp(&self, other: &SCAddress) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere @@ -14,11 +14,11 @@ 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 PartialOrd<SCAddress> for SCAddress

source§

fn partial_cmp(&self, other: &SCAddress) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for SCAddress

source§

fn serialize<S: Serializer>(&self, s: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<SCAddress> for AddressSerializer

source§

impl Serialize for SCAddress

source§

fn serialize<S: Serializer>(&self, s: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<SCAddress> for AddressSerializer

source§

fn serialize( &self, value: &SCAddress, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Copy for SCAddress

source§

impl Eq for SCAddress

source§

impl StructuralEq for SCAddress

source§

impl StructuralPartialEq for SCAddress

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Copy for SCAddress

source§

impl Eq for SCAddress

source§

impl StructuralEq for SCAddress

source§

impl StructuralPartialEq for SCAddress

Auto Trait Implementations§

§

impl RefUnwindSafe for SCAddress

§

impl Send for SCAddress

§

impl Sync for SCAddress

§

impl Unpin for SCAddress

§

impl UnwindSafe for SCAddress

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> CallHasher for Twhere diff --git a/massa_models/address/enum.UserAddress.html b/massa_models/address/enum.UserAddress.html index 14e6fe70908..57272d1d118 100644 --- a/massa_models/address/enum.UserAddress.html +++ b/massa_models/address/enum.UserAddress.html @@ -4,10 +4,10 @@

Variants§

§

UserAddressV0(UserAddressV0)

Implementations§

source§

impl UserAddress

source

fn get_thread(&self, thread_count: u8) -> u8

Gets the associated thread. Depends on the thread_count

source

fn from_public_key(public_key: &PublicKey) -> Self

Computes the address associated with the given public key

source

fn from_str_without_prefixed_type(s: &str) -> Result<Self, ModelsError>

source

pub fn to_prefixed_bytes(self) -> Vec<u8>

Serialize the address as bytes. Includes the type and version prefixes

-

Trait Implementations§

source§

impl Clone for UserAddress

source§

fn clone(&self) -> UserAddress

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 Deserializer<UserAddress> for AddressDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Trait Implementations§

source§

impl Clone for UserAddress

source§

fn clone(&self) -> UserAddress

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 Deserializer<UserAddress> for AddressDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], UserAddress, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl Display for UserAddress

source§

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

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

impl Hash for UserAddress

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 +) -> IResult<&'a [u8], UserAddress, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl Display for UserAddress

source§

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

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

impl Hash for UserAddress

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 Ord for UserAddress

source§

fn cmp(&self, other: &UserAddress) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere @@ -16,11 +16,11 @@ 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 PartialOrd<UserAddress> for UserAddress

source§

fn partial_cmp(&self, other: &UserAddress) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for UserAddress

source§

fn serialize<S: Serializer>(&self, s: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<UserAddress> for AddressSerializer

source§

fn serialize( +operator. Read more

source§

impl Serialize for UserAddress

source§

fn serialize<S: Serializer>(&self, s: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<UserAddress> for AddressSerializer

source§

fn serialize( &self, value: &UserAddress, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Copy for UserAddress

source§

impl Eq for UserAddress

source§

impl StructuralEq for UserAddress

source§

impl StructuralPartialEq for UserAddress

Auto Trait Implementations§

§

impl RefUnwindSafe for UserAddress

§

impl Send for UserAddress

§

impl Sync for UserAddress

§

impl Unpin for UserAddress

§

impl UnwindSafe for UserAddress

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Copy for UserAddress

source§

impl Eq for UserAddress

source§

impl StructuralEq for UserAddress

source§

impl StructuralPartialEq for UserAddress

Auto Trait Implementations§

§

impl RefUnwindSafe for UserAddress

§

impl Send for UserAddress

§

impl Sync for UserAddress

§

impl Unpin for UserAddress

§

impl UnwindSafe for UserAddress

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> CallHasher for Twhere diff --git a/massa_models/address/struct.AddressDeserializer.html b/massa_models/address/struct.AddressDeserializer.html index d1bf93475c7..f1d3b0616b8 100644 --- a/massa_models/address/struct.AddressDeserializer.html +++ b/massa_models/address/struct.AddressDeserializer.html @@ -1,25 +1,25 @@ AddressDeserializer in massa_models::address - Rust
pub struct AddressDeserializer {
-    type_deserializer: U64VarIntDeserializer,
-    version_deserializer: U64VarIntDeserializer,
+    type_deserializer: U64VarIntDeserializer,
+    version_deserializer: U64VarIntDeserializer,
     hash_deserializer: HashDeserializer,
 }
Expand description

Deserializer for Address

-

Fields§

§type_deserializer: U64VarIntDeserializer§version_deserializer: U64VarIntDeserializer§hash_deserializer: HashDeserializer

Implementations§

source§

impl AddressDeserializer

source

pub const fn new() -> Self

Creates a new deserializer for Address

-

Trait Implementations§

source§

impl Clone for AddressDeserializer

source§

fn clone(&self) -> AddressDeserializer

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 Default for AddressDeserializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Deserializer<Address> for AddressDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Fields§

§type_deserializer: U64VarIntDeserializer§version_deserializer: U64VarIntDeserializer§hash_deserializer: HashDeserializer

Implementations§

source§

impl AddressDeserializer

source

pub const fn new() -> Self

Creates a new deserializer for Address

+

Trait Implementations§

source§

impl Clone for AddressDeserializer

source§

fn clone(&self) -> AddressDeserializer

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 Default for AddressDeserializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Deserializer<Address> for AddressDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], Address, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl Deserializer<SCAddress> for AddressDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +) -> IResult<&'a [u8], Address, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl Deserializer<SCAddress> for AddressDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], SCAddress, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl Deserializer<SCAddressV0> for AddressDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +) -> IResult<&'a [u8], SCAddress, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl Deserializer<SCAddressV0> for AddressDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], SCAddressV0, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl Deserializer<UserAddress> for AddressDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +) -> IResult<&'a [u8], SCAddressV0, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl Deserializer<UserAddress> for AddressDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], UserAddress, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl Deserializer<UserAddressV0> for AddressDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +) -> IResult<&'a [u8], UserAddress, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl Deserializer<UserAddressV0> for AddressDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], UserAddressV0, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> IResult<&'a [u8], UserAddressV0, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for AddressDeserializer

§

impl Send for AddressDeserializer

§

impl Sync for AddressDeserializer

§

impl Unpin for AddressDeserializer

§

impl UnwindSafe for AddressDeserializer

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_models/address/struct.AddressSerializer.html b/massa_models/address/struct.AddressSerializer.html index 312ec064ec0..dcdde46a193 100644 --- a/massa_models/address/struct.AddressSerializer.html +++ b/massa_models/address/struct.AddressSerializer.html @@ -1,29 +1,29 @@ AddressSerializer in massa_models::address - Rust
pub struct AddressSerializer {
-    type_serializer: U64VarIntSerializer,
-    version_serializer: U64VarIntSerializer,
+    type_serializer: U64VarIntSerializer,
+    version_serializer: U64VarIntSerializer,
 }
Expand description

Serializer for Address

-

Fields§

§type_serializer: U64VarIntSerializer§version_serializer: U64VarIntSerializer

Implementations§

source§

impl AddressSerializer

source

pub fn new() -> Self

Serializes an Address into a Vec<u8>

-

Trait Implementations§

source§

impl Clone for AddressSerializer

source§

fn clone(&self) -> AddressSerializer

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 Default for AddressSerializer

source§

fn default() -> AddressSerializer

Returns the “default value” for a type. Read more
source§

impl Serializer<Address> for AddressSerializer

Fields§

§type_serializer: U64VarIntSerializer§version_serializer: U64VarIntSerializer

Implementations§

source§

impl AddressSerializer

source

pub fn new() -> Self

Serializes an Address into a Vec<u8>

+

Trait Implementations§

source§

impl Clone for AddressSerializer

source§

fn clone(&self) -> AddressSerializer

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 Default for AddressSerializer

source§

fn default() -> AddressSerializer

Returns the “default value” for a type. Read more
source§

impl Serializer<Address> for AddressSerializer

source§

fn serialize( &self, value: &Address, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Serializer<SCAddress> for AddressSerializer

source§

fn serialize( +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Serializer<SCAddress> for AddressSerializer

source§

fn serialize( &self, value: &SCAddress, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Serializer<SCAddressV0> for AddressSerializer

source§

fn serialize( +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Serializer<SCAddressV0> for AddressSerializer

source§

fn serialize( &self, value: &SCAddressV0, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Serializer<UserAddress> for AddressSerializer

source§

fn serialize( +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Serializer<UserAddress> for AddressSerializer

source§

fn serialize( &self, value: &UserAddress, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Serializer<UserAddressV0> for AddressSerializer

source§

fn serialize( +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Serializer<UserAddressV0> for AddressSerializer

source§

fn serialize( &self, value: &UserAddressV0, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_models/address/struct.SCAddressV0.html b/massa_models/address/struct.SCAddressV0.html index f32a4f78e34..c9a80ae8f11 100644 --- a/massa_models/address/struct.SCAddressV0.html +++ b/massa_models/address/struct.SCAddressV0.html @@ -2,10 +2,10 @@

Tuple Fields§

§0: Hash

Implementations§

source§

impl SCAddressV0

source

pub fn get_version(&self) -> u64

Fetches the version of the SC Address

source§

impl SCAddressV0

source

pub fn to_prefixed_bytes(self) -> Vec<u8>

Serialize the address as bytes. Includes the type and version prefixes

source

fn from_bytes(data: &[u8]) -> Result<SCAddressV0, ModelsError>

Deserialize the address without considering the version byte

-

Trait Implementations§

source§

impl Clone for SCAddressV0

source§

fn clone(&self) -> SCAddressV0

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 Deserializer<SCAddressV0> for AddressDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Trait Implementations§

source§

impl Clone for SCAddressV0

source§

fn clone(&self) -> SCAddressV0

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 Deserializer<SCAddressV0> for AddressDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], SCAddressV0, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl Display for SCAddressV0

source§

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

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

impl Hash for SCAddressV0

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 +) -> IResult<&'a [u8], SCAddressV0, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl Display for SCAddressV0

source§

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

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

impl Hash for SCAddressV0

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 Ord for SCAddressV0

source§

fn cmp(&self, other: &SCAddressV0) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere @@ -14,11 +14,11 @@ 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 PartialOrd<SCAddressV0> for SCAddressV0

source§

fn partial_cmp(&self, other: &SCAddressV0) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for SCAddressV0

source§

fn serialize<S: Serializer>(&self, s: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<SCAddressV0> for AddressSerializer

source§

fn serialize( +operator. Read more

source§

impl Serialize for SCAddressV0

source§

fn serialize<S: Serializer>(&self, s: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<SCAddressV0> for AddressSerializer

source§

fn serialize( &self, value: &SCAddressV0, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Versioned for SCAddressV0

source§

const VERSION: u64 = 0u64

source§

const VERSION_VARINT_SIZE_BYTES: usize = 1usize

source§

impl Copy for SCAddressV0

source§

impl Eq for SCAddressV0

source§

impl StructuralEq for SCAddressV0

source§

impl StructuralPartialEq for SCAddressV0

Auto Trait Implementations§

§

impl RefUnwindSafe for SCAddressV0

§

impl Send for SCAddressV0

§

impl Sync for SCAddressV0

§

impl Unpin for SCAddressV0

§

impl UnwindSafe for SCAddressV0

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Versioned for SCAddressV0

source§

const VERSION: u64 = 0u64

source§

const VERSION_VARINT_SIZE_BYTES: usize = 1usize

source§

impl Copy for SCAddressV0

source§

impl Eq for SCAddressV0

source§

impl StructuralEq for SCAddressV0

source§

impl StructuralPartialEq for SCAddressV0

Auto Trait Implementations§

§

impl RefUnwindSafe for SCAddressV0

§

impl Send for SCAddressV0

§

impl Sync for SCAddressV0

§

impl Unpin for SCAddressV0

§

impl UnwindSafe for SCAddressV0

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> CallHasher for Twhere diff --git a/massa_models/address/struct.UserAddressV0.html b/massa_models/address/struct.UserAddressV0.html index 5c4d38e552f..5adf19a7831 100644 --- a/massa_models/address/struct.UserAddressV0.html +++ b/massa_models/address/struct.UserAddressV0.html @@ -4,10 +4,10 @@

source

fn get_thread(&self, thread_count: u8) -> u8

Gets the associated thread. Depends on the thread_count

source

fn from_bytes(data: &[u8]) -> Result<UserAddressV0, ModelsError>

Deserialize the address without considering the version byte

source§

impl UserAddressV0

source

pub fn from_public_key(public_key: &PublicKeyV0) -> Self

Computes address associated with given public key

-

Trait Implementations§

source§

impl Clone for UserAddressV0

source§

fn clone(&self) -> UserAddressV0

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 Deserializer<UserAddressV0> for AddressDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Trait Implementations§

source§

impl Clone for UserAddressV0

source§

fn clone(&self) -> UserAddressV0

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 Deserializer<UserAddressV0> for AddressDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], UserAddressV0, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl Display for UserAddressV0

source§

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

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

impl Hash for UserAddressV0

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 +) -> IResult<&'a [u8], UserAddressV0, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl Display for UserAddressV0

source§

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

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

impl Hash for UserAddressV0

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 Ord for UserAddressV0

source§

fn cmp(&self, other: &UserAddressV0) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere @@ -16,11 +16,11 @@ 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 PartialOrd<UserAddressV0> for UserAddressV0

source§

fn partial_cmp(&self, other: &UserAddressV0) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for UserAddressV0

source§

fn serialize<S: Serializer>(&self, s: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<UserAddressV0> for AddressSerializer

source§

fn serialize( +operator. Read more

source§

impl Serialize for UserAddressV0

source§

fn serialize<S: Serializer>(&self, s: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<UserAddressV0> for AddressSerializer

source§

fn serialize( &self, value: &UserAddressV0, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Versioned for UserAddressV0

source§

const VERSION: u64 = 0u64

source§

const VERSION_VARINT_SIZE_BYTES: usize = 1usize

source§

impl Copy for UserAddressV0

source§

impl Eq for UserAddressV0

source§

impl StructuralEq for UserAddressV0

source§

impl StructuralPartialEq for UserAddressV0

Auto Trait Implementations§

§

impl RefUnwindSafe for UserAddressV0

§

impl Send for UserAddressV0

§

impl Sync for UserAddressV0

§

impl Unpin for UserAddressV0

§

impl UnwindSafe for UserAddressV0

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Versioned for UserAddressV0

source§

const VERSION: u64 = 0u64

source§

const VERSION_VARINT_SIZE_BYTES: usize = 1usize

source§

impl Copy for UserAddressV0

source§

impl Eq for UserAddressV0

source§

impl StructuralEq for UserAddressV0

source§

impl StructuralPartialEq for UserAddressV0

Auto Trait Implementations§

§

impl RefUnwindSafe for UserAddressV0

§

impl Send for UserAddressV0

§

impl Sync for UserAddressV0

§

impl Unpin for UserAddressV0

§

impl UnwindSafe for UserAddressV0

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> CallHasher for Twhere diff --git a/massa_models/amount/struct.Amount.html b/massa_models/amount/struct.Amount.html index 1736f3f8a75..6b5bbf67117 100644 --- a/massa_models/amount/struct.Amount.html +++ b/massa_models/amount/struct.Amount.html @@ -90,7 +90,7 @@ assert_eq!(res, Amount::from_str("2").unwrap());

Trait Implementations§

source§

impl Clone for Amount

source§

fn clone(&self) -> Amount

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 Amount

Use display implementation in debug to get the decimal representation

source§

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

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

impl Default for Amount

source§

fn default() -> Amount

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Amount

source§

fn deserialize<D>(deserializer: D) -> Result<Amount, D::Error>where - D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Deserializer<Amount> for AmountDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Deserializer<Amount> for AmountDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], Amount, E>

Example
@@ -128,11 +128,11 @@ sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<Amount> for Amount

source§

fn partial_cmp(&self, other: &Amount) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Serialize for Amount

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>where - S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<Amount> for AmountSerializer

source§

fn serialize( + S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<Amount> for AmountSerializer

source§

fn serialize( &self, value: &Amount, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>
Example
use massa_models::amount::{Amount, AmountSerializer};
 use massa_serialization::Serializer;
 use std::str::FromStr;
diff --git a/massa_models/amount/struct.AmountDeserializer.html b/massa_models/amount/struct.AmountDeserializer.html
index 6e2c5b349cd..33342643258 100644
--- a/massa_models/amount/struct.AmountDeserializer.html
+++ b/massa_models/amount/struct.AmountDeserializer.html
@@ -1,8 +1,8 @@
 AmountDeserializer in massa_models::amount - Rust
pub struct AmountDeserializer {
-    u64_deserializer: U64VarIntDeserializer,
+    u64_deserializer: U64VarIntDeserializer,
 }
Expand description

Deserializer for amount

-

Fields§

§u64_deserializer: U64VarIntDeserializer

Implementations§

source§

impl AmountDeserializer

source

pub fn new(min_amount: Bound<Amount>, max_amount: Bound<Amount>) -> Self

Create a new AmountDeserializer

-

Trait Implementations§

source§

impl Clone for AmountDeserializer

source§

fn clone(&self) -> AmountDeserializer

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 Deserializer<Amount> for AmountDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Fields§

§u64_deserializer: U64VarIntDeserializer

Implementations§

source§

impl AmountDeserializer

source

pub fn new(min_amount: Bound<Amount>, max_amount: Bound<Amount>) -> Self

Create a new AmountDeserializer

+

Trait Implementations§

source§

impl Clone for AmountDeserializer

source§

fn clone(&self) -> AmountDeserializer

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 Deserializer<Amount> for AmountDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], Amount, E>

Example
diff --git a/massa_models/amount/struct.AmountSerializer.html b/massa_models/amount/struct.AmountSerializer.html index 45aaa3a1c66..e6c530218ab 100644 --- a/massa_models/amount/struct.AmountSerializer.html +++ b/massa_models/amount/struct.AmountSerializer.html @@ -1,12 +1,12 @@ AmountSerializer in massa_models::amount - Rust
pub struct AmountSerializer {
-    u64_serializer: U64VarIntSerializer,
+    u64_serializer: U64VarIntSerializer,
 }
Expand description

Serializer for amount

-

Fields§

§u64_serializer: U64VarIntSerializer

Implementations§

source§

impl AmountSerializer

source

pub fn new() -> Self

Create a new AmountSerializer

-

Trait Implementations§

source§

impl Clone for AmountSerializer

source§

fn clone(&self) -> AmountSerializer

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 Default for AmountSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<Amount> for AmountSerializer

Fields§

§u64_serializer: U64VarIntSerializer

Implementations§

source§

impl AmountSerializer

source

pub fn new() -> Self

Create a new AmountSerializer

+

Trait Implementations§

source§

impl Clone for AmountSerializer

source§

fn clone(&self) -> AmountSerializer

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 Default for AmountSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<Amount> for AmountSerializer

source§

fn serialize( &self, value: &Amount, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>
Example
use massa_models::amount::{Amount, AmountSerializer};
 use massa_serialization::Serializer;
 use std::str::FromStr;
diff --git a/massa_models/block/struct.Block.html b/massa_models/block/struct.Block.html
index 7d1e883aac8..c17bedd1109 100644
--- a/massa_models/block/struct.Block.html
+++ b/massa_models/block/struct.Block.html
@@ -5,7 +5,7 @@
 

Fields§

§header: SecuredHeader

signed header

§operations: Vec<OperationId>

operations ids

Trait Implementations§

source§

impl Clone for Block

source§

fn clone(&self) -> Block

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 Block

source§

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

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

impl<'de> Deserialize<'de> for Block

source§

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 Deserializer<Block> for BlockDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Deserializer<Block> for BlockDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], Block, E>

Example:
@@ -94,7 +94,7 @@ orig_block.header.signature, res_block.header.signature );
-
source§

impl Display for Block

source§

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

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

impl From<Block> for Block

source§

fn from(value: Block) -> Self

Converts to this type from the input type.
source§

impl SecureShareContent for Block

source§

fn new_verifiable<SC: Serializer<Self>, U: Id>( +

source§

impl Display for Block

source§

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

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

impl From<Block> for Block

source§

fn from(value: Block) -> Self

Converts to this type from the input type.
source§

impl SecureShareContent for Block

source§

fn new_verifiable<SC: Serializer<Self>, U: Id>( self, content_serializer: SC, _keypair: &KeyPair, @@ -105,8 +105,8 @@ _creator_public_key: &PublicKey, serialized_content: &[u8], buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize the secured structure
source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>, DC: Deserializer<Self>, U: Id>( - _content_serializer: Option<&dyn Serializer<Self>>, +) -> Result<(), SerializeError>

Serialize the secured structure
source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>, DC: Deserializer<Self>, U: Id>( + _content_serializer: Option<&dyn Serializer<Self>>, _signature_deserializer: &SignatureDeserializer, _creator_public_key_deserializer: &PublicKeyDeserializer, content_deserializer: &DC, @@ -131,11 +131,11 @@ _public_key: &PublicKey, content_hash: &Hash ) -> Hash

Compute hash used for signature
source§

impl Serialize for Block

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<Block> for BlockSerializer

source§

fn serialize( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<Block> for BlockSerializer

source§

fn serialize( &self, value: &Block, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example:
+) -> Result<(), SerializeError>
Example:
use massa_models::{block::{Block, BlockSerializer}, config::THREAD_COUNT, slot::Slot, endorsement::{Endorsement, EndorsementSerializer}, secure_share::SecureShareContent, prehash::PreHashSet};
 use massa_models::block_header::{BlockHeader, BlockHeaderSerializer};
 use massa_models::block_id::{BlockId};
diff --git a/massa_models/block/struct.BlockDeserializer.html b/massa_models/block/struct.BlockDeserializer.html
index f1889fe1a03..3a728b50444 100644
--- a/massa_models/block/struct.BlockDeserializer.html
+++ b/massa_models/block/struct.BlockDeserializer.html
@@ -3,7 +3,7 @@
     op_ids_deserializer: OperationIdsDeserializer,
 }
Expand description

Deserializer for Block

Fields§

§header_deserializer: SecureShareDeserializer<BlockHeader, BlockHeaderDeserializer>§op_ids_deserializer: OperationIdsDeserializer

Implementations§

source§

impl BlockDeserializer

source

pub fn new(args: BlockDeserializerArgs) -> Self

Creates a new BlockDeserializer

-

Trait Implementations§

source§

impl Deserializer<Block> for BlockDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Trait Implementations§

source§

impl Deserializer<Block> for BlockDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], Block, E>

Example:
diff --git a/massa_models/block/struct.BlockSerializer.html b/massa_models/block/struct.BlockSerializer.html index fd917a1f9c2..76ffba007d1 100644 --- a/massa_models/block/struct.BlockSerializer.html +++ b/massa_models/block/struct.BlockSerializer.html @@ -3,11 +3,11 @@ op_ids_serializer: OperationIdsSerializer, }
Expand description

Serializer for Block

Fields§

§header_serializer: SecureShareSerializer§op_ids_serializer: OperationIdsSerializer

Implementations§

source§

impl BlockSerializer

source

pub fn new() -> Self

Creates a new BlockSerializer

-

Trait Implementations§

source§

impl Default for BlockSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<Block> for BlockSerializer

Trait Implementations§

source§

impl Default for BlockSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<Block> for BlockSerializer

source§

fn serialize( &self, value: &Block, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example:
+) -> Result<(), SerializeError>
Example:
use massa_models::{block::{Block, BlockSerializer}, config::THREAD_COUNT, slot::Slot, endorsement::{Endorsement, EndorsementSerializer}, secure_share::SecureShareContent, prehash::PreHashSet};
 use massa_models::block_header::{BlockHeader, BlockHeaderSerializer};
 use massa_models::block_id::{BlockId};
diff --git a/massa_models/block_header/struct.BlockHeader.html b/massa_models/block_header/struct.BlockHeader.html
index ce49af8c379..65a0d008a7e 100644
--- a/massa_models/block_header/struct.BlockHeader.html
+++ b/massa_models/block_header/struct.BlockHeader.html
@@ -15,7 +15,7 @@
 
§endorsements: Vec<SecureShareEndorsement>

endorsements

§denunciations: Vec<Denunciation>

denunciations

Trait Implementations§

source§

impl Clone for BlockHeader

source§

fn clone(&self) -> BlockHeader

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 BlockHeader

source§

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

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

impl<'de> Deserialize<'de> for BlockHeader

source§

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 Deserializer<BlockHeader> for BlockHeaderDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Deserializer<BlockHeader> for BlockHeaderDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], BlockHeader, E>

Example:
@@ -85,7 +85,7 @@ public_key: &PublicKey, content_hash: &Hash, signature: &Signature -) -> Result<(), ModelsError>
verify signature
source§

fn new_verifiable<Ser: Serializer<Self>, ID: Id>( +) -> Result<(), ModelsError>

verify signature
source§

fn new_verifiable<Ser: Serializer<Self>, ID: Id>( self, content_serializer: Ser, keypair: &KeyPair, @@ -101,19 +101,19 @@ creator_public_key: &PublicKey, serialized_content: &[u8], buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize the secured structure
source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>, Deser: Deserializer<Self>, ID: Id>( - content_serializer: Option<&dyn Serializer<Self>>, +) -> Result<(), SerializeError>

Serialize the secured structure
source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>, Deser: Deserializer<Self>, ID: Id>( + content_serializer: Option<&dyn Serializer<Self>>, signature_deserializer: &SignatureDeserializer, creator_public_key_deserializer: &PublicKeyDeserializer, content_deserializer: &Deser, buffer: &'a [u8], chain_id: u64 ) -> IResult<&'a [u8], SecureShare<Self, ID>, E>

Deserialize the secured structure
source§

impl Serialize for BlockHeader

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<BlockHeader> for BlockHeaderSerializer

source§

fn serialize( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<BlockHeader> for BlockHeaderSerializer

source§

fn serialize( &self, value: &BlockHeader, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example:
+) -> Result<(), SerializeError>
Example:
use massa_models::{block_id::BlockId, block_header::BlockHeader, block_header::BlockHeaderSerializer};
 use massa_models::endorsement::{Endorsement, EndorsementSerializer};
 use massa_models::secure_share::SecureShareContent;
diff --git a/massa_models/block_header/struct.BlockHeaderDeserializer.html b/massa_models/block_header/struct.BlockHeaderDeserializer.html
index 0dbc5fc2a58..5e0c7eb0ba6 100644
--- a/massa_models/block_header/struct.BlockHeaderDeserializer.html
+++ b/massa_models/block_header/struct.BlockHeaderDeserializer.html
@@ -1,19 +1,19 @@
 BlockHeaderDeserializer in massa_models::block_header - Rust
pub struct BlockHeaderDeserializer {
Show 13 fields slot_deserializer: SlotDeserializer, endorsement_serializer: EndorsementSerializer, - endorsement_len_deserializer: U32VarIntDeserializer, + endorsement_len_deserializer: U32VarIntDeserializer, hash_deserializer: HashDeserializer, thread_count: u8, endorsement_count: u32, last_start_period: Option<u64>, - denunciation_len_deserializer: U32VarIntDeserializer, + denunciation_len_deserializer: U32VarIntDeserializer, denunciation_deserializer: DenunciationDeserializer, - network_versions_deserializer: U32VarIntDeserializer, - opt_deserializer: OptionDeserializer<u32, U32VarIntDeserializer>, + network_versions_deserializer: U32VarIntDeserializer, + opt_deserializer: OptionDeserializer<u32, U32VarIntDeserializer>, block_id_deserializer: BlockIdDeserializer, chain_id: u64,
}
Expand description

Deserializer for BlockHeader

-

Fields§

§slot_deserializer: SlotDeserializer§endorsement_serializer: EndorsementSerializer§endorsement_len_deserializer: U32VarIntDeserializer§hash_deserializer: HashDeserializer§thread_count: u8§endorsement_count: u32§last_start_period: Option<u64>§denunciation_len_deserializer: U32VarIntDeserializer§denunciation_deserializer: DenunciationDeserializer§network_versions_deserializer: U32VarIntDeserializer§opt_deserializer: OptionDeserializer<u32, U32VarIntDeserializer>§block_id_deserializer: BlockIdDeserializer§chain_id: u64

Implementations§

source§

impl BlockHeaderDeserializer

source

pub fn new( +

Fields§

§slot_deserializer: SlotDeserializer§endorsement_serializer: EndorsementSerializer§endorsement_len_deserializer: U32VarIntDeserializer§hash_deserializer: HashDeserializer§thread_count: u8§endorsement_count: u32§last_start_period: Option<u64>§denunciation_len_deserializer: U32VarIntDeserializer§denunciation_deserializer: DenunciationDeserializer§network_versions_deserializer: U32VarIntDeserializer§opt_deserializer: OptionDeserializer<u32, U32VarIntDeserializer>§block_id_deserializer: BlockIdDeserializer§chain_id: u64

Implementations§

source§

impl BlockHeaderDeserializer

source

pub fn new( thread_count: u8, endorsement_count: u32, max_denunciations_in_block_header: u32, @@ -21,7 +21,7 @@ chain_id: u64 ) -> Self

Creates a new BlockHeaderDeserializer If last_start_period is Some(lsp), then the deserializer will check for valid (non)-genesis blocks

-

Trait Implementations§

source§

impl Deserializer<BlockHeader> for BlockHeaderDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Trait Implementations§

source§

impl Deserializer<BlockHeader> for BlockHeaderDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], BlockHeader, E>

Example:
diff --git a/massa_models/block_header/struct.BlockHeaderSerializer.html b/massa_models/block_header/struct.BlockHeaderSerializer.html index e7b2ca36bf2..f1cdb936ae6 100644 --- a/massa_models/block_header/struct.BlockHeaderSerializer.html +++ b/massa_models/block_header/struct.BlockHeaderSerializer.html @@ -3,16 +3,16 @@ endorsement_serializer: SecureShareSerializer, endorsement_content_serializer: EndorsementSerializerLW, denunciation_serializer: DenunciationSerializer, - u32_serializer: U32VarIntSerializer, - opt_serializer: OptionSerializer<u32, U32VarIntSerializer>, + u32_serializer: U32VarIntSerializer, + opt_serializer: OptionSerializer<u32, U32VarIntSerializer>, block_id_serializer: BlockIdSerializer, }
Expand description

Serializer for BlockHeader

-

Fields§

§slot_serializer: SlotSerializer§endorsement_serializer: SecureShareSerializer§endorsement_content_serializer: EndorsementSerializerLW§denunciation_serializer: DenunciationSerializer§u32_serializer: U32VarIntSerializer§opt_serializer: OptionSerializer<u32, U32VarIntSerializer>§block_id_serializer: BlockIdSerializer

Implementations§

source§

impl BlockHeaderSerializer

source

pub fn new() -> Self

Creates a new BlockHeaderSerializer

-

Trait Implementations§

source§

impl Default for BlockHeaderSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<BlockHeader> for BlockHeaderSerializer

Fields§

§slot_serializer: SlotSerializer§endorsement_serializer: SecureShareSerializer§endorsement_content_serializer: EndorsementSerializerLW§denunciation_serializer: DenunciationSerializer§u32_serializer: U32VarIntSerializer§opt_serializer: OptionSerializer<u32, U32VarIntSerializer>§block_id_serializer: BlockIdSerializer

Implementations§

source§

impl BlockHeaderSerializer

source

pub fn new() -> Self

Creates a new BlockHeaderSerializer

+

Trait Implementations§

source§

impl Default for BlockHeaderSerializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Serializer<BlockHeader> for BlockHeaderSerializer

source§

fn serialize( &self, value: &BlockHeader, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example:
+) -> Result<(), SerializeError>
Example:
use massa_models::{block_id::BlockId, block_header::BlockHeader, block_header::BlockHeaderSerializer};
 use massa_models::endorsement::{Endorsement, EndorsementSerializer};
 use massa_models::secure_share::SecureShareContent;
diff --git a/massa_models/block_id/enum.BlockId.html b/massa_models/block_id/enum.BlockId.html
index 02a885740ba..a2a3c62f59d 100644
--- a/massa_models/block_id/enum.BlockId.html
+++ b/massa_models/block_id/enum.BlockId.html
@@ -6,10 +6,10 @@
 

Trait Implementations§

source§

impl Clone for BlockId

source§

fn clone(&self) -> BlockId

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 BlockId

source§

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

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

impl<'de> Deserialize<'de> for BlockIdwhere Self: FromStr, <Self as FromStr>::Err: Display,

source§

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 Deserializer<BlockId> for BlockIdDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Deserializer<BlockId> for BlockIdDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], BlockId, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl Display for BlockId

source§

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

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

impl FromStr for BlockId

source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Example
+) -> IResult<&'a [u8], BlockId, E>
Deserialize a value T from a buffer of u8. Read more
source§

impl Display for BlockId

source§

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

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

impl FromStr for BlockId

source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Example
let ser = block_id.to_string();
 let res_block_id = BlockId::from_str(&ser).unwrap();
 assert_eq!(block_id, res_block_id);
@@ -24,11 +24,11 @@ operator. Read more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Serialize for BlockIdwhere Self: Display,

source§

fn serialize<__S>(&self, serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<BlockId> for BlockIdSerializer

source§

fn serialize( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<BlockId> for BlockIdSerializer

source§

fn serialize( &self, value: &BlockId, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Copy for BlockId

source§

impl Eq for BlockId

source§

impl PreHashed for BlockId

source§

impl StructuralEq for BlockId

source§

impl StructuralPartialEq for BlockId

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Copy for BlockId

source§

impl Eq for BlockId

source§

impl PreHashed for BlockId

source§

impl StructuralEq for BlockId

source§

impl StructuralPartialEq for BlockId

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> CallHasher for Twhere diff --git a/massa_models/block_id/struct.BlockIdDeserializer.html b/massa_models/block_id/struct.BlockIdDeserializer.html index 49dae3146da..5ad0a52b3e7 100644 --- a/massa_models/block_id/struct.BlockIdDeserializer.html +++ b/massa_models/block_id/struct.BlockIdDeserializer.html @@ -1,15 +1,15 @@ BlockIdDeserializer in massa_models::block_id - Rust
pub struct BlockIdDeserializer {
     hash_deserializer: HashDeserializer,
-    version_deserializer: U64VarIntDeserializer,
+    version_deserializer: U64VarIntDeserializer,
 }
Expand description

Deserializer for BlockId

-

Fields§

§hash_deserializer: HashDeserializer§version_deserializer: U64VarIntDeserializer

Implementations§

source§

impl BlockIdDeserializer

source

pub fn new() -> Self

Creates a new deserializer for BlockId

-

Trait Implementations§

source§

impl Clone for BlockIdDeserializer

source§

fn clone(&self) -> BlockIdDeserializer

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 Default for BlockIdDeserializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Deserializer<BlockId> for BlockIdDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Fields§

§hash_deserializer: HashDeserializer§version_deserializer: U64VarIntDeserializer

Implementations§

source§

impl BlockIdDeserializer

source

pub fn new() -> Self

Creates a new deserializer for BlockId

+

Trait Implementations§

source§

impl Clone for BlockIdDeserializer

source§

fn clone(&self) -> BlockIdDeserializer

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 Default for BlockIdDeserializer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Deserializer<BlockId> for BlockIdDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], BlockId, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl Deserializer<BlockIdV0> for BlockIdDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +) -> IResult<&'a [u8], BlockId, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl Deserializer<BlockIdV0> for BlockIdDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], BlockIdV0, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> IResult<&'a [u8], BlockIdV0, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_models/block_id/struct.BlockIdSerializer.html b/massa_models/block_id/struct.BlockIdSerializer.html index 98105552f53..2d7c5963272 100644 --- a/massa_models/block_id/struct.BlockIdSerializer.html +++ b/massa_models/block_id/struct.BlockIdSerializer.html @@ -1,16 +1,16 @@ BlockIdSerializer in massa_models::block_id - Rust
pub struct BlockIdSerializer {
-    version_serializer: U64VarIntSerializer,
+    version_serializer: U64VarIntSerializer,
 }
Expand description

Serializer for BlockId

-

Fields§

§version_serializer: U64VarIntSerializer

Implementations§

source§

impl BlockIdSerializer

source

pub fn new() -> Self

Creates a new serializer for BlockId

-

Trait Implementations§

source§

impl Clone for BlockIdSerializer

source§

fn clone(&self) -> BlockIdSerializer

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 Default for BlockIdSerializer

source§

fn default() -> BlockIdSerializer

Returns the “default value” for a type. Read more
source§

impl Serializer<BlockId> for BlockIdSerializer

Fields§

§version_serializer: U64VarIntSerializer

Implementations§

source§

impl BlockIdSerializer

source

pub fn new() -> Self

Creates a new serializer for BlockId

+

Trait Implementations§

source§

impl Clone for BlockIdSerializer

source§

fn clone(&self) -> BlockIdSerializer

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 Default for BlockIdSerializer

source§

fn default() -> BlockIdSerializer

Returns the “default value” for a type. Read more
source§

impl Serializer<BlockId> for BlockIdSerializer

source§

fn serialize( &self, value: &BlockId, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Serializer<BlockIdV0> for BlockIdSerializer

source§

fn serialize( +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Serializer<BlockIdV0> for BlockIdSerializer

source§

fn serialize( &self, value: &BlockIdV0, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_models/block_id/struct.BlockIdV0.html b/massa_models/block_id/struct.BlockIdV0.html index 1ce2a7f776e..6f5b55aa23a 100644 --- a/massa_models/block_id/struct.BlockIdV0.html +++ b/massa_models/block_id/struct.BlockIdV0.html @@ -4,10 +4,10 @@

Trait Implementations§

source§

impl Clone for BlockIdV0

source§

fn clone(&self) -> BlockIdV0

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<'de> Deserialize<'de> for BlockIdV0where Self: FromStr, <Self as FromStr>::Err: Display,

source§

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 Deserializer<BlockIdV0> for BlockIdDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Deserializer<BlockIdV0> for BlockIdDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], BlockIdV0, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl Display for BlockIdV0

source§

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

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

impl FromStr for BlockIdV0

§

type Err = ModelsError

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for BlockIdV0

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 +) -> IResult<&'a [u8], BlockIdV0, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl Display for BlockIdV0

source§

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

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

impl FromStr for BlockIdV0

§

type Err = ModelsError

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for BlockIdV0

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 Ord for BlockIdV0

source§

fn cmp(&self, other: &BlockIdV0) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere @@ -18,11 +18,11 @@ operator. Read more

1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Serialize for BlockIdV0where Self: Display,

source§

fn serialize<__S>(&self, serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<BlockIdV0> for BlockIdSerializer

source§

fn serialize( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<BlockIdV0> for BlockIdSerializer

source§

fn serialize( &self, value: &BlockIdV0, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Versioned for BlockIdV0

source§

impl Copy for BlockIdV0

source§

impl Eq for BlockIdV0

source§

impl StructuralEq for BlockIdV0

source§

impl StructuralPartialEq for BlockIdV0

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Versioned for BlockIdV0

source§

impl Copy for BlockIdV0

source§

impl Eq for BlockIdV0

source§

impl StructuralEq for BlockIdV0

source§

impl StructuralPartialEq for BlockIdV0

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> CallHasher for Twhere diff --git a/massa_models/bytecode/struct.Bytecode.html b/massa_models/bytecode/struct.Bytecode.html index 4e60bbc4c45..e6b6aa23918 100644 --- a/massa_models/bytecode/struct.Bytecode.html +++ b/massa_models/bytecode/struct.Bytecode.html @@ -1,16 +1,16 @@ Bytecode in massa_models::bytecode - Rust
pub struct Bytecode(pub Vec<u8>);
Expand description

Structure representing executable bytecode

Tuple Fields§

§0: Vec<u8>

Trait Implementations§

source§

impl Clone for Bytecode

source§

fn clone(&self) -> Bytecode

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 Bytecode

source§

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

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

impl Default for Bytecode

source§

fn default() -> Bytecode

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Bytecode

source§

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 Deserializer<Bytecode> for BytecodeDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Deserializer<Bytecode> for BytecodeDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], Bytecode, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl PartialEq<Bytecode> for Bytecode

source§

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

This method tests for self and other values to be equal, and is used +) -> IResult<&'a [u8], Bytecode, E>

Deserialize a value T from a buffer of u8. Read more
source§

impl PartialEq<Bytecode> for Bytecode

source§

fn eq(&self, other: &Bytecode) -> 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 Serialize for Bytecode

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<Bytecode> for BytecodeSerializer

source§

fn serialize( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<Bytecode> for BytecodeSerializer

source§

fn serialize( &self, value: &Bytecode, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Eq for Bytecode

source§

impl StructuralEq for Bytecode

source§

impl StructuralPartialEq for Bytecode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more
source§

impl Eq for Bytecode

source§

impl StructuralEq for Bytecode

source§

impl StructuralPartialEq for Bytecode

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_models/bytecode/struct.BytecodeDeserializer.html b/massa_models/bytecode/struct.BytecodeDeserializer.html index f0a546ab489..bbd5861394f 100644 --- a/massa_models/bytecode/struct.BytecodeDeserializer.html +++ b/massa_models/bytecode/struct.BytecodeDeserializer.html @@ -1,12 +1,12 @@ BytecodeDeserializer in massa_models::bytecode - Rust
pub struct BytecodeDeserializer {
-    version_byte_deserializer: U64VarIntDeserializer,
+    version_byte_deserializer: U64VarIntDeserializer,
     vec_u8_deserializer: VecU8Deserializer,
 }
Expand description

Deserializer for Bytecode

-

Fields§

§version_byte_deserializer: U64VarIntDeserializer§vec_u8_deserializer: VecU8Deserializer

Implementations§

source§

impl BytecodeDeserializer

source

pub fn new(max_datastore_value_length: u64) -> Self

Creates a new LedgerEntryDeserializer

-

Trait Implementations§

source§

impl Deserializer<Bytecode> for BytecodeDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Fields§

§version_byte_deserializer: U64VarIntDeserializer§vec_u8_deserializer: VecU8Deserializer

Implementations§

source§

impl BytecodeDeserializer

source

pub fn new(max_datastore_value_length: u64) -> Self

Creates a new LedgerEntryDeserializer

+

Trait Implementations§

source§

impl Deserializer<Bytecode> for BytecodeDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], Bytecode, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> IResult<&'a [u8], Bytecode, E>

Deserialize a value T from a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_models/bytecode/struct.BytecodeSerializer.html b/massa_models/bytecode/struct.BytecodeSerializer.html index 1756231a0ce..d959d23e89a 100644 --- a/massa_models/bytecode/struct.BytecodeSerializer.html +++ b/massa_models/bytecode/struct.BytecodeSerializer.html @@ -1,13 +1,13 @@ BytecodeSerializer in massa_models::bytecode - Rust
pub struct BytecodeSerializer {
-    version_byte_serializer: U64VarIntSerializer,
+    version_byte_serializer: U64VarIntSerializer,
     vec_u8_serializer: VecU8Serializer,
 }
Expand description

Serializer for Bytecode

-

Fields§

§version_byte_serializer: U64VarIntSerializer§vec_u8_serializer: VecU8Serializer

Implementations§

source§

impl BytecodeSerializer

source

pub fn new() -> Self

Creates a new BytecodeSerializer

-

Trait Implementations§

source§

impl Default for BytecodeSerializer

source§

fn default() -> BytecodeSerializer

Returns the “default value” for a type. Read more
source§

impl Serializer<Bytecode> for BytecodeSerializer

Fields§

§version_byte_serializer: U64VarIntSerializer§vec_u8_serializer: VecU8Serializer

Implementations§

source§

impl BytecodeSerializer

source

pub fn new() -> Self

Creates a new BytecodeSerializer

+

Trait Implementations§

source§

impl Default for BytecodeSerializer

source§

fn default() -> BytecodeSerializer

Returns the “default value” for a type. Read more
source§

impl Serializer<Bytecode> for BytecodeSerializer

source§

fn serialize( &self, value: &Bytecode, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> Result<(), SerializeError>

Serialize a value T into a buffer of u8. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/massa_models/clique/struct.Clique.html b/massa_models/clique/struct.Clique.html index 046b32aa646..c45e3138248 100644 --- a/massa_models/clique/struct.Clique.html +++ b/massa_models/clique/struct.Clique.html @@ -8,7 +8,7 @@ Depends on descendants and endorsement count

§is_blockclique: bool

True if it is the clique of higher fitness

Trait Implementations§

source§

impl Clone for Clique

source§

fn clone(&self) -> Clique

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 Clique

source§

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

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

impl Default for Clique

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Clique

source§

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 Deserializer<Clique> for CliqueDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Deserializer<Clique> for CliqueDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], Clique, E>

Example
@@ -26,11 +26,11 @@ assert_eq!(clique.is_blockclique, clique_deserialized.is_blockclique); assert_eq!(clique.fitness, clique_deserialized.fitness);
source§

impl Serialize for Clique

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<Clique> for CliqueSerializer

source§

fn serialize( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Serializer<Clique> for CliqueSerializer

source§

fn serialize( &self, value: &Clique, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>
Example
let clique = Clique {
         block_ids: vec![get_dummy_block_id("parent1"), get_dummy_block_id("parent2")].into_iter().collect(),
         fitness: 123,
diff --git a/massa_models/clique/struct.CliqueDeserializer.html b/massa_models/clique/struct.CliqueDeserializer.html
index ef20a605471..bb6b40ee112 100644
--- a/massa_models/clique/struct.CliqueDeserializer.html
+++ b/massa_models/clique/struct.CliqueDeserializer.html
@@ -1,10 +1,10 @@
 CliqueDeserializer in massa_models::clique - Rust
pub struct CliqueDeserializer {
-    block_ids_length_deserializer: U32VarIntDeserializer,
+    block_ids_length_deserializer: U32VarIntDeserializer,
     block_id_deserializer: BlockIdDeserializer,
-    fitness_deserializer: U64VarIntDeserializer,
+    fitness_deserializer: U64VarIntDeserializer,
 }
Expand description

Basic deserializer for Clique

-

Fields§

§block_ids_length_deserializer: U32VarIntDeserializer§block_id_deserializer: BlockIdDeserializer§fitness_deserializer: U64VarIntDeserializer

Implementations§

source§

impl CliqueDeserializer

source

pub fn new(max_bootstrap_blocks: u32) -> Self

Creates a CliqueDeserializer

-

Trait Implementations§

source§

impl Deserializer<Clique> for CliqueDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Fields§

§block_ids_length_deserializer: U32VarIntDeserializer§block_id_deserializer: BlockIdDeserializer§fitness_deserializer: U64VarIntDeserializer

Implementations§

source§

impl CliqueDeserializer

source

pub fn new(max_bootstrap_blocks: u32) -> Self

Creates a CliqueDeserializer

+

Trait Implementations§

source§

impl Deserializer<Clique> for CliqueDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], Clique, E>

Example
diff --git a/massa_models/clique/struct.CliqueSerializer.html b/massa_models/clique/struct.CliqueSerializer.html index 2804ddae65a..ddd1d209194 100644 --- a/massa_models/clique/struct.CliqueSerializer.html +++ b/massa_models/clique/struct.CliqueSerializer.html @@ -1,14 +1,14 @@ CliqueSerializer in massa_models::clique - Rust
pub struct CliqueSerializer {
-    block_ids_length_serializer: U32VarIntSerializer,
-    fitness_serializer: U64VarIntSerializer,
+    block_ids_length_serializer: U32VarIntSerializer,
+    fitness_serializer: U64VarIntSerializer,
     block_id_serializer: BlockIdSerializer,
 }
Expand description

Basic serializer for Clique

-

Fields§

§block_ids_length_serializer: U32VarIntSerializer§fitness_serializer: U64VarIntSerializer§block_id_serializer: BlockIdSerializer

Implementations§

source§

impl CliqueSerializer

source

pub fn new() -> Self

Creates a CliqueSerializer

-

Trait Implementations§

source§

impl Default for CliqueSerializer

source§

fn default() -> CliqueSerializer

Returns the “default value” for a type. Read more
source§

impl Serializer<Clique> for CliqueSerializer

Fields§

§block_ids_length_serializer: U32VarIntSerializer§fitness_serializer: U64VarIntSerializer§block_id_serializer: BlockIdSerializer

Implementations§

source§

impl CliqueSerializer

source

pub fn new() -> Self

Creates a CliqueSerializer

+

Trait Implementations§

source§

impl Default for CliqueSerializer

source§

fn default() -> CliqueSerializer

Returns the “default value” for a type. Read more
source§

impl Serializer<Clique> for CliqueSerializer

source§

fn serialize( &self, value: &Clique, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>
Example
let clique = Clique {
         block_ids: vec![get_dummy_block_id("parent1"), get_dummy_block_id("parent2")].into_iter().collect(),
         fitness: 123,
diff --git a/massa_models/datastore/struct.DatastoreDeserializer.html b/massa_models/datastore/struct.DatastoreDeserializer.html
index 6c7c1e9f102..08c45def21d 100644
--- a/massa_models/datastore/struct.DatastoreDeserializer.html
+++ b/massa_models/datastore/struct.DatastoreDeserializer.html
@@ -1,14 +1,14 @@
 DatastoreDeserializer in massa_models::datastore - Rust
pub struct DatastoreDeserializer {
-    length_deserializer: U64VarIntDeserializer,
+    length_deserializer: U64VarIntDeserializer,
     key_deserializer: VecU8Deserializer,
     value_deserializer: VecU8Deserializer,
 }
Expand description

Deserializer for Datastore field in LedgerEntry

-

Fields§

§length_deserializer: U64VarIntDeserializer§key_deserializer: VecU8Deserializer§value_deserializer: VecU8Deserializer

Implementations§

source§

impl DatastoreDeserializer

source

pub fn new( +

Fields§

§length_deserializer: U64VarIntDeserializer§key_deserializer: VecU8Deserializer§value_deserializer: VecU8Deserializer

Implementations§

source§

impl DatastoreDeserializer

source

pub fn new( max_datastore_entry_count: u64, max_datastore_key_length: u8, max_datastore_value_length: u64 ) -> Self

Creates a new DatastoreDeserializer

-

Trait Implementations§

source§

impl Deserializer<BTreeMap<Vec<u8, Global>, Vec<u8, Global>, Global>> for DatastoreDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

Trait Implementations§

source§

impl Deserializer<BTreeMap<Vec<u8, Global>, Vec<u8, Global>, Global>> for DatastoreDeserializer

source§

fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], BTreeMap<Vec<u8>, Vec<u8>>, E>

Example
diff --git a/massa_models/datastore/struct.DatastoreSerializer.html b/massa_models/datastore/struct.DatastoreSerializer.html index 63f0db08659..35ebc762268 100644 --- a/massa_models/datastore/struct.DatastoreSerializer.html +++ b/massa_models/datastore/struct.DatastoreSerializer.html @@ -1,13 +1,13 @@ DatastoreSerializer in massa_models::datastore - Rust
pub struct DatastoreSerializer {
-    u64_serializer: U64VarIntSerializer,
+    u64_serializer: U64VarIntSerializer,
     vec_u8_serializer: VecU8Serializer,
 }
Expand description

Serializer for Datastore

-

Fields§

§u64_serializer: U64VarIntSerializer§vec_u8_serializer: VecU8Serializer

Implementations§

source§

impl DatastoreSerializer

source

pub fn new() -> Self

Creates a new DatastoreSerializer

-

Trait Implementations§

source§

impl Default for DatastoreSerializer

source§

fn default() -> DatastoreSerializer

Returns the “default value” for a type. Read more
source§

impl Serializer<BTreeMap<Vec<u8, Global>, Vec<u8, Global>, Global>> for DatastoreSerializer

Fields§

§u64_serializer: U64VarIntSerializer§vec_u8_serializer: VecU8Serializer

Implementations§

source§

impl DatastoreSerializer

source

pub fn new() -> Self

Creates a new DatastoreSerializer

+

Trait Implementations§

source§

impl Default for DatastoreSerializer

source§

fn default() -> DatastoreSerializer

Returns the “default value” for a type. Read more
source§

impl Serializer<BTreeMap<Vec<u8, Global>, Vec<u8, Global>, Global>> for DatastoreSerializer

source§

fn serialize( &self, value: &BTreeMap<Vec<u8>, Vec<u8>>, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

Example
+) -> Result<(), SerializeError>
Example
use std::collections::BTreeMap;
 use massa_models::datastore::DatastoreSerializer;
 use massa_serialization::Serializer;
diff --git a/massa_models/denunciation/enum.Denunciation.html b/massa_models/denunciation/enum.Denunciation.html
index be88b58fed5..32de3db4d70 100644
--- a/massa_models/denunciation/enum.Denunciation.html
+++ b/massa_models/denunciation/enum.Denunciation.html
@@ -28,18 +28,18 @@
 
  • A block slot period (in execution (execute_denunciation(…)))
  • Trait Implementations§

    source§

    impl Clone for Denunciation

    source§

    fn clone(&self) -> Denunciation

    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 Denunciation

    source§

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

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

    impl<'de> Deserialize<'de> for Denunciation

    source§

    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 Deserializer<Denunciation> for DenunciationDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Deserializer<Denunciation> for DenunciationDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], Denunciation, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl From<&Denunciation> for DenunciationIndex

    Create a DenunciationIndex from a Denunciation

    +) -> IResult<&'a [u8], Denunciation, E>
    Deserialize a value T from a buffer of u8. Read more
    source§

    impl From<&Denunciation> for DenunciationIndex

    Create a DenunciationIndex from a Denunciation

    source§

    fn from(value: &Denunciation) -> Self

    Converts to this type from the input type.
    source§

    impl From<&Denunciation> for DenunciationTypeId

    source§

    fn from(value: &Denunciation) -> Self

    Converts to this type from the input type.
    source§

    impl From<Denunciation> for Denunciation

    source§

    fn from(value: Denunciation) -> Self

    Converts to this type from the input type.
    source§

    impl PartialEq<Denunciation> for Denunciation

    source§

    fn eq(&self, other: &Denunciation) -> 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 Serialize for Denunciation

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<Denunciation> for DenunciationSerializer

    source§

    fn serialize( + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<Denunciation> for DenunciationSerializer

    source§

    fn serialize( &self, value: &Denunciation, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl TryFrom<(&DenunciationPrecursor, &DenunciationPrecursor)> for Denunciation

    Create a new Denunciation from 2 SecureHeader

    +) -> Result<(), SerializeError>
    Serialize a value T into a buffer of u8. Read more
    source§

    impl TryFrom<(&DenunciationPrecursor, &DenunciationPrecursor)> for Denunciation

    Create a new Denunciation from 2 SecureHeader

    §

    type Error = DenunciationError

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

    fn try_from( (de_p_1, de_p_2): (&DenunciationPrecursor, &DenunciationPrecursor) ) -> Result<Self, Self::Error>

    Performs the conversion.
    source§

    impl TryFrom<(&SecureShare<BlockHeader, BlockId>, &SecureShare<BlockHeader, BlockId>)> for Denunciation

    Create a new Denunciation from 2 SecureHeader

    diff --git a/massa_models/denunciation/enum.DenunciationError.html b/massa_models/denunciation/enum.DenunciationError.html index 12a9c612302..4be06226101 100644 --- a/massa_models/denunciation/enum.DenunciationError.html +++ b/massa_models/denunciation/enum.DenunciationError.html @@ -1,9 +1,9 @@ DenunciationError in massa_models::denunciation - Rust
    pub enum DenunciationError {
         InvalidInput(String),
         Signature(MassaSignatureError),
    -    Serialization(SerializeError),
    +    Serialization(SerializeError),
     }
    Expand description

    Denunciation error

    -

    Variants§

    §

    InvalidInput(String)

    §

    Signature(MassaSignatureError)

    §

    Serialization(SerializeError)

    Trait Implementations§

    source§

    impl Debug for DenunciationError

    source§

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

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

    impl Display for DenunciationError

    source§

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

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

    impl Error for DenunciationError

    source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    The lower-level source of this error, if any. Read more
    1.0.0 · source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type based access to context intended for error reports. Read more
    source§

    impl From<MassaSignatureError> for DenunciationError

    source§

    fn from(source: MassaSignatureError) -> Self

    Converts to this type from the input type.
    source§

    impl From<SerializeError> for DenunciationError

    source§

    fn from(source: SerializeError) -> Self

    Converts to this type from the input type.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +

    Variants§

    §

    InvalidInput(String)

    §

    Signature(MassaSignatureError)

    §

    Serialization(SerializeError)

    Trait Implementations§

    source§

    impl Debug for DenunciationError

    source§

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

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

    impl Display for DenunciationError

    source§

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

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

    impl Error for DenunciationError

    source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    The lower-level source of this error, if any. Read more
    1.0.0 · source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type based access to context intended for error reports. Read more
    source§

    impl From<MassaSignatureError> for DenunciationError

    source§

    fn from(source: MassaSignatureError) -> Self

    Converts to this type from the input type.
    source§

    impl From<SerializeError> for DenunciationError

    source§

    fn from(source: SerializeError) -> Self

    Converts to this type from the input type.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_models/denunciation/enum.DenunciationIndex.html b/massa_models/denunciation/enum.DenunciationIndex.html index b826cbcdc4d..9a4058765b0 100644 --- a/massa_models/denunciation/enum.DenunciationIndex.html +++ b/massa_models/denunciation/enum.DenunciationIndex.html @@ -16,10 +16,10 @@

    source

    pub fn get_index(&self) -> Option<&u32>

    Get field: index (return None for a block header denunciation index)

    source

    pub fn get_hash(&self) -> Hash

    Compute the hash

    Trait Implementations§

    source§

    impl Clone for DenunciationIndex

    source§

    fn clone(&self) -> DenunciationIndex

    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 DenunciationIndex

    source§

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

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

    impl<'de> Deserialize<'de> for DenunciationIndex

    source§

    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 Deserializer<DenunciationIndex> for DenunciationIndexDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Deserializer<DenunciationIndex> for DenunciationIndexDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], DenunciationIndex, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl From<&Denunciation> for DenunciationIndex

    Create a DenunciationIndex from a Denunciation

    +) -> IResult<&'a [u8], DenunciationIndex, E>
    Deserialize a value T from a buffer of u8. Read more
    source§

    impl From<&Denunciation> for DenunciationIndex

    Create a DenunciationIndex from a Denunciation

    source§

    fn from(value: &Denunciation) -> Self

    Converts to this type from the input type.
    source§

    impl From<&DenunciationIndex> for DenunciationIndexTypeId

    source§

    fn from(value: &DenunciationIndex) -> Self

    Converts to this type from the input type.
    source§

    impl From<&DenunciationPrecursor> for DenunciationIndex

    Create a DenunciationIndex from a DenunciationPrecursor

    source§

    fn from(value: &DenunciationPrecursor) -> Self

    Converts to this type from the input type.
    source§

    impl From<DenunciationIndex> for DenunciationIndex

    source§

    fn from(value: DenunciationIndex) -> Self

    Converts to this type from the input type.
    source§

    impl Hash for DenunciationIndex

    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, @@ -31,11 +31,11 @@ sufficient, and should not be overridden without very good reason.

    source§

    impl PartialOrd<DenunciationIndex> for DenunciationIndex

    source§

    fn partial_cmp(&self, other: &Self) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    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 more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
    source§

    impl Serialize for DenunciationIndex

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<DenunciationIndex> for DenunciationIndexSerializer

    source§

    fn serialize( + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<DenunciationIndex> for DenunciationIndexSerializer

    source§

    fn serialize( &self, value: &DenunciationIndex, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl Copy for DenunciationIndex

    source§

    impl Eq for DenunciationIndex

    source§

    impl StructuralEq for DenunciationIndex

    source§

    impl StructuralPartialEq for DenunciationIndex

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for DenunciationIndex

    §

    impl Send for DenunciationIndex

    §

    impl Sync for DenunciationIndex

    §

    impl Unpin for DenunciationIndex

    §

    impl UnwindSafe for DenunciationIndex

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl Copy for DenunciationIndex

    source§

    impl Eq for DenunciationIndex

    source§

    impl StructuralEq for DenunciationIndex

    source§

    impl StructuralPartialEq for DenunciationIndex

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for DenunciationIndex

    §

    impl Send for DenunciationIndex

    §

    impl Sync for DenunciationIndex

    §

    impl Unpin for DenunciationIndex

    §

    impl UnwindSafe for DenunciationIndex

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> CallHasher for Twhere diff --git a/massa_models/denunciation/struct.BlockHeaderDenunciation.html b/massa_models/denunciation/struct.BlockHeaderDenunciation.html index 27354cb4043..4160f143ddf 100644 --- a/massa_models/denunciation/struct.BlockHeaderDenunciation.html +++ b/massa_models/denunciation/struct.BlockHeaderDenunciation.html @@ -12,17 +12,17 @@ content_hash: &Hash ) -> Hash

    Rebuild full hash of SecuredHeader from given arguments

    source

    pub fn get_public_key(&self) -> &PublicKey

    source

    pub fn get_slot(&self) -> &Slot

    source

    pub fn get_hash_1(&self) -> &Hash

    source

    pub fn get_hash_2(&self) -> &Hash

    source

    pub fn get_signature_1(&self) -> &Signature

    source

    pub fn get_signature_2(&self) -> &Signature

    Trait Implementations§

    source§

    impl Clone for BlockHeaderDenunciation

    source§

    fn clone(&self) -> BlockHeaderDenunciation

    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 BlockHeaderDenunciation

    source§

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

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

    impl<'de> Deserialize<'de> for BlockHeaderDenunciation

    source§

    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 Deserializer<BlockHeaderDenunciation> for BlockHeaderDenunciationDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Deserializer<BlockHeaderDenunciation> for BlockHeaderDenunciationDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], BlockHeaderDenunciation, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl PartialEq<BlockHeaderDenunciation> for BlockHeaderDenunciation

    source§

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

    This method tests for self and other values to be equal, and is used +) -> IResult<&'a [u8], BlockHeaderDenunciation, E>
    Deserialize a value T from a buffer of u8. Read more
    source§

    impl PartialEq<BlockHeaderDenunciation> for BlockHeaderDenunciation

    source§

    fn eq(&self, other: &BlockHeaderDenunciation) -> 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 Serialize for BlockHeaderDenunciation

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<BlockHeaderDenunciation> for BlockHeaderDenunciationSerializer

    source§

    fn serialize( + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<BlockHeaderDenunciation> for BlockHeaderDenunciationSerializer

    source§

    fn serialize( &self, value: &BlockHeaderDenunciation, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl StructuralPartialEq for BlockHeaderDenunciation

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for BlockHeaderDenunciation

    §

    impl Send for BlockHeaderDenunciation

    §

    impl Sync for BlockHeaderDenunciation

    §

    impl Unpin for BlockHeaderDenunciation

    §

    impl UnwindSafe for BlockHeaderDenunciation

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl StructuralPartialEq for BlockHeaderDenunciation

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for BlockHeaderDenunciation

    §

    impl Send for BlockHeaderDenunciation

    §

    impl Sync for BlockHeaderDenunciation

    §

    impl Unpin for BlockHeaderDenunciation

    §

    impl UnwindSafe for BlockHeaderDenunciation

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_models/denunciation/struct.BlockHeaderDenunciationDeserializer.html b/massa_models/denunciation/struct.BlockHeaderDenunciationDeserializer.html index 64040769049..a81c432df95 100644 --- a/massa_models/denunciation/struct.BlockHeaderDenunciationDeserializer.html +++ b/massa_models/denunciation/struct.BlockHeaderDenunciationDeserializer.html @@ -5,10 +5,10 @@ signature_deserializer: SignatureDeserializer, }
    Expand description

    Deserializer for BlockHeaderDenunciation

    Fields§

    §slot_deserializer: SlotDeserializer§hash_deserializer: HashDeserializer§pubkey_deserializer: PublicKeyDeserializer§signature_deserializer: SignatureDeserializer

    Implementations§

    source§

    impl BlockHeaderDenunciationDeserializer

    source

    pub const fn new(thread_count: u8) -> Self

    Creates a new BlockHeaderDenunciationDeserializer

    -

    Trait Implementations§

    source§

    impl Deserializer<BlockHeaderDenunciation> for BlockHeaderDenunciationDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Trait Implementations§

    source§

    impl Deserializer<BlockHeaderDenunciation> for BlockHeaderDenunciationDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], BlockHeaderDenunciation, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], BlockHeaderDenunciation, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for BlockHeaderDenunciationDeserializer

    §

    impl Send for BlockHeaderDenunciationDeserializer

    §

    impl Sync for BlockHeaderDenunciationDeserializer

    §

    impl Unpin for BlockHeaderDenunciationDeserializer

    §

    impl UnwindSafe for BlockHeaderDenunciationDeserializer

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_models/denunciation/struct.BlockHeaderDenunciationSerializer.html b/massa_models/denunciation/struct.BlockHeaderDenunciationSerializer.html index b154ea4226e..82fc361ffa7 100644 --- a/massa_models/denunciation/struct.BlockHeaderDenunciationSerializer.html +++ b/massa_models/denunciation/struct.BlockHeaderDenunciationSerializer.html @@ -3,11 +3,11 @@ hash_serializer: HashSerializer, }
    Expand description

    Serializer for BlockHeaderDenunciation

    Fields§

    §slot_serializer: SlotSerializer§hash_serializer: HashSerializer

    Implementations§

    source§

    impl BlockHeaderDenunciationSerializer

    source

    const fn new() -> Self

    Creates a new BlockHeaderDenunciationSerializer

    -

    Trait Implementations§

    Trait Implementations§

    source§

    impl Default for BlockHeaderDenunciationSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<BlockHeaderDenunciation> for BlockHeaderDenunciationSerializer

    source§

    fn serialize( &self, value: &BlockHeaderDenunciation, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for BlockHeaderDenunciationSerializer

    §

    impl Send for BlockHeaderDenunciationSerializer

    §

    impl Sync for BlockHeaderDenunciationSerializer

    §

    impl Unpin for BlockHeaderDenunciationSerializer

    §

    impl UnwindSafe for BlockHeaderDenunciationSerializer

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_models/denunciation/struct.DenunciationDeserializer.html b/massa_models/denunciation/struct.DenunciationDeserializer.html index 317ee963758..324f723e013 100644 --- a/massa_models/denunciation/struct.DenunciationDeserializer.html +++ b/massa_models/denunciation/struct.DenunciationDeserializer.html @@ -1,13 +1,13 @@ DenunciationDeserializer in massa_models::denunciation - Rust
    pub struct DenunciationDeserializer {
         endo_de_deserializer: EndorsementDenunciationDeserializer,
         blkh_de_deserializer: BlockHeaderDenunciationDeserializer,
    -    type_id_deserializer: U32VarIntDeserializer,
    +    type_id_deserializer: U32VarIntDeserializer,
     }
    Expand description

    Deserializer for Denunciation

    -

    Fields§

    §endo_de_deserializer: EndorsementDenunciationDeserializer§blkh_de_deserializer: BlockHeaderDenunciationDeserializer§type_id_deserializer: U32VarIntDeserializer

    Implementations§

    source§

    impl DenunciationDeserializer

    source

    pub const fn new(thread_count: u8, endorsement_count: u32) -> Self

    Creates a new DenunciationDeserializer

    -

    Trait Implementations§

    source§

    impl Deserializer<Denunciation> for DenunciationDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Fields§

    §endo_de_deserializer: EndorsementDenunciationDeserializer§blkh_de_deserializer: BlockHeaderDenunciationDeserializer§type_id_deserializer: U32VarIntDeserializer

    Implementations§

    source§

    impl DenunciationDeserializer

    source

    pub const fn new(thread_count: u8, endorsement_count: u32) -> Self

    Creates a new DenunciationDeserializer

    +

    Trait Implementations§

    source§

    impl Deserializer<Denunciation> for DenunciationDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], Denunciation, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], Denunciation, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_models/denunciation/struct.DenunciationIndexDeserializer.html b/massa_models/denunciation/struct.DenunciationIndexDeserializer.html index 3aa05195d9f..4dcbec8baee 100644 --- a/massa_models/denunciation/struct.DenunciationIndexDeserializer.html +++ b/massa_models/denunciation/struct.DenunciationIndexDeserializer.html @@ -1,13 +1,13 @@ DenunciationIndexDeserializer in massa_models::denunciation - Rust
    pub struct DenunciationIndexDeserializer {
    -    id_deserializer: U32VarIntDeserializer,
    +    id_deserializer: U32VarIntDeserializer,
         slot_deserializer: SlotDeserializer,
    -    index_deserializer: U32VarIntDeserializer,
    +    index_deserializer: U32VarIntDeserializer,
     }
    Expand description

    Deserializer for DenunciationIndex

    -

    Fields§

    §id_deserializer: U32VarIntDeserializer§slot_deserializer: SlotDeserializer§index_deserializer: U32VarIntDeserializer

    Implementations§

    source§

    impl DenunciationIndexDeserializer

    source

    pub const fn new(thread_count: u8, endorsement_count: u32) -> Self

    Creates a new DenunciationIndexDeserializer

    -

    Trait Implementations§

    source§

    impl Clone for DenunciationIndexDeserializer

    source§

    fn clone(&self) -> DenunciationIndexDeserializer

    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 Deserializer<DenunciationIndex> for DenunciationIndexDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Fields§

    §id_deserializer: U32VarIntDeserializer§slot_deserializer: SlotDeserializer§index_deserializer: U32VarIntDeserializer

    Implementations§

    source§

    impl DenunciationIndexDeserializer

    source

    pub const fn new(thread_count: u8, endorsement_count: u32) -> Self

    Creates a new DenunciationIndexDeserializer

    +

    Trait Implementations§

    source§

    impl Clone for DenunciationIndexDeserializer

    source§

    fn clone(&self) -> DenunciationIndexDeserializer

    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 Deserializer<DenunciationIndex> for DenunciationIndexDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], DenunciationIndex, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], DenunciationIndex, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_models/denunciation/struct.DenunciationIndexSerializer.html b/massa_models/denunciation/struct.DenunciationIndexSerializer.html index 7ab44594c02..6d5da42bee9 100644 --- a/massa_models/denunciation/struct.DenunciationIndexSerializer.html +++ b/massa_models/denunciation/struct.DenunciationIndexSerializer.html @@ -1,14 +1,14 @@ DenunciationIndexSerializer in massa_models::denunciation - Rust
    pub struct DenunciationIndexSerializer {
    -    u32_serializer: U32VarIntSerializer,
    +    u32_serializer: U32VarIntSerializer,
         slot_serializer: SlotSerializer,
    -    index_serializer: U32VarIntSerializer,
    +    index_serializer: U32VarIntSerializer,
     }
    Expand description

    Serializer for DenunciationIndex

    -

    Fields§

    §u32_serializer: U32VarIntSerializer§slot_serializer: SlotSerializer§index_serializer: U32VarIntSerializer

    Implementations§

    source§

    impl DenunciationIndexSerializer

    source

    pub const fn new() -> Self

    Creates a new DenunciationIndexSerializer

    -

    Trait Implementations§

    source§

    impl Clone for DenunciationIndexSerializer

    source§

    fn clone(&self) -> DenunciationIndexSerializer

    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 Default for DenunciationIndexSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<DenunciationIndex> for DenunciationIndexSerializer

    Fields§

    §u32_serializer: U32VarIntSerializer§slot_serializer: SlotSerializer§index_serializer: U32VarIntSerializer

    Implementations§

    source§

    impl DenunciationIndexSerializer

    source

    pub const fn new() -> Self

    Creates a new DenunciationIndexSerializer

    +

    Trait Implementations§

    source§

    impl Clone for DenunciationIndexSerializer

    source§

    fn clone(&self) -> DenunciationIndexSerializer

    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 Default for DenunciationIndexSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<DenunciationIndex> for DenunciationIndexSerializer

    source§

    fn serialize( &self, value: &DenunciationIndex, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_models/denunciation/struct.DenunciationSerializer.html b/massa_models/denunciation/struct.DenunciationSerializer.html index 92bc62513fa..6151ba4d79c 100644 --- a/massa_models/denunciation/struct.DenunciationSerializer.html +++ b/massa_models/denunciation/struct.DenunciationSerializer.html @@ -1,14 +1,14 @@ DenunciationSerializer in massa_models::denunciation - Rust
    pub struct DenunciationSerializer {
         endo_de_serializer: EndorsementDenunciationSerializer,
         blkh_de_serializer: BlockHeaderDenunciationSerializer,
    -    type_id_serializer: U32VarIntSerializer,
    +    type_id_serializer: U32VarIntSerializer,
     }
    Expand description

    Serializer for Denunciation

    -

    Fields§

    §endo_de_serializer: EndorsementDenunciationSerializer§blkh_de_serializer: BlockHeaderDenunciationSerializer§type_id_serializer: U32VarIntSerializer

    Implementations§

    source§

    impl DenunciationSerializer

    source

    pub const fn new() -> Self

    Creates a new BlockHeaderDenunciationSerializer

    -

    Trait Implementations§

    source§

    impl Default for DenunciationSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<Denunciation> for DenunciationSerializer

    Fields§

    §endo_de_serializer: EndorsementDenunciationSerializer§blkh_de_serializer: BlockHeaderDenunciationSerializer§type_id_serializer: U32VarIntSerializer

    Implementations§

    source§

    impl DenunciationSerializer

    source

    pub const fn new() -> Self

    Creates a new BlockHeaderDenunciationSerializer

    +

    Trait Implementations§

    source§

    impl Default for DenunciationSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<Denunciation> for DenunciationSerializer

    source§

    fn serialize( &self, value: &Denunciation, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_models/denunciation/struct.EndorsementDenunciation.html b/massa_models/denunciation/struct.EndorsementDenunciation.html index 84466272a7c..7e2cc82aad0 100644 --- a/massa_models/denunciation/struct.EndorsementDenunciation.html +++ b/massa_models/denunciation/struct.EndorsementDenunciation.html @@ -14,17 +14,17 @@ content_hash: &Hash ) -> Hash

    Rebuild full hash of SecureShareEndorsement from given arguments

    source

    pub fn get_public_key(&self) -> &PublicKey

    source

    pub fn get_slot(&self) -> &Slot

    source

    pub fn get_index(&self) -> &u32

    source

    pub fn get_hash_1(&self) -> &Hash

    source

    pub fn get_hash_2(&self) -> &Hash

    source

    pub fn get_signature_1(&self) -> &Signature

    source

    pub fn get_signature_2(&self) -> &Signature

    Trait Implementations§

    source§

    impl Clone for EndorsementDenunciation

    source§

    fn clone(&self) -> EndorsementDenunciation

    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 EndorsementDenunciation

    source§

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

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

    impl<'de> Deserialize<'de> for EndorsementDenunciation

    source§

    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 Deserializer<EndorsementDenunciation> for EndorsementDenunciationDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Deserializer<EndorsementDenunciation> for EndorsementDenunciationDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], EndorsementDenunciation, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl PartialEq<EndorsementDenunciation> for EndorsementDenunciation

    source§

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

    This method tests for self and other values to be equal, and is used +) -> IResult<&'a [u8], EndorsementDenunciation, E>
    Deserialize a value T from a buffer of u8. Read more
    source§

    impl PartialEq<EndorsementDenunciation> for EndorsementDenunciation

    source§

    fn eq(&self, other: &EndorsementDenunciation) -> 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 Serialize for EndorsementDenunciation

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<EndorsementDenunciation> for EndorsementDenunciationSerializer

    source§

    fn serialize( + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<EndorsementDenunciation> for EndorsementDenunciationSerializer

    source§

    fn serialize( &self, value: &EndorsementDenunciation, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl StructuralPartialEq for EndorsementDenunciation

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl StructuralPartialEq for EndorsementDenunciation

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_models/denunciation/struct.EndorsementDenunciationDeserializer.html b/massa_models/denunciation/struct.EndorsementDenunciationDeserializer.html index 7589635db81..1486237f68f 100644 --- a/massa_models/denunciation/struct.EndorsementDenunciationDeserializer.html +++ b/massa_models/denunciation/struct.EndorsementDenunciationDeserializer.html @@ -1,15 +1,15 @@ EndorsementDenunciationDeserializer in massa_models::denunciation - Rust
    struct EndorsementDenunciationDeserializer {
         slot_deserializer: SlotDeserializer,
    -    index_deserializer: U32VarIntDeserializer,
    +    index_deserializer: U32VarIntDeserializer,
         hash_deserializer: HashDeserializer,
         pubkey_deserializer: PublicKeyDeserializer,
         signature_deserializer: SignatureDeserializer,
     }
    Expand description

    Deserializer for EndorsementDenunciation

    -

    Fields§

    §slot_deserializer: SlotDeserializer§index_deserializer: U32VarIntDeserializer§hash_deserializer: HashDeserializer§pubkey_deserializer: PublicKeyDeserializer§signature_deserializer: SignatureDeserializer

    Implementations§

    source§

    impl EndorsementDenunciationDeserializer

    source

    const fn new(thread_count: u8, endorsement_count: u32) -> Self

    Creates a new EndorsementDeserializer

    -

    Trait Implementations§

    source§

    impl Deserializer<EndorsementDenunciation> for EndorsementDenunciationDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Fields§

    §slot_deserializer: SlotDeserializer§index_deserializer: U32VarIntDeserializer§hash_deserializer: HashDeserializer§pubkey_deserializer: PublicKeyDeserializer§signature_deserializer: SignatureDeserializer

    Implementations§

    source§

    impl EndorsementDenunciationDeserializer

    source

    const fn new(thread_count: u8, endorsement_count: u32) -> Self

    Creates a new EndorsementDeserializer

    +

    Trait Implementations§

    source§

    impl Deserializer<EndorsementDenunciation> for EndorsementDenunciationDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], EndorsementDenunciation, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], EndorsementDenunciation, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_models/denunciation/struct.EndorsementDenunciationSerializer.html b/massa_models/denunciation/struct.EndorsementDenunciationSerializer.html index 50f806aa534..8ddd5ecede8 100644 --- a/massa_models/denunciation/struct.EndorsementDenunciationSerializer.html +++ b/massa_models/denunciation/struct.EndorsementDenunciationSerializer.html @@ -1,14 +1,14 @@ EndorsementDenunciationSerializer in massa_models::denunciation - Rust
    struct EndorsementDenunciationSerializer {
         slot_serializer: SlotSerializer,
    -    u32_serializer: U32VarIntSerializer,
    +    u32_serializer: U32VarIntSerializer,
         hash_serializer: HashSerializer,
     }
    Expand description

    Serializer for EndorsementDenunciation

    -

    Fields§

    §slot_serializer: SlotSerializer§u32_serializer: U32VarIntSerializer§hash_serializer: HashSerializer

    Implementations§

    source§

    impl EndorsementDenunciationSerializer

    source

    const fn new() -> Self

    Creates a new EndorsementDenunciationSerializer

    -

    Trait Implementations§

    source§

    impl Default for EndorsementDenunciationSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<EndorsementDenunciation> for EndorsementDenunciationSerializer

    Fields§

    §slot_serializer: SlotSerializer§u32_serializer: U32VarIntSerializer§hash_serializer: HashSerializer

    Implementations§

    source§

    impl EndorsementDenunciationSerializer

    source

    const fn new() -> Self

    Creates a new EndorsementDenunciationSerializer

    +

    Trait Implementations§

    source§

    impl Default for EndorsementDenunciationSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<EndorsementDenunciation> for EndorsementDenunciationSerializer

    source§

    fn serialize( &self, value: &EndorsementDenunciation, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_models/endorsement/enum.EndorsementId.html b/massa_models/endorsement/enum.EndorsementId.html index 20564575958..0c9f7be2a18 100644 --- a/massa_models/endorsement/enum.EndorsementId.html +++ b/massa_models/endorsement/enum.EndorsementId.html @@ -4,10 +4,10 @@

    Variants§

    §

    EndorsementIdV0(EndorsementIdV0)

    Trait Implementations§

    source§

    impl Clone for EndorsementId

    source§

    fn clone(&self) -> EndorsementId

    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 EndorsementId

    source§

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

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

    impl<'de> Deserialize<'de> for EndorsementIdwhere Self: FromStr, <Self as FromStr>::Err: Display,

    source§

    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 Deserializer<EndorsementId> for EndorsementIdDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Deserializer<EndorsementId> for EndorsementIdDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], EndorsementId, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl Display for EndorsementId

    source§

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

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

    impl FromStr for EndorsementId

    source§

    fn from_str(s: &str) -> Result<Self, Self::Err>

    Example
    +) -> IResult<&'a [u8], EndorsementId, E>
    Deserialize a value T from a buffer of u8. Read more
    source§

    impl Display for EndorsementId

    source§

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

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

    impl FromStr for EndorsementId

    source§

    fn from_str(s: &str) -> Result<Self, Self::Err>

    Example
    let ser = endo_id.to_string();
     let res_endo_id = EndorsementId::from_str(&ser).unwrap();
     assert_eq!(endo_id, res_endo_id);
    diff --git a/massa_models/endorsement/struct.Endorsement.html b/massa_models/endorsement/struct.Endorsement.html index a6f719a2a8d..2e0869db350 100644 --- a/massa_models/endorsement/struct.Endorsement.html +++ b/massa_models/endorsement/struct.Endorsement.html @@ -8,7 +8,7 @@
    §endorsed_block: BlockId

    Hash of endorsed block. This is the parent in thread self.slot.thread of the block in which the endorsement is included

    Trait Implementations§

    source§

    impl Clone for Endorsement

    source§

    fn clone(&self) -> Endorsement

    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 Endorsement

    source§

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

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

    impl<'de> Deserialize<'de> for Endorsement

    source§

    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 Deserializer<Endorsement> for EndorsementDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Deserializer<Endorsement> for EndorsementDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], Endorsement, E>

    Example:
    @@ -28,7 +28,7 @@ assert_eq!(deserialized.slot, endorsement.slot); assert_eq!(deserialized.index, endorsement.index); assert_eq!(deserialized.endorsed_block, endorsement.endorsed_block);
    -
    source§

    impl Deserializer<Endorsement> for EndorsementDeserializerLW

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    source§

    impl Deserializer<Endorsement> for EndorsementDeserializerLW

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], Endorsement, E>

    Example:
    @@ -64,7 +64,7 @@ public_key: &PublicKey, content_hash: &Hash, signature: &Signature -) -> Result<(), ModelsError>
    verify signature
    source§

    fn new_verifiable<Ser: Serializer<Self>, ID: Id>( +) -> Result<(), ModelsError>

    verify signature
    source§

    fn new_verifiable<Ser: Serializer<Self>, ID: Id>( self, content_serializer: Ser, keypair: &KeyPair, @@ -80,19 +80,19 @@ creator_public_key: &PublicKey, serialized_content: &[u8], buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize the secured structure
    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>, Deser: Deserializer<Self>, ID: Id>( - content_serializer: Option<&dyn Serializer<Self>>, +) -> Result<(), SerializeError>

    Serialize the secured structure
    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>, Deser: Deserializer<Self>, ID: Id>( + content_serializer: Option<&dyn Serializer<Self>>, signature_deserializer: &SignatureDeserializer, creator_public_key_deserializer: &PublicKeyDeserializer, content_deserializer: &Deser, buffer: &'a [u8], chain_id: u64 ) -> IResult<&'a [u8], SecureShare<Self, ID>, E>

    Deserialize the secured structure
    source§

    impl Serialize for Endorsement

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<Endorsement> for EndorsementSerializer

    source§

    fn serialize( + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<Endorsement> for EndorsementSerializer

    source§

    fn serialize( &self, value: &Endorsement, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Example:
    +) -> Result<(), SerializeError>
    Example:
    use massa_models::{slot::Slot, block_id::BlockId, endorsement::{Endorsement, EndorsementSerializer}};
     use massa_serialization::Serializer;
     use massa_hash::Hash;
    @@ -104,11 +104,11 @@
     };
     let mut buffer = Vec::new();
     EndorsementSerializer::new().serialize(&endorsement, &mut buffer).unwrap();
    -
    source§

    impl Serializer<Endorsement> for EndorsementSerializerLW

    source§

    impl Serializer<Endorsement> for EndorsementSerializerLW

    source§

    fn serialize( &self, value: &Endorsement, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Example:
    +) -> Result<(), SerializeError>
    Example:
    use massa_models::{slot::Slot, block_id::BlockId, endorsement::{Endorsement, EndorsementSerializerLW}};
     use massa_serialization::Serializer;
     use massa_hash::Hash;
    diff --git a/massa_models/endorsement/struct.EndorsementDeserializer.html b/massa_models/endorsement/struct.EndorsementDeserializer.html
    index 5acad55d945..13cbdaafea3 100644
    --- a/massa_models/endorsement/struct.EndorsementDeserializer.html
    +++ b/massa_models/endorsement/struct.EndorsementDeserializer.html
    @@ -1,10 +1,10 @@
     EndorsementDeserializer in massa_models::endorsement - Rust
    pub struct EndorsementDeserializer {
         slot_deserializer: SlotDeserializer,
    -    index_deserializer: U32VarIntDeserializer,
    +    index_deserializer: U32VarIntDeserializer,
         block_id_deserializer: BlockIdDeserializer,
     }
    Expand description

    Deserializer for Endorsement

    -

    Fields§

    §slot_deserializer: SlotDeserializer§index_deserializer: U32VarIntDeserializer§block_id_deserializer: BlockIdDeserializer

    Implementations§

    source§

    impl EndorsementDeserializer

    source

    pub fn new(thread_count: u8, endorsement_count: u32) -> Self

    Creates a new EndorsementDeserializer

    -

    Trait Implementations§

    source§

    impl Deserializer<Endorsement> for EndorsementDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Fields§

    §slot_deserializer: SlotDeserializer§index_deserializer: U32VarIntDeserializer§block_id_deserializer: BlockIdDeserializer

    Implementations§

    source§

    impl EndorsementDeserializer

    source

    pub fn new(thread_count: u8, endorsement_count: u32) -> Self

    Creates a new EndorsementDeserializer

    +

    Trait Implementations§

    source§

    impl Deserializer<Endorsement> for EndorsementDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], Endorsement, E>

    Example:
    diff --git a/massa_models/endorsement/struct.EndorsementDeserializerLW.html b/massa_models/endorsement/struct.EndorsementDeserializerLW.html index 2f50680bf97..35676415ffd 100644 --- a/massa_models/endorsement/struct.EndorsementDeserializerLW.html +++ b/massa_models/endorsement/struct.EndorsementDeserializerLW.html @@ -1,14 +1,14 @@ EndorsementDeserializerLW in massa_models::endorsement - Rust
    pub struct EndorsementDeserializerLW {
    -    index_deserializer: U32VarIntDeserializer,
    +    index_deserializer: U32VarIntDeserializer,
         slot: Slot,
         endorsed_block: BlockId,
     }
    Expand description

    Lightweight Deserializer for Endorsement

    -

    Fields§

    §index_deserializer: U32VarIntDeserializer§slot: Slot§endorsed_block: BlockId

    Implementations§

    source§

    impl EndorsementDeserializerLW

    source

    pub const fn new( +

    Fields§

    §index_deserializer: U32VarIntDeserializer§slot: Slot§endorsed_block: BlockId

    Implementations§

    source§

    impl EndorsementDeserializerLW

    source

    pub const fn new( endorsement_count: u32, slot: Slot, endorsed_block: BlockId ) -> Self

    Creates a new EndorsementDeserializerLW

    -

    Trait Implementations§

    source§

    impl Deserializer<Endorsement> for EndorsementDeserializerLW

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Trait Implementations§

    source§

    impl Deserializer<Endorsement> for EndorsementDeserializerLW

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], Endorsement, E>

    Example:
    diff --git a/massa_models/endorsement/struct.EndorsementIdDeserializer.html b/massa_models/endorsement/struct.EndorsementIdDeserializer.html index e9397cc15d7..66ab96e5b12 100644 --- a/massa_models/endorsement/struct.EndorsementIdDeserializer.html +++ b/massa_models/endorsement/struct.EndorsementIdDeserializer.html @@ -1,13 +1,13 @@ EndorsementIdDeserializer in massa_models::endorsement - Rust
    struct EndorsementIdDeserializer {
    -    version_deserializer: U64VarIntDeserializer,
    +    version_deserializer: U64VarIntDeserializer,
         hash_deserializer: HashDeserializer,
    -}

    Fields§

    §version_deserializer: U64VarIntDeserializer§hash_deserializer: HashDeserializer

    Implementations§

    Trait Implementations§

    source§

    impl Deserializer<EndorsementId> for EndorsementIdDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +}

    Fields§

    §version_deserializer: U64VarIntDeserializer§hash_deserializer: HashDeserializer

    Implementations§

    Trait Implementations§

    source§

    impl Deserializer<EndorsementId> for EndorsementIdDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], EndorsementId, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl Deserializer<EndorsementIdV0> for EndorsementIdDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +) -> IResult<&'a [u8], EndorsementId, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl Deserializer<EndorsementIdV0> for EndorsementIdDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], EndorsementIdV0, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], EndorsementIdV0, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_models/endorsement/struct.EndorsementIdV0.html b/massa_models/endorsement/struct.EndorsementIdV0.html index ca2b758ad2f..632a4c89b1c 100644 --- a/massa_models/endorsement/struct.EndorsementIdV0.html +++ b/massa_models/endorsement/struct.EndorsementIdV0.html @@ -2,10 +2,10 @@

    Tuple Fields§

    §0: Hash

    Implementations§

    Trait Implementations§

    source§

    impl Clone for EndorsementIdV0

    source§

    fn clone(&self) -> EndorsementIdV0

    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<'de> Deserialize<'de> for EndorsementIdV0where Self: FromStr, <Self as FromStr>::Err: Display,

    source§

    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 Deserializer<EndorsementIdV0> for EndorsementIdDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Deserializer<EndorsementIdV0> for EndorsementIdDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], EndorsementIdV0, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl Display for EndorsementIdV0

    source§

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

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

    impl FromStr for EndorsementIdV0

    §

    type Err = ModelsError

    The associated error which can be returned from parsing.
    source§

    fn from_str(s: &str) -> Result<Self, Self::Err>

    Parses a string s to return a value of this type. Read more
    source§

    impl Hash for EndorsementIdV0

    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 +) -> IResult<&'a [u8], EndorsementIdV0, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl Display for EndorsementIdV0

    source§

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

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

    impl FromStr for EndorsementIdV0

    §

    type Err = ModelsError

    The associated error which can be returned from parsing.
    source§

    fn from_str(s: &str) -> Result<Self, Self::Err>

    Parses a string s to return a value of this type. Read more
    source§

    impl Hash for EndorsementIdV0

    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 Ord for EndorsementIdV0

    source§

    fn cmp(&self, other: &EndorsementIdV0) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Selfwhere Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Selfwhere diff --git a/massa_models/endorsement/struct.EndorsementSerializer.html b/massa_models/endorsement/struct.EndorsementSerializer.html index d6db5f36d03..50938233673 100644 --- a/massa_models/endorsement/struct.EndorsementSerializer.html +++ b/massa_models/endorsement/struct.EndorsementSerializer.html @@ -1,14 +1,14 @@ EndorsementSerializer in massa_models::endorsement - Rust
    pub struct EndorsementSerializer {
         slot_serializer: SlotSerializer,
    -    u32_serializer: U32VarIntSerializer,
    +    u32_serializer: U32VarIntSerializer,
         block_id_serializer: BlockIdSerializer,
     }
    Expand description

    Serializer for Endorsement

    -

    Fields§

    §slot_serializer: SlotSerializer§u32_serializer: U32VarIntSerializer§block_id_serializer: BlockIdSerializer

    Implementations§

    source§

    impl EndorsementSerializer

    source

    pub fn new() -> Self

    Creates a new EndorsementSerializer

    -

    Trait Implementations§

    source§

    impl Clone for EndorsementSerializer

    source§

    fn clone(&self) -> EndorsementSerializer

    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 Default for EndorsementSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<Endorsement> for EndorsementSerializer

    Fields§

    §slot_serializer: SlotSerializer§u32_serializer: U32VarIntSerializer§block_id_serializer: BlockIdSerializer

    Implementations§

    source§

    impl EndorsementSerializer

    source

    pub fn new() -> Self

    Creates a new EndorsementSerializer

    +

    Trait Implementations§

    source§

    impl Clone for EndorsementSerializer

    source§

    fn clone(&self) -> EndorsementSerializer

    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 Default for EndorsementSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<Endorsement> for EndorsementSerializer

    source§

    fn serialize( &self, value: &Endorsement, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Example:
    +) -> Result<(), SerializeError>

    Example:
    use massa_models::{slot::Slot, block_id::BlockId, endorsement::{Endorsement, EndorsementSerializer}};
     use massa_serialization::Serializer;
     use massa_hash::Hash;
    diff --git a/massa_models/endorsement/struct.EndorsementSerializerLW.html b/massa_models/endorsement/struct.EndorsementSerializerLW.html
    index 52e2cde21cf..741098e4009 100644
    --- a/massa_models/endorsement/struct.EndorsementSerializerLW.html
    +++ b/massa_models/endorsement/struct.EndorsementSerializerLW.html
    @@ -1,13 +1,13 @@
     EndorsementSerializerLW in massa_models::endorsement - Rust
    pub struct EndorsementSerializerLW {
    -    u32_serializer: U32VarIntSerializer,
    +    u32_serializer: U32VarIntSerializer,
     }
    Expand description

    Lightweight Serializer for Endorsement When included in a BlockHeader, we want to serialize only the index (optimization)

    -

    Fields§

    §u32_serializer: U32VarIntSerializer

    Implementations§

    source§

    impl EndorsementSerializerLW

    source

    pub fn new() -> Self

    Creates a new EndorsementSerializerLW

    -

    Trait Implementations§

    source§

    impl Default for EndorsementSerializerLW

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<Endorsement> for EndorsementSerializerLW

    Fields§

    §u32_serializer: U32VarIntSerializer

    Implementations§

    source§

    impl EndorsementSerializerLW

    source

    pub fn new() -> Self

    Creates a new EndorsementSerializerLW

    +

    Trait Implementations§

    source§

    impl Default for EndorsementSerializerLW

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<Endorsement> for EndorsementSerializerLW

    source§

    fn serialize( &self, value: &Endorsement, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Example:
    +) -> Result<(), SerializeError>
    Example:
    use massa_models::{slot::Slot, block_id::BlockId, endorsement::{Endorsement, EndorsementSerializerLW}};
     use massa_serialization::Serializer;
     use massa_hash::Hash;
    diff --git a/massa_models/error/enum.ModelsError.html b/massa_models/error/enum.ModelsError.html
    index a719198c2ab..9f3d6067383 100644
    --- a/massa_models/error/enum.ModelsError.html
    +++ b/massa_models/error/enum.ModelsError.html
    @@ -1,7 +1,7 @@
     ModelsError in massa_models::error - Rust
    #[non_exhaustive]
    pub enum ModelsError {
    Show 26 variants HashError, SerializeError(String), - SerializationError(SerializeError), + SerializationError(SerializeError), DeserializeError(String), BufferError(String), MassaHashError(MassaHashError), @@ -28,7 +28,7 @@
    }
    Expand description

    models error

    Variants (Non-exhaustive)§

    This enum is marked as non-exhaustive
    Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
    §

    HashError

    hashing error

    §

    SerializeError(String)

    Serialization error: {0}

    -
    §

    SerializationError(SerializeError)

    Serialization error: {0}

    +
    §

    SerializationError(SerializeError)

    Serialization error: {0}

    §

    DeserializeError(String)

    Deserialization error: {0}

    §

    BufferError(String)

    buffer error: {0}

    §

    MassaHashError(MassaHashError)

    MassaHash error: {0}

    @@ -52,7 +52,7 @@
    §

    OperationPrefixJoinError

    Wrong operation id size deduced on join

    §

    OutdatedBootstrapCursor

    Outdated bootstrap cursor

    §

    ErrorRaised(String)

    Error raised {0}

    -

    Trait Implementations§

    source§

    impl Clone for ModelsError

    source§

    fn clone(&self) -> ModelsError

    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 ModelsError

    source§

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

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

    impl Display for ModelsError

    source§

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

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

    impl Error for ModelsError

    source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    The lower-level source of this error, if any. Read more
    1.0.0 · source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type based access to context intended for error reports. Read more
    source§

    impl From<&'static str> for ModelsError

    source§

    fn from(err: &'static str) -> Self

    Converts to this type from the input type.
    source§

    impl From<Err<Error<&[u8]>>> for ModelsError

    source§

    fn from(err: Err<Error<&[u8]>>) -> Self

    Converts to this type from the input type.
    source§

    impl From<MassaHashError> for ModelsError

    source§

    fn from(source: MassaHashError) -> Self

    Converts to this type from the input type.
    source§

    impl From<MassaSignatureError> for ModelsError

    source§

    fn from(source: MassaSignatureError) -> Self

    Converts to this type from the input type.
    source§

    impl From<SerializeError> for ModelsError

    source§

    fn from(source: SerializeError) -> Self

    Converts to this type from the input type.
    source§

    impl From<TimeError> for ModelsError

    source§

    fn from(source: TimeError) -> Self

    Converts to this type from the input type.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +

    Trait Implementations§

    source§

    impl Clone for ModelsError

    source§

    fn clone(&self) -> ModelsError

    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 ModelsError

    source§

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

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

    impl Display for ModelsError

    source§

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

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

    impl Error for ModelsError

    source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    The lower-level source of this error, if any. Read more
    1.0.0 · source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type based access to context intended for error reports. Read more
    source§

    impl From<&'static str> for ModelsError

    source§

    fn from(err: &'static str) -> Self

    Converts to this type from the input type.
    source§

    impl From<Err<Error<&[u8]>>> for ModelsError

    source§

    fn from(err: Err<Error<&[u8]>>) -> Self

    Converts to this type from the input type.
    source§

    impl From<MassaHashError> for ModelsError

    source§

    fn from(source: MassaHashError) -> Self

    Converts to this type from the input type.
    source§

    impl From<MassaSignatureError> for ModelsError

    source§

    fn from(source: MassaSignatureError) -> Self

    Converts to this type from the input type.
    source§

    impl From<SerializeError> for ModelsError

    source§

    fn from(source: SerializeError) -> Self

    Converts to this type from the input type.
    source§

    impl From<TimeError> for ModelsError

    source§

    fn from(source: TimeError) -> Self

    Converts to this type from the input type.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_models/ledger/struct.LedgerChange.html b/massa_models/ledger/struct.LedgerChange.html index a9a48689707..9beee1fe796 100644 --- a/massa_models/ledger/struct.LedgerChange.html +++ b/massa_models/ledger/struct.LedgerChange.html @@ -7,7 +7,7 @@

    Implementations§

    source§

    impl LedgerChange

    source

    pub fn chain(&mut self, change: &LedgerChange) -> Result<(), ModelsError>

    Applies another ledger change on top of self

    source

    pub fn is_nil(&self) -> bool

    true if the change is 0

    Trait Implementations§

    source§

    impl Clone for LedgerChange

    source§

    fn clone(&self) -> LedgerChange

    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 LedgerChange

    source§

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

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

    impl Default for LedgerChange

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for LedgerChange

    source§

    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 Deserializer<LedgerChange> for LedgerChangeDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Deserializer<LedgerChange> for LedgerChangeDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], LedgerChange, E>

    Example
    @@ -26,11 +26,11 @@ assert_eq!(ledger_change.balance_delta, serialized.balance_delta); assert_eq!(ledger_change.balance_increment, serialized.balance_increment);
    source§

    impl Serialize for LedgerChange

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<LedgerChange> for LedgerChangeSerializer

    source§

    fn serialize( + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<LedgerChange> for LedgerChangeSerializer

    source§

    fn serialize( &self, value: &LedgerChange, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Example
    +) -> Result<(), SerializeError>
    Example
    use massa_models::{address::Address, amount::Amount};
     use std::str::FromStr;
     use massa_models::ledger::{LedgerChange, LedgerChangeSerializer};
    diff --git a/massa_models/ledger/struct.LedgerChangeDeserializer.html b/massa_models/ledger/struct.LedgerChangeDeserializer.html
    index 2ea859d08f0..a6683a6d3fc 100644
    --- a/massa_models/ledger/struct.LedgerChangeDeserializer.html
    +++ b/massa_models/ledger/struct.LedgerChangeDeserializer.html
    @@ -2,7 +2,7 @@
         amount_deserializer: AmountDeserializer,
     }
    Expand description

    Basic deserializer for LedgerChange

    Fields§

    §amount_deserializer: AmountDeserializer

    Implementations§

    source§

    impl LedgerChangeDeserializer

    source

    pub fn new() -> Self

    Creates a LedgerChangeDeserializer

    -

    Trait Implementations§

    source§

    impl Default for LedgerChangeDeserializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Deserializer<LedgerChange> for LedgerChangeDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Trait Implementations§

    source§

    impl Default for LedgerChangeDeserializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Deserializer<LedgerChange> for LedgerChangeDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], LedgerChange, E>

    Example
    diff --git a/massa_models/ledger/struct.LedgerChangeSerializer.html b/massa_models/ledger/struct.LedgerChangeSerializer.html index 865475d09b3..c2d08a0ecfd 100644 --- a/massa_models/ledger/struct.LedgerChangeSerializer.html +++ b/massa_models/ledger/struct.LedgerChangeSerializer.html @@ -2,11 +2,11 @@ amount_serializer: AmountSerializer, }
    Expand description

    Basic serializer for LedgerChange

    Fields§

    §amount_serializer: AmountSerializer

    Implementations§

    source§

    impl LedgerChangeSerializer

    source

    pub fn new() -> Self

    Creates a LedgerChangeSerializer

    -

    Trait Implementations§

    Trait Implementations§

    source§

    impl Default for LedgerChangeSerializer

    source§

    fn default() -> LedgerChangeSerializer

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<LedgerChange> for LedgerChangeSerializer

    source§

    fn serialize( &self, value: &LedgerChange, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Example
    +) -> Result<(), SerializeError>
    Example
    use massa_models::{address::Address, amount::Amount};
     use std::str::FromStr;
     use massa_models::ledger::{LedgerChange, LedgerChangeSerializer};
    diff --git a/massa_models/ledger/struct.LedgerChanges.html b/massa_models/ledger/struct.LedgerChanges.html
    index 88a7a7907ec..b5d5c8605be 100644
    --- a/massa_models/ledger/struct.LedgerChanges.html
    +++ b/massa_models/ledger/struct.LedgerChanges.html
    @@ -6,7 +6,7 @@
     addresses that are in not other are removed from self

    source

    pub fn clone_subset(&self, addrs: &PreHashSet<Address>) -> Self

    clone subset

    Trait Implementations§

    source§

    impl Clone for LedgerChanges

    source§

    fn clone(&self) -> LedgerChanges

    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 LedgerChanges

    source§

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

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

    impl Default for LedgerChanges

    source§

    fn default() -> LedgerChanges

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for LedgerChanges

    source§

    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 Deserializer<LedgerChanges> for LedgerChangesDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Deserializer<LedgerChanges> for LedgerChangesDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], LedgerChanges, E>

    Example
    @@ -27,11 +27,11 @@ } assert_eq!(ledger_changes.0.len(), res.0.len());
    source§

    impl Serialize for LedgerChanges

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<LedgerChanges> for LedgerChangesSerializer

    source§

    fn serialize( + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<LedgerChanges> for LedgerChangesSerializer

    source§

    fn serialize( &self, value: &LedgerChanges, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_models/ledger/struct.LedgerChangesDeserializer.html b/massa_models/ledger/struct.LedgerChangesDeserializer.html index 4a2a4cc5fd9..9272049e9c8 100644 --- a/massa_models/ledger/struct.LedgerChangesDeserializer.html +++ b/massa_models/ledger/struct.LedgerChangesDeserializer.html @@ -1,10 +1,10 @@ LedgerChangesDeserializer in massa_models::ledger - Rust
    pub struct LedgerChangesDeserializer {
    -    length_deserializer: U64VarIntDeserializer,
    +    length_deserializer: U64VarIntDeserializer,
         address_deserializer: AddressDeserializer,
         ledger_change_deserializer: LedgerChangeDeserializer,
     }
    Expand description

    Basic deserializer for LedgerChanges

    -

    Fields§

    §length_deserializer: U64VarIntDeserializer§address_deserializer: AddressDeserializer§ledger_change_deserializer: LedgerChangeDeserializer

    Implementations§

    source§

    impl LedgerChangesDeserializer

    source

    pub fn new(max_ledger_changes_count: u64) -> Self

    Creates a LedgerChangesDeserializer

    -

    Trait Implementations§

    source§

    impl Deserializer<LedgerChanges> for LedgerChangesDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Fields§

    §length_deserializer: U64VarIntDeserializer§address_deserializer: AddressDeserializer§ledger_change_deserializer: LedgerChangeDeserializer

    Implementations§

    source§

    impl LedgerChangesDeserializer

    source

    pub fn new(max_ledger_changes_count: u64) -> Self

    Creates a LedgerChangesDeserializer

    +

    Trait Implementations§

    source§

    impl Deserializer<LedgerChanges> for LedgerChangesDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], LedgerChanges, E>

    Example
    diff --git a/massa_models/ledger/struct.LedgerChangesSerializer.html b/massa_models/ledger/struct.LedgerChangesSerializer.html index 85e0641defe..9e1f38fbba3 100644 --- a/massa_models/ledger/struct.LedgerChangesSerializer.html +++ b/massa_models/ledger/struct.LedgerChangesSerializer.html @@ -1,14 +1,14 @@ LedgerChangesSerializer in massa_models::ledger - Rust
    pub struct LedgerChangesSerializer {
    -    length_serializer: U64VarIntSerializer,
    +    length_serializer: U64VarIntSerializer,
         address_serializer: AddressSerializer,
         ledger_change_serializer: LedgerChangeSerializer,
     }
    Expand description

    Basic serializer for LedgerChanges

    -

    Fields§

    §length_serializer: U64VarIntSerializer§address_serializer: AddressSerializer§ledger_change_serializer: LedgerChangeSerializer

    Implementations§

    source§

    impl LedgerChangesSerializer

    source

    pub fn new() -> Self

    Creates a LedgerChangesSerializer

    -

    Trait Implementations§

    source§

    impl Default for LedgerChangesSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<LedgerChanges> for LedgerChangesSerializer

    Fields§

    §length_serializer: U64VarIntSerializer§address_serializer: AddressSerializer§ledger_change_serializer: LedgerChangeSerializer

    Implementations§

    source§

    impl LedgerChangesSerializer

    source

    pub fn new() -> Self

    Creates a LedgerChangesSerializer

    +

    Trait Implementations§

    source§

    impl Default for LedgerChangesSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<LedgerChanges> for LedgerChangesSerializer

    source§

    fn serialize( &self, value: &LedgerChanges, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_models/ledger/struct.LedgerData.html b/massa_models/ledger/struct.LedgerData.html index 63cc89af14b..212eb4e0eff 100644 --- a/massa_models/ledger/struct.LedgerData.html +++ b/massa_models/ledger/struct.LedgerData.html @@ -7,7 +7,7 @@ Can fail in overflow or underflow occur

    source

    pub fn is_nil(&self) -> bool

    returns true if the balance is zero

    Trait Implementations§

    source§

    impl Clone for LedgerData

    source§

    fn clone(&self) -> LedgerData

    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 LedgerData

    source§

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

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

    impl Default for LedgerData

    source§

    fn default() -> LedgerData

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for LedgerData

    source§

    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 Deserializer<LedgerData> for LedgerDataDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Deserializer<LedgerData> for LedgerDataDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], LedgerData, E>

    Example:
    @@ -25,11 +25,11 @@ assert_eq!(rest.len(), 0); assert_eq!(ledger_data.balance, ledger_data_deserialized.balance);

    source§

    impl Serialize for LedgerData

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<LedgerData> for LedgerDataSerializer

    source§

    fn serialize( + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<LedgerData> for LedgerDataSerializer

    source§

    fn serialize( &self, value: &LedgerData, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Example:
    +) -> Result<(), SerializeError>
    Example:
    use massa_models::amount::Amount;
     use massa_serialization::Serializer;
     use std::str::FromStr;
    diff --git a/massa_models/ledger/struct.LedgerDataDeserializer.html b/massa_models/ledger/struct.LedgerDataDeserializer.html
    index 0270bd8a410..f659323690b 100644
    --- a/massa_models/ledger/struct.LedgerDataDeserializer.html
    +++ b/massa_models/ledger/struct.LedgerDataDeserializer.html
    @@ -2,7 +2,7 @@
         amount_deserializer: AmountDeserializer,
     }
    Expand description

    Basic deserializer for LedgerData

    Fields§

    §amount_deserializer: AmountDeserializer

    Implementations§

    source§

    impl LedgerDataDeserializer

    source

    pub fn new() -> Self

    Creates a LedgerDataDeserializer

    -

    Trait Implementations§

    source§

    impl Default for LedgerDataDeserializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Deserializer<LedgerData> for LedgerDataDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Trait Implementations§

    source§

    impl Default for LedgerDataDeserializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Deserializer<LedgerData> for LedgerDataDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], LedgerData, E>

    Example:
    diff --git a/massa_models/ledger/struct.LedgerDataSerializer.html b/massa_models/ledger/struct.LedgerDataSerializer.html index f5f745ec98e..4acf83ce7d7 100644 --- a/massa_models/ledger/struct.LedgerDataSerializer.html +++ b/massa_models/ledger/struct.LedgerDataSerializer.html @@ -2,11 +2,11 @@ amount_serializer: AmountSerializer, }
    Expand description

    Basic serializer for LedgerData

    Fields§

    §amount_serializer: AmountSerializer

    Implementations§

    source§

    impl LedgerDataSerializer

    source

    pub fn new() -> Self

    Creates a LedgerDataSerializer

    -

    Trait Implementations§

    Trait Implementations§

    source§

    impl Default for LedgerDataSerializer

    source§

    fn default() -> LedgerDataSerializer

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<LedgerData> for LedgerDataSerializer

    source§

    fn serialize( &self, value: &LedgerData, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Example:
    +) -> Result<(), SerializeError>
    Example:
    use massa_models::amount::Amount;
     use massa_serialization::Serializer;
     use std::str::FromStr;
    diff --git a/massa_models/operation/enum.OperationId.html b/massa_models/operation/enum.OperationId.html
    index 794f905c9d3..3ebd739de1d 100644
    --- a/massa_models/operation/enum.OperationId.html
    +++ b/massa_models/operation/enum.OperationId.html
    @@ -7,10 +7,10 @@
     

    Trait Implementations§

    source§

    impl Clone for OperationId

    source§

    fn clone(&self) -> OperationId

    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 OperationId

    source§

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

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

    impl<'de> Deserialize<'de> for OperationIdwhere Self: FromStr, <Self as FromStr>::Err: Display,

    source§

    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 Deserializer<OperationId> for OperationIdDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Deserializer<OperationId> for OperationIdDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], OperationId, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl Display for OperationId

    source§

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

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

    impl FromStr for OperationId

    source§

    fn from_str(s: &str) -> Result<Self, Self::Err>

    Example
    +) -> IResult<&'a [u8], OperationId, E>
    Deserialize a value T from a buffer of u8. Read more
    source§

    impl Display for OperationId

    source§

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

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

    impl FromStr for OperationId

    source§

    fn from_str(s: &str) -> Result<Self, Self::Err>

    Example
    let ser = op_id.to_string();
     let res_op_id = OperationId::from_str(&ser).unwrap();
     assert_eq!(op_id, res_op_id);
    @@ -25,11 +25,11 @@ operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
    source§

    impl Serialize for OperationIdwhere Self: Display,

    source§

    fn serialize<__S>(&self, serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<OperationId> for OperationIdSerializer

    source§

    fn serialize( + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<OperationId> for OperationIdSerializer

    source§

    fn serialize( &self, value: &OperationId, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl Copy for OperationId

    source§

    impl Eq for OperationId

    source§

    impl PreHashed for OperationId

    source§

    impl StructuralEq for OperationId

    source§

    impl StructuralPartialEq for OperationId

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl Copy for OperationId

    source§

    impl Eq for OperationId

    source§

    impl PreHashed for OperationId

    source§

    impl StructuralEq for OperationId

    source§

    impl StructuralPartialEq for OperationId

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> CallHasher for Twhere diff --git a/massa_models/operation/enum.OperationPrefixId.html b/massa_models/operation/enum.OperationPrefixId.html index 7b347f16d08..ef299f8902d 100644 --- a/massa_models/operation/enum.OperationPrefixId.html +++ b/massa_models/operation/enum.OperationPrefixId.html @@ -2,7 +2,7 @@ OperationPrefixIdV0(OperationPrefixIdV0), }
    Expand description

    Left part of the operation id hash stored in a vector of size OPERATION_ID_PREFIX_SIZE_BYTES

    Variants§

    §

    OperationPrefixIdV0(OperationPrefixIdV0)

    Trait Implementations§

    source§

    impl Clone for OperationPrefixId

    source§

    fn clone(&self) -> OperationPrefixId

    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 OperationPrefixId

    source§

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

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

    impl<'de> Deserialize<'de> for OperationPrefixId

    source§

    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 Deserializer<OperationPrefixId> for OperationPrefixIdDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Deserializer<OperationPrefixId> for OperationPrefixIdDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], OperationPrefixId, E>

    Example:
    diff --git a/massa_models/operation/enum.OperationType.html b/massa_models/operation/enum.OperationType.html index 244fdad1ec7..899506f207c 100644 --- a/massa_models/operation/enum.OperationType.html +++ b/massa_models/operation/enum.OperationType.html @@ -42,7 +42,7 @@
    §coins: Amount

    Extra coins that are spent from the caller’s balance and transferred to the target

    Calls an exported function from a stored smart contract

    Trait Implementations§

    source§

    impl Clone for OperationType

    source§

    fn clone(&self) -> OperationType

    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 OperationType

    source§

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

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

    impl<'de> Deserialize<'de> for OperationType

    source§

    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 Deserializer<OperationType> for OperationTypeDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Deserializer<OperationType> for OperationTypeDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], OperationType, E>

    Example:
    @@ -80,11 +80,11 @@
    source§

    impl Display for OperationType

    source§

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

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

    impl From<OperationType> for OpType

    source§

    fn from(value: OperationType) -> Self

    Converts to this type from the input type.
    source§

    impl From<OperationType> for OperationType

    source§

    fn from(operation_type: OperationType) -> OperationType

    Converts to this type from the input type.
    source§

    impl PartialEq<OperationType> for OperationType

    source§

    fn eq(&self, other: &OperationType) -> 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 Serialize for OperationType

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<OperationType> for OperationTypeSerializer

    source§

    fn serialize( + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<OperationType> for OperationTypeSerializer

    source§

    fn serialize( &self, value: &OperationType, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Example:
    +) -> Result<(), SerializeError>
    Example:
    use std::collections::BTreeMap;
     use massa_models::{operation::{OperationTypeSerializer, OperationTypeDeserializer,OperationType}, address::Address, amount::Amount};
     use massa_signature::KeyPair;
    diff --git a/massa_models/operation/struct.Operation.html b/massa_models/operation/struct.Operation.html
    index 166ff6d6303..7d480729fc5 100644
    --- a/massa_models/operation/struct.Operation.html
    +++ b/massa_models/operation/struct.Operation.html
    @@ -7,7 +7,7 @@
     
    §expire_period: u64

    after expire_period slot the operation won’t be included in a block

    §op: OperationType

    the type specific operation part

    Trait Implementations§

    source§

    impl Clone for Operation

    source§

    fn clone(&self) -> Operation

    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 Operation

    source§

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

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

    impl<'de> Deserialize<'de> for Operation

    source§

    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 Deserializer<Operation> for OperationDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Deserializer<Operation> for OperationDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], Operation, E>

    Example:
    @@ -56,7 +56,7 @@ public_key: &PublicKey, content_hash: &Hash, signature: &Signature -) -> Result<(), ModelsError>
    verify signature
    source§

    fn new_verifiable<Ser: Serializer<Self>, ID: Id>( +) -> Result<(), ModelsError>

    verify signature
    source§

    fn new_verifiable<Ser: Serializer<Self>, ID: Id>( self, content_serializer: Ser, keypair: &KeyPair, @@ -71,19 +71,19 @@ creator_public_key: &PublicKey, serialized_content: &[u8], buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize the secured structure
    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>, Deser: Deserializer<Self>, ID: Id>( - content_serializer: Option<&dyn Serializer<Self>>, +) -> Result<(), SerializeError>

    Serialize the secured structure
    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>, Deser: Deserializer<Self>, ID: Id>( + content_serializer: Option<&dyn Serializer<Self>>, signature_deserializer: &SignatureDeserializer, creator_public_key_deserializer: &PublicKeyDeserializer, content_deserializer: &Deser, buffer: &'a [u8], chain_id: u64 ) -> IResult<&'a [u8], SecureShare<Self, ID>, E>

    Deserialize the secured structure
    source§

    impl Serialize for Operation

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<Operation> for OperationSerializer

    source§

    fn serialize( + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<Operation> for OperationSerializer

    source§

    fn serialize( &self, value: &Operation, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Example:
    +) -> Result<(), SerializeError>
    Example:
    use massa_models::{amount::Amount, address::Address, operation::{OperationType, OperationSerializer, Operation}};
     use massa_signature::KeyPair;
     use massa_serialization::Serializer;
    diff --git a/massa_models/operation/struct.OperationDeserializer.html b/massa_models/operation/struct.OperationDeserializer.html
    index 7b57f55cb85..71ba51b5a9a 100644
    --- a/massa_models/operation/struct.OperationDeserializer.html
    +++ b/massa_models/operation/struct.OperationDeserializer.html
    @@ -1,9 +1,9 @@
     OperationDeserializer in massa_models::operation - Rust
    pub struct OperationDeserializer {
    -    expire_period_deserializer: U64VarIntDeserializer,
    +    expire_period_deserializer: U64VarIntDeserializer,
         amount_deserializer: AmountDeserializer,
         op_type_deserializer: OperationTypeDeserializer,
     }
    Expand description

    Serializer for Operation

    -

    Fields§

    §expire_period_deserializer: U64VarIntDeserializer§amount_deserializer: AmountDeserializer§op_type_deserializer: OperationTypeDeserializer

    Implementations§

    source§

    impl OperationDeserializer

    source

    pub fn new( +

    Fields§

    §expire_period_deserializer: U64VarIntDeserializer§amount_deserializer: AmountDeserializer§op_type_deserializer: OperationTypeDeserializer

    Implementations§

    source§

    impl OperationDeserializer

    source

    pub fn new( max_datastore_value_length: u64, max_function_name_length: u16, max_parameters_size: u32, @@ -11,7 +11,7 @@ max_op_datastore_key_length: u8, max_op_datastore_value_length: u64 ) -> Self

    Creates a OperationDeserializer

    -

    Trait Implementations§

    source§

    impl Deserializer<Operation> for OperationDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Trait Implementations§

    source§

    impl Deserializer<Operation> for OperationDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], Operation, E>

    Example:
    diff --git a/massa_models/operation/struct.OperationIdDeserializer.html b/massa_models/operation/struct.OperationIdDeserializer.html index 329d6d59ace..9dece9bb138 100644 --- a/massa_models/operation/struct.OperationIdDeserializer.html +++ b/massa_models/operation/struct.OperationIdDeserializer.html @@ -1,15 +1,15 @@ OperationIdDeserializer in massa_models::operation - Rust
    pub struct OperationIdDeserializer {
         hash_deserializer: HashDeserializer,
    -    version_deserializer: U64VarIntDeserializer,
    +    version_deserializer: U64VarIntDeserializer,
     }
    Expand description

    Deserializer for OperationId

    -

    Fields§

    §hash_deserializer: HashDeserializer§version_deserializer: U64VarIntDeserializer

    Implementations§

    source§

    impl OperationIdDeserializer

    source

    pub fn new() -> Self

    Creates a new deserializer for OperationId

    -

    Trait Implementations§

    source§

    impl Clone for OperationIdDeserializer

    source§

    fn clone(&self) -> OperationIdDeserializer

    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 Default for OperationIdDeserializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Deserializer<OperationId> for OperationIdDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Fields§

    §hash_deserializer: HashDeserializer§version_deserializer: U64VarIntDeserializer

    Implementations§

    source§

    impl OperationIdDeserializer

    source

    pub fn new() -> Self

    Creates a new deserializer for OperationId

    +

    Trait Implementations§

    source§

    impl Clone for OperationIdDeserializer

    source§

    fn clone(&self) -> OperationIdDeserializer

    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 Default for OperationIdDeserializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Deserializer<OperationId> for OperationIdDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], OperationId, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl Deserializer<OperationIdV0> for OperationIdDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +) -> IResult<&'a [u8], OperationId, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl Deserializer<OperationIdV0> for OperationIdDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], OperationIdV0, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], OperationIdV0, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_models/operation/struct.OperationIdSerializer.html b/massa_models/operation/struct.OperationIdSerializer.html index b6153425187..79f4cc58911 100644 --- a/massa_models/operation/struct.OperationIdSerializer.html +++ b/massa_models/operation/struct.OperationIdSerializer.html @@ -1,16 +1,16 @@ OperationIdSerializer in massa_models::operation - Rust
    pub struct OperationIdSerializer {
    -    version_serializer: U64VarIntSerializer,
    +    version_serializer: U64VarIntSerializer,
     }
    Expand description

    Serializer for OperationId

    -

    Fields§

    §version_serializer: U64VarIntSerializer

    Implementations§

    source§

    impl OperationIdSerializer

    source

    pub fn new() -> Self

    Creates a new serializer for OperationId

    -

    Trait Implementations§

    source§

    impl Clone for OperationIdSerializer

    source§

    fn clone(&self) -> OperationIdSerializer

    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 Default for OperationIdSerializer

    source§

    fn default() -> OperationIdSerializer

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<OperationId> for OperationIdSerializer

    Fields§

    §version_serializer: U64VarIntSerializer

    Implementations§

    source§

    impl OperationIdSerializer

    source

    pub fn new() -> Self

    Creates a new serializer for OperationId

    +

    Trait Implementations§

    source§

    impl Clone for OperationIdSerializer

    source§

    fn clone(&self) -> OperationIdSerializer

    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 Default for OperationIdSerializer

    source§

    fn default() -> OperationIdSerializer

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<OperationId> for OperationIdSerializer

    source§

    fn serialize( &self, value: &OperationId, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl Serializer<OperationIdV0> for OperationIdSerializer

    source§

    fn serialize( +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl Serializer<OperationIdV0> for OperationIdSerializer

    source§

    fn serialize( &self, value: &OperationIdV0, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_models/operation/struct.OperationIdV0.html b/massa_models/operation/struct.OperationIdV0.html index 2af2c482278..dc55ec3bba9 100644 --- a/massa_models/operation/struct.OperationIdV0.html +++ b/massa_models/operation/struct.OperationIdV0.html @@ -4,10 +4,10 @@

    source

    fn get_hash(&self) -> &Hash

    source

    fn get_version(&self) -> u64

    Trait Implementations§

    source§

    impl Clone for OperationIdV0

    source§

    fn clone(&self) -> OperationIdV0

    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 OperationIdV0

    source§

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

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

    impl<'de> Deserialize<'de> for OperationIdV0where Self: FromStr, <Self as FromStr>::Err: Display,

    source§

    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 Deserializer<OperationIdV0> for OperationIdDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Deserializer<OperationIdV0> for OperationIdDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], OperationIdV0, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl Display for OperationIdV0

    source§

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

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

    impl FromStr for OperationIdV0

    §

    type Err = ModelsError

    The associated error which can be returned from parsing.
    source§

    fn from_str(s: &str) -> Result<Self, Self::Err>

    Parses a string s to return a value of this type. Read more
    source§

    impl Hash for OperationIdV0

    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 +) -> IResult<&'a [u8], OperationIdV0, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl Display for OperationIdV0

    source§

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

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

    impl FromStr for OperationIdV0

    §

    type Err = ModelsError

    The associated error which can be returned from parsing.
    source§

    fn from_str(s: &str) -> Result<Self, Self::Err>

    Parses a string s to return a value of this type. Read more
    source§

    impl Hash for OperationIdV0

    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 Ord for OperationIdV0

    source§

    fn cmp(&self, other: &OperationIdV0) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Selfwhere Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Selfwhere @@ -18,11 +18,11 @@ operator. Read more

    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
    source§

    impl Serialize for OperationIdV0where Self: Display,

    source§

    fn serialize<__S>(&self, serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<OperationIdV0> for OperationIdSerializer

    source§

    fn serialize( + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<OperationIdV0> for OperationIdSerializer

    source§

    fn serialize( &self, value: &OperationIdV0, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl Versioned for OperationIdV0

    source§

    impl Copy for OperationIdV0

    source§

    impl Eq for OperationIdV0

    source§

    impl StructuralEq for OperationIdV0

    source§

    impl StructuralPartialEq for OperationIdV0

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl Versioned for OperationIdV0

    source§

    impl Copy for OperationIdV0

    source§

    impl Eq for OperationIdV0

    source§

    impl StructuralEq for OperationIdV0

    source§

    impl StructuralPartialEq for OperationIdV0

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> CallHasher for Twhere diff --git a/massa_models/operation/struct.OperationIdsDeserializer.html b/massa_models/operation/struct.OperationIdsDeserializer.html index 2ab0d3d0d33..fa9bb7576a4 100644 --- a/massa_models/operation/struct.OperationIdsDeserializer.html +++ b/massa_models/operation/struct.OperationIdsDeserializer.html @@ -1,9 +1,9 @@ OperationIdsDeserializer in massa_models::operation - Rust
    pub struct OperationIdsDeserializer {
    -    length_deserializer: U32VarIntDeserializer,
    +    length_deserializer: U32VarIntDeserializer,
         op_id_deserializer: OperationIdDeserializer,
     }
    Expand description

    Deserializer for Vec<OperationId>

    -

    Fields§

    §length_deserializer: U32VarIntDeserializer§op_id_deserializer: OperationIdDeserializer

    Implementations§

    source§

    impl OperationIdsDeserializer

    source

    pub fn new(max_operations_per_message: u32) -> Self

    Creates a new OperationIdsDeserializer

    -

    Trait Implementations§

    source§

    impl Deserializer<Vec<OperationId, Global>> for OperationIdsDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Fields§

    §length_deserializer: U32VarIntDeserializer§op_id_deserializer: OperationIdDeserializer

    Implementations§

    source§

    impl OperationIdsDeserializer

    source

    pub fn new(max_operations_per_message: u32) -> Self

    Creates a new OperationIdsDeserializer

    +

    Trait Implementations§

    source§

    impl Deserializer<Vec<OperationId, Global>> for OperationIdsDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], Vec<OperationId>, E>

    Example:
    diff --git a/massa_models/operation/struct.OperationIdsSerializer.html b/massa_models/operation/struct.OperationIdsSerializer.html index bffe302e2a7..69159856836 100644 --- a/massa_models/operation/struct.OperationIdsSerializer.html +++ b/massa_models/operation/struct.OperationIdsSerializer.html @@ -1,13 +1,13 @@ OperationIdsSerializer in massa_models::operation - Rust
    pub struct OperationIdsSerializer {
    -    u32_serializer: U32VarIntSerializer,
    +    u32_serializer: U32VarIntSerializer,
         op_id_serializer: OperationIdSerializer,
     }
    Expand description

    Serializer for Vec<OperationId>

    -

    Fields§

    §u32_serializer: U32VarIntSerializer§op_id_serializer: OperationIdSerializer

    Implementations§

    source§

    impl OperationIdsSerializer

    source

    pub fn new() -> Self

    Creates a new OperationIdsSerializer

    -

    Trait Implementations§

    source§

    impl Default for OperationIdsSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<Vec<OperationId, Global>> for OperationIdsSerializer

    Fields§

    §u32_serializer: U32VarIntSerializer§op_id_serializer: OperationIdSerializer

    Implementations§

    source§

    impl OperationIdsSerializer

    source

    pub fn new() -> Self

    Creates a new OperationIdsSerializer

    +

    Trait Implementations§

    source§

    impl Default for OperationIdsSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<Vec<OperationId, Global>> for OperationIdsSerializer

    source§

    fn serialize( &self, value: &Vec<OperationId>, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Example:
    +) -> Result<(), SerializeError>

    Example:
    use massa_models::operation::{OperationId, OperationIdsSerializer};
     use massa_serialization::Serializer;
     use std::str::FromStr;
    diff --git a/massa_models/operation/struct.OperationPrefixIdDeserializer.html b/massa_models/operation/struct.OperationPrefixIdDeserializer.html
    index f94d8a3a674..e7f870a8f1e 100644
    --- a/massa_models/operation/struct.OperationPrefixIdDeserializer.html
    +++ b/massa_models/operation/struct.OperationPrefixIdDeserializer.html
    @@ -1,6 +1,6 @@
     OperationPrefixIdDeserializer in massa_models::operation - Rust
    pub struct OperationPrefixIdDeserializer;
    Expand description

    Deserializer for [OperationPrefixId]

    Implementations§

    source§

    impl OperationPrefixIdDeserializer

    source

    pub const fn new() -> Self

    Creates a deserializer for [OperationPrefixId]

    -

    Trait Implementations§

    source§

    impl Default for OperationPrefixIdDeserializer

    source§

    fn default() -> OperationPrefixIdDeserializer

    Returns the “default value” for a type. Read more
    source§

    impl Deserializer<OperationPrefixId> for OperationPrefixIdDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Trait Implementations§

    source§

    impl Default for OperationPrefixIdDeserializer

    source§

    fn default() -> OperationPrefixIdDeserializer

    Returns the “default value” for a type. Read more
    source§

    impl Deserializer<OperationPrefixId> for OperationPrefixIdDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], OperationPrefixId, E>

    Example:
    diff --git a/massa_models/operation/struct.OperationPrefixIdsDeserializer.html b/massa_models/operation/struct.OperationPrefixIdsDeserializer.html index f4b58f6369a..c2715d49c9b 100644 --- a/massa_models/operation/struct.OperationPrefixIdsDeserializer.html +++ b/massa_models/operation/struct.OperationPrefixIdsDeserializer.html @@ -1,9 +1,9 @@ OperationPrefixIdsDeserializer in massa_models::operation - Rust
    pub struct OperationPrefixIdsDeserializer {
    -    length_deserializer: U32VarIntDeserializer,
    +    length_deserializer: U32VarIntDeserializer,
         pref_deserializer: OperationPrefixIdDeserializer,
     }
    Expand description

    Deserializer for OperationPrefixIds

    -

    Fields§

    §length_deserializer: U32VarIntDeserializer§pref_deserializer: OperationPrefixIdDeserializer

    Implementations§

    source§

    impl OperationPrefixIdsDeserializer

    source

    pub const fn new(max_operations_per_message: u32) -> Self

    Creates a new OperationIdsDeserializer

    -

    Trait Implementations§

    source§

    impl Deserializer<HashSet<OperationPrefixId, BuildHasherDefault<HashMapper<OperationPrefixId>>>> for OperationPrefixIdsDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Fields§

    §length_deserializer: U32VarIntDeserializer§pref_deserializer: OperationPrefixIdDeserializer

    Implementations§

    source§

    impl OperationPrefixIdsDeserializer

    source

    pub const fn new(max_operations_per_message: u32) -> Self

    Creates a new OperationIdsDeserializer

    +

    Trait Implementations§

    source§

    impl Deserializer<HashSet<OperationPrefixId, BuildHasherDefault<HashMapper<OperationPrefixId>>>> for OperationPrefixIdsDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], OperationPrefixIds, E>

    Example:
    diff --git a/massa_models/operation/struct.OperationPrefixIdsSerializer.html b/massa_models/operation/struct.OperationPrefixIdsSerializer.html index 4416d3a4d1e..ef45dcfb09b 100644 --- a/massa_models/operation/struct.OperationPrefixIdsSerializer.html +++ b/massa_models/operation/struct.OperationPrefixIdsSerializer.html @@ -1,12 +1,12 @@ OperationPrefixIdsSerializer in massa_models::operation - Rust
    pub struct OperationPrefixIdsSerializer {
    -    u32_serializer: U32VarIntSerializer,
    +    u32_serializer: U32VarIntSerializer,
     }
    Expand description

    Serializer for OperationPrefixIds

    -

    Fields§

    §u32_serializer: U32VarIntSerializer

    Implementations§

    source§

    impl OperationPrefixIdsSerializer

    source

    pub const fn new() -> Self

    Creates a new OperationIdsSerializer

    -

    Trait Implementations§

    source§

    impl Clone for OperationPrefixIdsSerializer

    source§

    fn clone(&self) -> OperationPrefixIdsSerializer

    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 Default for OperationPrefixIdsSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<HashSet<OperationPrefixId, BuildHasherDefault<HashMapper<OperationPrefixId>>>> for OperationPrefixIdsSerializer

    Fields§

    §u32_serializer: U32VarIntSerializer

    Implementations§

    source§

    impl OperationPrefixIdsSerializer

    source

    pub const fn new() -> Self

    Creates a new OperationIdsSerializer

    +

    Trait Implementations§

    source§

    impl Clone for OperationPrefixIdsSerializer

    source§

    fn clone(&self) -> OperationPrefixIdsSerializer

    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 Default for OperationPrefixIdsSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<HashSet<OperationPrefixId, BuildHasherDefault<HashMapper<OperationPrefixId>>>> for OperationPrefixIdsSerializer

    source§

    fn serialize( &self, value: &OperationPrefixIds, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_models/operation/struct.OperationSerializer.html b/massa_models/operation/struct.OperationSerializer.html index 58193aac665..349fa7dd091 100644 --- a/massa_models/operation/struct.OperationSerializer.html +++ b/massa_models/operation/struct.OperationSerializer.html @@ -1,14 +1,14 @@ OperationSerializer in massa_models::operation - Rust
    pub struct OperationSerializer {
    -    u64_serializer: U64VarIntSerializer,
    +    u64_serializer: U64VarIntSerializer,
         amount_serializer: AmountSerializer,
         op_type_serializer: OperationTypeSerializer,
     }
    Expand description

    Serializer for Operation

    -

    Fields§

    §u64_serializer: U64VarIntSerializer§amount_serializer: AmountSerializer§op_type_serializer: OperationTypeSerializer

    Implementations§

    source§

    impl OperationSerializer

    source

    pub fn new() -> Self

    Creates a new OperationSerializer

    -

    Trait Implementations§

    source§

    impl Default for OperationSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<Operation> for OperationSerializer

    Fields§

    §u64_serializer: U64VarIntSerializer§amount_serializer: AmountSerializer§op_type_serializer: OperationTypeSerializer

    Implementations§

    source§

    impl OperationSerializer

    source

    pub fn new() -> Self

    Creates a new OperationSerializer

    +

    Trait Implementations§

    source§

    impl Default for OperationSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<Operation> for OperationSerializer

    source§

    fn serialize( &self, value: &Operation, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Example:
    +) -> Result<(), SerializeError>

    Example:
    use massa_models::{amount::Amount, address::Address, operation::{OperationType, OperationSerializer, Operation}};
     use massa_signature::KeyPair;
     use massa_serialization::Serializer;
    diff --git a/massa_models/operation/struct.OperationTypeDeserializer.html b/massa_models/operation/struct.OperationTypeDeserializer.html
    index e0a0766c226..c63fcdf297f 100644
    --- a/massa_models/operation/struct.OperationTypeDeserializer.html
    +++ b/massa_models/operation/struct.OperationTypeDeserializer.html
    @@ -1,15 +1,15 @@
     OperationTypeDeserializer in massa_models::operation - Rust
    pub struct OperationTypeDeserializer {
    -    id_deserializer: U32VarIntDeserializer,
    -    rolls_number_deserializer: U64VarIntDeserializer,
    -    max_gas_deserializer: U64VarIntDeserializer,
    +    id_deserializer: U32VarIntDeserializer,
    +    rolls_number_deserializer: U64VarIntDeserializer,
    +    max_gas_deserializer: U64VarIntDeserializer,
         address_deserializer: AddressDeserializer,
         data_deserializer: VecU8Deserializer,
         amount_deserializer: AmountDeserializer,
    -    function_name_deserializer: StringDeserializer<U16VarIntDeserializer, u16>,
    +    function_name_deserializer: StringDeserializer<U16VarIntDeserializer, u16>,
         parameter_deserializer: VecU8Deserializer,
         datastore_deserializer: DatastoreDeserializer,
     }
    Expand description

    Deserializer for OperationType

    -

    Fields§

    §id_deserializer: U32VarIntDeserializer§rolls_number_deserializer: U64VarIntDeserializer§max_gas_deserializer: U64VarIntDeserializer§address_deserializer: AddressDeserializer§data_deserializer: VecU8Deserializer§amount_deserializer: AmountDeserializer§function_name_deserializer: StringDeserializer<U16VarIntDeserializer, u16>§parameter_deserializer: VecU8Deserializer§datastore_deserializer: DatastoreDeserializer

    Implementations§

    source§

    impl OperationTypeDeserializer

    source

    pub fn new( +

    Fields§

    §id_deserializer: U32VarIntDeserializer§rolls_number_deserializer: U64VarIntDeserializer§max_gas_deserializer: U64VarIntDeserializer§address_deserializer: AddressDeserializer§data_deserializer: VecU8Deserializer§amount_deserializer: AmountDeserializer§function_name_deserializer: StringDeserializer<U16VarIntDeserializer, u16>§parameter_deserializer: VecU8Deserializer§datastore_deserializer: DatastoreDeserializer

    Implementations§

    source§

    impl OperationTypeDeserializer

    source

    pub fn new( max_datastore_value_length: u64, max_function_name_length: u16, max_parameters_size: u32, @@ -17,7 +17,7 @@ max_op_datastore_key_length: u8, max_op_datastore_value_length: u64 ) -> Self

    Creates a new OperationTypeDeserializer

    -

    Trait Implementations§

    source§

    impl Deserializer<OperationType> for OperationTypeDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Trait Implementations§

    source§

    impl Deserializer<OperationType> for OperationTypeDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], OperationType, E>

    Example:
    diff --git a/massa_models/operation/struct.OperationTypeSerializer.html b/massa_models/operation/struct.OperationTypeSerializer.html index 51b2198fb29..5bf5b034d52 100644 --- a/massa_models/operation/struct.OperationTypeSerializer.html +++ b/massa_models/operation/struct.OperationTypeSerializer.html @@ -1,18 +1,18 @@ OperationTypeSerializer in massa_models::operation - Rust
    pub struct OperationTypeSerializer {
    -    u32_serializer: U32VarIntSerializer,
    -    u64_serializer: U64VarIntSerializer,
    +    u32_serializer: U32VarIntSerializer,
    +    u64_serializer: U64VarIntSerializer,
         vec_u8_serializer: VecU8Serializer,
         amount_serializer: AmountSerializer,
         address_serializer: AddressSerializer,
    -    function_name_serializer: StringSerializer<U16VarIntSerializer, u16>,
    +    function_name_serializer: StringSerializer<U16VarIntSerializer, u16>,
         datastore_serializer: DatastoreSerializer,
     }
    Expand description

    Serializer for OperationType

    -

    Fields§

    §u32_serializer: U32VarIntSerializer§u64_serializer: U64VarIntSerializer§vec_u8_serializer: VecU8Serializer§amount_serializer: AmountSerializer§address_serializer: AddressSerializer§function_name_serializer: StringSerializer<U16VarIntSerializer, u16>§datastore_serializer: DatastoreSerializer

    Implementations§

    source§

    impl OperationTypeSerializer

    source

    pub fn new() -> Self

    Creates a new OperationTypeSerializer

    -

    Trait Implementations§

    source§

    impl Default for OperationTypeSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<OperationType> for OperationTypeSerializer

    Fields§

    §u32_serializer: U32VarIntSerializer§u64_serializer: U64VarIntSerializer§vec_u8_serializer: VecU8Serializer§amount_serializer: AmountSerializer§address_serializer: AddressSerializer§function_name_serializer: StringSerializer<U16VarIntSerializer, u16>§datastore_serializer: DatastoreSerializer

    Implementations§

    source§

    impl OperationTypeSerializer

    source

    pub fn new() -> Self

    Creates a new OperationTypeSerializer

    +

    Trait Implementations§

    source§

    impl Default for OperationTypeSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<OperationType> for OperationTypeSerializer

    source§

    fn serialize( &self, value: &OperationType, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Example:
    +) -> Result<(), SerializeError>
    Example:
    use std::collections::BTreeMap;
     use massa_models::{operation::{OperationTypeSerializer, OperationTypeDeserializer,OperationType}, address::Address, amount::Amount};
     use massa_signature::KeyPair;
    diff --git a/massa_models/operation/struct.OperationsDeserializer.html b/massa_models/operation/struct.OperationsDeserializer.html
    index d7d112a6ca6..9f1fd6eb074 100644
    --- a/massa_models/operation/struct.OperationsDeserializer.html
    +++ b/massa_models/operation/struct.OperationsDeserializer.html
    @@ -1,8 +1,8 @@
     OperationsDeserializer in massa_models::operation - Rust
    pub struct OperationsDeserializer {
    -    length_deserializer: U32VarIntDeserializer,
    +    length_deserializer: U32VarIntDeserializer,
         signed_op_deserializer: SecureShareDeserializer<Operation, OperationDeserializer>,
     }
    Expand description

    Deserializer for Operations

    -

    Fields§

    §length_deserializer: U32VarIntDeserializer§signed_op_deserializer: SecureShareDeserializer<Operation, OperationDeserializer>

    Implementations§

    source§

    impl OperationsDeserializer

    source

    pub fn new( +

    Fields§

    §length_deserializer: U32VarIntDeserializer§signed_op_deserializer: SecureShareDeserializer<Operation, OperationDeserializer>

    Implementations§

    source§

    impl OperationsDeserializer

    source

    pub fn new( max_operations_per_message: u32, max_datastore_value_length: u64, max_function_name_length: u16, @@ -12,7 +12,7 @@ max_op_datastore_value_length: u64, chain_id: u64 ) -> Self

    Creates a new OperationsDeserializer

    -

    Trait Implementations§

    source§

    impl Deserializer<Vec<SecureShare<Operation, OperationId>, Global>> for OperationsDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Trait Implementations§

    source§

    impl Deserializer<Vec<SecureShare<Operation, OperationId>, Global>> for OperationsDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], Vec<SecureShareOperation>, E>

    Example:
    diff --git a/massa_models/operation/struct.OperationsSerializer.html b/massa_models/operation/struct.OperationsSerializer.html index d7cad07428b..2ae4cc8a6a6 100644 --- a/massa_models/operation/struct.OperationsSerializer.html +++ b/massa_models/operation/struct.OperationsSerializer.html @@ -1,13 +1,13 @@ OperationsSerializer in massa_models::operation - Rust
    pub struct OperationsSerializer {
    -    u32_serializer: U32VarIntSerializer,
    +    u32_serializer: U32VarIntSerializer,
         signed_op_serializer: SecureShareSerializer,
     }
    Expand description

    Serializer for Operations

    -

    Fields§

    §u32_serializer: U32VarIntSerializer§signed_op_serializer: SecureShareSerializer

    Implementations§

    source§

    impl OperationsSerializer

    source

    pub const fn new() -> Self

    Creates a new OperationsSerializer

    -

    Trait Implementations§

    source§

    impl Clone for OperationsSerializer

    source§

    fn clone(&self) -> OperationsSerializer

    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 Default for OperationsSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<Vec<SecureShare<Operation, OperationId>, Global>> for OperationsSerializer

    Fields§

    §u32_serializer: U32VarIntSerializer§signed_op_serializer: SecureShareSerializer

    Implementations§

    source§

    impl OperationsSerializer

    source

    pub const fn new() -> Self

    Creates a new OperationsSerializer

    +

    Trait Implementations§

    source§

    impl Clone for OperationsSerializer

    source§

    fn clone(&self) -> OperationsSerializer

    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 Default for OperationsSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<Vec<SecureShare<Operation, OperationId>, Global>> for OperationsSerializer

    source§

    fn serialize( &self, value: &Vec<SecureShareOperation>, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Example:
    +) -> Result<(), SerializeError>
    Example:
    use massa_models::{operation::{SecureShareOperation, Operation, OperationType, OperationsSerializer, OperationSerializer}, secure_share::SecureShareContent, address::Address, amount::Amount};
     use massa_signature::KeyPair;
     use massa_serialization::Serializer;
    diff --git a/massa_models/rolls/struct.RollUpdate.html b/massa_models/rolls/struct.RollUpdate.html
    index 2d7cc123824..95cb3f1aef3 100644
    --- a/massa_models/rolls/struct.RollUpdate.html
    +++ b/massa_models/rolls/struct.RollUpdate.html
    @@ -8,7 +8,7 @@
     
    source

    pub fn compensate(&mut self) -> RollCompensation

    compensate a roll update, return compensation count

    source

    pub fn is_nil(&self) -> bool

    true if the update has no effect

    Trait Implementations§

    source§

    impl Clone for RollUpdate

    source§

    fn clone(&self) -> RollUpdate

    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 RollUpdate

    source§

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

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

    impl<'de> Deserialize<'de> for RollUpdate

    source§

    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 Deserializer<RollUpdate> for RollUpdateDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Deserializer<RollUpdate> for RollUpdateDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], RollUpdate, E>

    Example:
    @@ -26,11 +26,11 @@ assert_eq!(roll_update.roll_purchases, roll_update_deserialized.roll_purchases); assert_eq!(roll_update.roll_sales, roll_update_deserialized.roll_sales);
    source§

    impl Serialize for RollUpdate

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<RollUpdate> for RollUpdateSerializer

    source§

    fn serialize( + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<RollUpdate> for RollUpdateSerializer

    source§

    fn serialize( &self, value: &RollUpdate, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Example:
    +) -> Result<(), SerializeError>
    Example:
    use massa_models::rolls::{RollUpdate, RollUpdateSerializer};
     use massa_serialization::Serializer;
     
    diff --git a/massa_models/rolls/struct.RollUpdateDeserializer.html b/massa_models/rolls/struct.RollUpdateDeserializer.html
    index 6323026c1e0..c5048576cde 100644
    --- a/massa_models/rolls/struct.RollUpdateDeserializer.html
    +++ b/massa_models/rolls/struct.RollUpdateDeserializer.html
    @@ -1,8 +1,8 @@
     RollUpdateDeserializer in massa_models::rolls - Rust
    pub struct RollUpdateDeserializer {
    -    u64_deserializer: U64VarIntDeserializer,
    +    u64_deserializer: U64VarIntDeserializer,
     }
    Expand description

    Deserializer for RollUpdate

    -

    Fields§

    §u64_deserializer: U64VarIntDeserializer

    Implementations§

    source§

    impl RollUpdateDeserializer

    source

    pub fn new() -> Self

    Creates a new RollUpdateDeserializer

    -

    Trait Implementations§

    source§

    impl Default for RollUpdateDeserializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Deserializer<RollUpdate> for RollUpdateDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Fields§

    §u64_deserializer: U64VarIntDeserializer

    Implementations§

    source§

    impl RollUpdateDeserializer

    source

    pub fn new() -> Self

    Creates a new RollUpdateDeserializer

    +

    Trait Implementations§

    source§

    impl Default for RollUpdateDeserializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Deserializer<RollUpdate> for RollUpdateDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], RollUpdate, E>

    Example:
    diff --git a/massa_models/rolls/struct.RollUpdateSerializer.html b/massa_models/rolls/struct.RollUpdateSerializer.html index 3b29b5cd475..9c4d2fabdf6 100644 --- a/massa_models/rolls/struct.RollUpdateSerializer.html +++ b/massa_models/rolls/struct.RollUpdateSerializer.html @@ -1,12 +1,12 @@ RollUpdateSerializer in massa_models::rolls - Rust
    pub struct RollUpdateSerializer {
    -    u64_serializer: U64VarIntSerializer,
    +    u64_serializer: U64VarIntSerializer,
     }
    Expand description

    Serializer for RollUpdate

    -

    Fields§

    §u64_serializer: U64VarIntSerializer

    Implementations§

    source§

    impl RollUpdateSerializer

    source

    pub fn new() -> Self

    Creates a new RollUpdateSerializer

    -

    Trait Implementations§

    source§

    impl Default for RollUpdateSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<RollUpdate> for RollUpdateSerializer

    Fields§

    §u64_serializer: U64VarIntSerializer

    Implementations§

    source§

    impl RollUpdateSerializer

    source

    pub fn new() -> Self

    Creates a new RollUpdateSerializer

    +

    Trait Implementations§

    source§

    impl Default for RollUpdateSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<RollUpdate> for RollUpdateSerializer

    source§

    fn serialize( &self, value: &RollUpdate, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Example:
    +) -> Result<(), SerializeError>
    Example:
    use massa_models::rolls::{RollUpdate, RollUpdateSerializer};
     use massa_serialization::Serializer;
     
    diff --git a/massa_models/secure_share/struct.SecureShare.html b/massa_models/secure_share/struct.SecureShare.html
    index a67cad4cb33..3f77f4eb0b0 100644
    --- a/massa_models/secure_share/struct.SecureShare.html
    +++ b/massa_models/secure_share/struct.SecureShare.html
    @@ -56,10 +56,10 @@
         ID: Id + Debug,
    source§

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

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

    impl<'de, T, ID> Deserialize<'de> for SecureShare<T, ID>where T: Display + SecureShareContent + Deserialize<'de>, ID: Id + Deserialize<'de>,

    source§

    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<T, ID, Deser> Deserializer<SecureShare<T, ID>> for SecureShareDeserializer<T, Deser>where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl<T, ID, Deser> Deserializer<SecureShare<T, ID>> for SecureShareDeserializer<T, Deser>where T: Display + SecureShareContent, ID: Id, - Deser: Deserializer<T>,

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + Deser: Deserializer<T>,

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], SecureShare<T, ID>, E>

    @@ -93,13 +93,13 @@ sufficient, and should not be overridden without very good reason.
    source§

    impl<T, ID> Serialize for SecureShare<T, ID>where T: Display + SecureShareContent + Serialize, ID: Id + Serialize,

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl<T, ID> Serializer<SecureShare<T, ID>> for SecureShareSerializerwhere + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl<T, ID> Serializer<SecureShare<T, ID>> for SecureShareSerializerwhere T: Display + SecureShareContent, - ID: Id,

    source§

    fn serialize( + ID: Id,

    source§

    fn serialize( &self, value: &SecureShare<T, ID>, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl<T, ID> Eq for SecureShare<T, ID>where +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl<T, ID> Eq for SecureShare<T, ID>where T: Display + SecureShareContent + Eq, ID: Id + Eq,

    source§

    impl<T, ID> StructuralEq for SecureShare<T, ID>where T: Display + SecureShareContent, diff --git a/massa_models/secure_share/struct.SecureShareDeserializer.html b/massa_models/secure_share/struct.SecureShareDeserializer.html index 3114645cceb..31f7ed0bac2 100644 --- a/massa_models/secure_share/struct.SecureShareDeserializer.html +++ b/massa_models/secure_share/struct.SecureShareDeserializer.html @@ -1,6 +1,6 @@ SecureShareDeserializer in massa_models::secure_share - Rust
    pub struct SecureShareDeserializer<T, Deser>where
         T: Display + SecureShareContent,
    -    Deser: Deserializer<T>,{
    +    Deser: Deserializer<T>,{
         signature_deserializer: SignatureDeserializer,
         public_key_deserializer: PublicKeyDeserializer,
         content_deserializer: Deser,
    @@ -9,12 +9,12 @@
     }
    Expand description

    Deserializer for SecureShare structure

    Fields§

    §signature_deserializer: SignatureDeserializer§public_key_deserializer: PublicKeyDeserializer§content_deserializer: Deser§chain_id: u64§marker_t: PhantomData<T>

    Implementations§

    source§

    impl<T, Deser> SecureShareDeserializer<T, Deser>where T: Display + SecureShareContent, - Deser: Deserializer<T>,

    source

    pub const fn new(content_deserializer: Deser, chain_id: u64) -> Self

    Creates a new SecureShareDeserializer

    + Deser: Deserializer<T>,

    source

    pub const fn new(content_deserializer: Deser, chain_id: u64) -> Self

    Creates a new SecureShareDeserializer

    Arguments
    • content_deserializer - Deserializer for the content
    -
    source

    pub fn deserialize_with<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>, ID: Id, Ser: Serializer<T>>( +

    source

    pub fn deserialize_with<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>, ID: Id, Ser: Serializer<T>>( &self, content_serializer: &Ser, buffer: &'a [u8] @@ -30,10 +30,10 @@

    Arguments:
    Returns:

    A rest (data left over from deserialization), an instance of T, and the data enabling signature verification

    -

    Trait Implementations§

    source§

    impl<T, ID, Deser> Deserializer<SecureShare<T, ID>> for SecureShareDeserializer<T, Deser>where +

    Trait Implementations§

    source§

    impl<T, ID, Deser> Deserializer<SecureShare<T, ID>> for SecureShareDeserializer<T, Deser>where T: Display + SecureShareContent, ID: Id, - Deser: Deserializer<T>,

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + Deser: Deserializer<T>,

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], SecureShare<T, ID>, E>

    diff --git a/massa_models/secure_share/struct.SecureShareSerializer.html b/massa_models/secure_share/struct.SecureShareSerializer.html index 4bcdece6fef..e340be9b5d9 100644 --- a/massa_models/secure_share/struct.SecureShareSerializer.html +++ b/massa_models/secure_share/struct.SecureShareSerializer.html @@ -5,8 +5,8 @@ content_serializer: &Ser, value: &SecureShare<T, ID>, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>where - Ser: Serializer<T>, +) -> Result<(), SerializeError>where + Ser: Serializer<T>, T: Display + SecureShareContent, ID: Id,

    This method is used to serialize a SecureShare structure and use a custom serializer instead of using the serialized form of the content stored in serialized_data. @@ -17,13 +17,13 @@

    Arguments:
  • value: SecureShare structure to be serialized
  • buffer: buffer of serialized data to be extend
  • -

    Trait Implementations§

    source§

    impl Clone for SecureShareSerializer

    source§

    fn clone(&self) -> SecureShareSerializer

    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 Default for SecureShareSerializer

    source§

    fn default() -> SecureShareSerializer

    Returns the “default value” for a type. Read more
    source§

    impl<T, ID> Serializer<SecureShare<T, ID>> for SecureShareSerializerwhere +

    Trait Implementations§

    source§

    impl Clone for SecureShareSerializer

    source§

    fn clone(&self) -> SecureShareSerializer

    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 Default for SecureShareSerializer

    source§

    fn default() -> SecureShareSerializer

    Returns the “default value” for a type. Read more
    source§

    impl<T, ID> Serializer<SecureShare<T, ID>> for SecureShareSerializerwhere T: Display + SecureShareContent, - ID: Id,

    source§

    fn serialize( + ID: Id,

    source§

    fn serialize( &self, value: &SecureShare<T, ID>, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_models/secure_share/trait.SecureShareContent.html b/massa_models/secure_share/trait.SecureShareContent.html index 1f27e8e251e..4c0eea5df7a 100644 --- a/massa_models/secure_share/trait.SecureShareContent.html +++ b/massa_models/secure_share/trait.SecureShareContent.html @@ -12,7 +12,7 @@ content_hash: &Hash, signature: &Signature ) -> Result<(), ModelsError> { ... } - fn new_verifiable<Ser: Serializer<Self>, ID: Id>( + fn new_verifiable<Ser: Serializer<Self>, ID: Id>( self, content_serializer: Ser, keypair: &KeyPair, @@ -34,9 +34,9 @@ creator_public_key: &PublicKey, serialized_content: &[u8], buffer: &mut Vec<u8> - ) -> Result<(), SerializeError> { ... } - fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>, Deser: Deserializer<Self>, ID: Id>( - content_serializer: Option<&dyn Serializer<Self>>, + ) -> Result<(), SerializeError> { ... } + fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>, Deser: Deserializer<Self>, ID: Id>( + content_serializer: Option<&dyn Serializer<Self>>, signature_deserializer: &SignatureDeserializer, creator_public_key_deserializer: &PublicKeyDeserializer, content_deserializer: &Deser, @@ -55,7 +55,7 @@ content_hash: &Hash, signature: &Signature ) -> Result<(), ModelsError>

    verify signature

    -
    source

    fn new_verifiable<Ser: Serializer<Self>, ID: Id>( +

    source

    fn new_verifiable<Ser: Serializer<Self>, ID: Id>( self, content_serializer: Ser, keypair: &KeyPair, @@ -78,9 +78,9 @@ creator_public_key: &PublicKey, serialized_content: &[u8], buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize the secured structure

    -
    source

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>, Deser: Deserializer<Self>, ID: Id>( - content_serializer: Option<&dyn Serializer<Self>>, +) -> Result<(), SerializeError>

    Serialize the secured structure

    +
    source

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>, Deser: Deserializer<Self>, ID: Id>( + content_serializer: Option<&dyn Serializer<Self>>, signature_deserializer: &SignatureDeserializer, creator_public_key_deserializer: &PublicKeyDeserializer, content_deserializer: &Deser, diff --git a/massa_models/serialization/struct.BitVecDeserializer.html b/massa_models/serialization/struct.BitVecDeserializer.html index 65629eb0c93..1103a75c28d 100644 --- a/massa_models/serialization/struct.BitVecDeserializer.html +++ b/massa_models/serialization/struct.BitVecDeserializer.html @@ -1,11 +1,11 @@ BitVecDeserializer in massa_models::serialization - Rust
    pub struct BitVecDeserializer {
    -    u32_deserializer: U32VarIntDeserializer,
    +    u32_deserializer: U32VarIntDeserializer,
     }
    Expand description

    BitVec<u8> Deserializer

    -

    Fields§

    §u32_deserializer: U32VarIntDeserializer

    Implementations§

    source§

    impl BitVecDeserializer

    source

    pub fn new() -> BitVecDeserializer

    Create a new BitVec<u8> Deserializer

    -

    Trait Implementations§

    source§

    impl Clone for BitVecDeserializer

    source§

    fn clone(&self) -> BitVecDeserializer

    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 Default for BitVecDeserializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Deserializer<BitVec<u8, Lsb0>> for BitVecDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Fields§

    §u32_deserializer: U32VarIntDeserializer

    Implementations§

    source§

    impl BitVecDeserializer

    source

    pub fn new() -> BitVecDeserializer

    Create a new BitVec<u8> Deserializer

    +

    Trait Implementations§

    source§

    impl Clone for BitVecDeserializer

    source§

    fn clone(&self) -> BitVecDeserializer

    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 Default for BitVecDeserializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Deserializer<BitVec<u8, Lsb0>> for BitVecDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], BitVec<u8>, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], BitVec<u8>, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_models/serialization/struct.BitVecSerializer.html b/massa_models/serialization/struct.BitVecSerializer.html index 1efb4f105cd..bb8a9aa3cf5 100644 --- a/massa_models/serialization/struct.BitVecSerializer.html +++ b/massa_models/serialization/struct.BitVecSerializer.html @@ -1,12 +1,12 @@ BitVecSerializer in massa_models::serialization - Rust
    pub struct BitVecSerializer {
    -    u32_serializer: U32VarIntSerializer,
    +    u32_serializer: U32VarIntSerializer,
     }
    Expand description

    BitVec<u8> Serializer

    -

    Fields§

    §u32_serializer: U32VarIntSerializer

    Implementations§

    source§

    impl BitVecSerializer

    source

    pub fn new() -> BitVecSerializer

    Create a new BitVec<u8> Serializer

    -

    Trait Implementations§

    source§

    impl Clone for BitVecSerializer

    source§

    fn clone(&self) -> BitVecSerializer

    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 Default for BitVecSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<BitVec<u8, Lsb0>> for BitVecSerializer

    Fields§

    §u32_serializer: U32VarIntSerializer

    Implementations§

    source§

    impl BitVecSerializer

    source

    pub fn new() -> BitVecSerializer

    Create a new BitVec<u8> Serializer

    +

    Trait Implementations§

    source§

    impl Clone for BitVecSerializer

    source§

    fn clone(&self) -> BitVecSerializer

    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 Default for BitVecSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<BitVec<u8, Lsb0>> for BitVecSerializer

    source§

    fn serialize( &self, value: &BitVec<u8>, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_models/serialization/struct.IpAddrDeserializer.html b/massa_models/serialization/struct.IpAddrDeserializer.html index e2619b0c5e6..0ad46dd87cf 100644 --- a/massa_models/serialization/struct.IpAddrDeserializer.html +++ b/massa_models/serialization/struct.IpAddrDeserializer.html @@ -1,6 +1,6 @@ IpAddrDeserializer in massa_models::serialization - Rust
    pub struct IpAddrDeserializer;
    Expand description

    Deserializer for IpAddr

    Implementations§

    source§

    impl IpAddrDeserializer

    source

    pub const fn new() -> Self

    Creates a IpAddrDeserializer

    -

    Trait Implementations§

    source§

    impl Clone for IpAddrDeserializer

    source§

    fn clone(&self) -> IpAddrDeserializer

    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 Default for IpAddrDeserializer

    source§

    fn default() -> IpAddrDeserializer

    Returns the “default value” for a type. Read more
    source§

    impl Deserializer<IpAddr> for IpAddrDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Trait Implementations§

    source§

    impl Clone for IpAddrDeserializer

    source§

    fn clone(&self) -> IpAddrDeserializer

    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 Default for IpAddrDeserializer

    source§

    fn default() -> IpAddrDeserializer

    Returns the “default value” for a type. Read more
    source§

    impl Deserializer<IpAddr> for IpAddrDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], IpAddr, E>

    diff --git a/massa_models/serialization/struct.IpAddrSerializer.html b/massa_models/serialization/struct.IpAddrSerializer.html index 74bfb00fae1..11fca69b7b3 100644 --- a/massa_models/serialization/struct.IpAddrSerializer.html +++ b/massa_models/serialization/struct.IpAddrSerializer.html @@ -1,10 +1,10 @@ IpAddrSerializer in massa_models::serialization - Rust
    pub struct IpAddrSerializer;
    Expand description

    Serializer for IpAddr

    Implementations§

    source§

    impl IpAddrSerializer

    source

    pub const fn new() -> Self

    Creates a IpAddrSerializer

    -

    Trait Implementations§

    source§

    impl Clone for IpAddrSerializer

    source§

    fn clone(&self) -> IpAddrSerializer

    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 Default for IpAddrSerializer

    source§

    fn default() -> IpAddrSerializer

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<IpAddr> for IpAddrSerializer

    Trait Implementations§

    source§

    impl Clone for IpAddrSerializer

    source§

    fn clone(&self) -> IpAddrSerializer

    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 Default for IpAddrSerializer

    source§

    fn default() -> IpAddrSerializer

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<IpAddr> for IpAddrSerializer

    source§

    fn serialize( &self, value: &IpAddr, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    +) -> Result<(), SerializeError>
    use massa_models::{address::Address, amount::Amount, slot::Slot, serialization::IpAddrSerializer};
     use massa_serialization::Serializer;
     use std::str::FromStr;
    diff --git a/massa_models/serialization/struct.PreHashSetDeserializer.html b/massa_models/serialization/struct.PreHashSetDeserializer.html
    index d2fbb140c11..2f83ae7a905 100644
    --- a/massa_models/serialization/struct.PreHashSetDeserializer.html
    +++ b/massa_models/serialization/struct.PreHashSetDeserializer.html
    @@ -1,22 +1,22 @@
     PreHashSetDeserializer in massa_models::serialization - Rust
    pub struct PreHashSetDeserializer<T, ST>where
    -    ST: Deserializer<T> + Clone,{
    -    varint_u64_deserializer: U64VarIntDeserializer,
    +    ST: Deserializer<T> + Clone,{
    +    varint_u64_deserializer: U64VarIntDeserializer,
         data_deserializer: ST,
         phantom_t: PhantomData<T>,
     }
    Expand description

    Basic PreHashSet<_> deserializer

    -

    Fields§

    §varint_u64_deserializer: U64VarIntDeserializer§data_deserializer: ST§phantom_t: PhantomData<T>

    Implementations§

    source§

    impl<T, ST> PreHashSetDeserializer<T, ST>where - ST: Deserializer<T> + Clone,

    source

    pub const fn new( +

    Fields§

    §varint_u64_deserializer: U64VarIntDeserializer§data_deserializer: ST§phantom_t: PhantomData<T>

    Implementations§

    source§

    impl<T, ST> PreHashSetDeserializer<T, ST>where + ST: Deserializer<T> + Clone,

    source

    pub const fn new( data_deserializer: ST, min_length: Bound<u64>, max_length: Bound<u64> ) -> Self

    Creates a new PreHashSetDeserializer

    Trait Implementations§

    source§

    impl<T: Clone, ST> Clone for PreHashSetDeserializer<T, ST>where - ST: Deserializer<T> + Clone + Clone,

    source§

    fn clone(&self) -> PreHashSetDeserializer<T, ST>

    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<T, ST> Deserializer<HashSet<T, BuildHasherDefault<HashMapper<T>>>> for PreHashSetDeserializer<T, ST>where - ST: Deserializer<T> + Clone, - T: PreHashed + Eq + Hash,

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + ST: Deserializer<T> + Clone + Clone,

    source§

    fn clone(&self) -> PreHashSetDeserializer<T, ST>

    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<T, ST> Deserializer<HashSet<T, BuildHasherDefault<HashMapper<T>>>> for PreHashSetDeserializer<T, ST>where + ST: Deserializer<T> + Clone, + T: PreHashed + Eq + Hash,

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], PreHashSet<T>, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    §

    impl<T, ST> RefUnwindSafe for PreHashSetDeserializer<T, ST>where +) -> IResult<&'a [u8], PreHashSet<T>, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    §

    impl<T, ST> RefUnwindSafe for PreHashSetDeserializer<T, ST>where ST: RefUnwindSafe, T: RefUnwindSafe,

    §

    impl<T, ST> Send for PreHashSetDeserializer<T, ST>where ST: Send, diff --git a/massa_models/serialization/struct.PreHashSetSerializer.html b/massa_models/serialization/struct.PreHashSetSerializer.html index 1c60d507556..491d9af4650 100644 --- a/massa_models/serialization/struct.PreHashSetSerializer.html +++ b/massa_models/serialization/struct.PreHashSetSerializer.html @@ -1,19 +1,19 @@ PreHashSetSerializer in massa_models::serialization - Rust
    pub struct PreHashSetSerializer<T, ST>where
    -    ST: Serializer<T>,{
    -    len_serializer: U64VarIntSerializer,
    +    ST: Serializer<T>,{
    +    len_serializer: U64VarIntSerializer,
         data_serializer: ST,
         phantom_t: PhantomData<T>,
     }
    Expand description

    Basic PreHashSet<_> serializer

    -

    Fields§

    §len_serializer: U64VarIntSerializer§data_serializer: ST§phantom_t: PhantomData<T>

    Implementations§

    source§

    impl<T, ST> PreHashSetSerializer<T, ST>where - ST: Serializer<T>,

    source

    pub fn new(data_serializer: ST) -> Self

    Creates a new PreHashSetSerializer

    +

    Fields§

    §len_serializer: U64VarIntSerializer§data_serializer: ST§phantom_t: PhantomData<T>

    Implementations§

    source§

    impl<T, ST> PreHashSetSerializer<T, ST>where + ST: Serializer<T>,

    source

    pub fn new(data_serializer: ST) -> Self

    Creates a new PreHashSetSerializer

    Trait Implementations§

    source§

    impl<T: Clone, ST> Clone for PreHashSetSerializer<T, ST>where - ST: Serializer<T> + Clone,

    source§

    fn clone(&self) -> PreHashSetSerializer<T, ST>

    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<T, ST> Serializer<HashSet<T, BuildHasherDefault<HashMapper<T>>>> for PreHashSetSerializer<T, ST>where - ST: Serializer<T>, - T: PreHashed,

    source§

    fn serialize( + ST: Serializer<T> + Clone,

    source§

    fn clone(&self) -> PreHashSetSerializer<T, ST>

    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<T, ST> Serializer<HashSet<T, BuildHasherDefault<HashMapper<T>>>> for PreHashSetSerializer<T, ST>where + ST: Serializer<T>, + T: PreHashed,

    source§

    fn serialize( &self, value: &PreHashSet<T>, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    §

    impl<T, ST> RefUnwindSafe for PreHashSetSerializer<T, ST>where +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    §

    impl<T, ST> RefUnwindSafe for PreHashSetSerializer<T, ST>where ST: RefUnwindSafe, T: RefUnwindSafe,

    §

    impl<T, ST> Send for PreHashSetSerializer<T, ST>where ST: Send, diff --git a/massa_models/serialization/struct.StringDeserializer.html b/massa_models/serialization/struct.StringDeserializer.html index 82e40aecedd..a83e3dfa53e 100644 --- a/massa_models/serialization/struct.StringDeserializer.html +++ b/massa_models/serialization/struct.StringDeserializer.html @@ -1,24 +1,24 @@ StringDeserializer in massa_models::serialization - Rust
    pub struct StringDeserializer<DL, L>where
    -    DL: Deserializer<L>,
    +    DL: Deserializer<L>,
         L: TryFrom<usize> + ToUsize,{
         length_deserializer: DL,
         marker_l: PhantomData<L>,
     }
    Expand description

    Deserializer for String with generic deserializer for the size of the string

    Fields§

    §length_deserializer: DL§marker_l: PhantomData<L>

    Implementations§

    source§

    impl<DL, L> StringDeserializer<DL, L>where - DL: Deserializer<L>, + DL: Deserializer<L>, L: TryFrom<usize> + ToUsize,

    source

    pub const fn new(length_deserializer: DL) -> Self

    Creates a StringDeserializer.

    Arguments:
    • length_deserializer: Serializer for the length of the string (should be one of UXXVarIntSerializer)

    Trait Implementations§

    source§

    impl<DL, L> Clone for StringDeserializer<DL, L>where - DL: Deserializer<L> + Clone, - L: TryFrom<usize> + ToUsize + Clone,

    source§

    fn clone(&self) -> StringDeserializer<DL, L>

    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<DL, L> Deserializer<String> for StringDeserializer<DL, L>where - DL: Deserializer<L>, - L: TryFrom<usize> + ToUsize,

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + DL: Deserializer<L> + Clone, + L: TryFrom<usize> + ToUsize + Clone,

    source§

    fn clone(&self) -> StringDeserializer<DL, L>

    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<DL, L> Deserializer<String> for StringDeserializer<DL, L>where + DL: Deserializer<L>, + L: TryFrom<usize> + ToUsize,

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], String, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    §

    impl<DL, L> RefUnwindSafe for StringDeserializer<DL, L>where +) -> IResult<&'a [u8], String, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    §

    impl<DL, L> RefUnwindSafe for StringDeserializer<DL, L>where DL: RefUnwindSafe, L: RefUnwindSafe,

    §

    impl<DL, L> Send for StringDeserializer<DL, L>where DL: Send, diff --git a/massa_models/serialization/struct.StringSerializer.html b/massa_models/serialization/struct.StringSerializer.html index ba5f4d176f9..a8cf61e5d6b 100644 --- a/massa_models/serialization/struct.StringSerializer.html +++ b/massa_models/serialization/struct.StringSerializer.html @@ -1,25 +1,25 @@ StringSerializer in massa_models::serialization - Rust
    pub struct StringSerializer<SL, L>where
    -    SL: Serializer<L>,
    +    SL: Serializer<L>,
         L: TryFrom<usize>,{
         length_serializer: SL,
         marker_l: PhantomData<L>,
     }
    Expand description

    Serializer for String with generic serializer for the size of the string

    Fields§

    §length_serializer: SL§marker_l: PhantomData<L>

    Implementations§

    source§

    impl<SL, L> StringSerializer<SL, L>where - SL: Serializer<L>, + SL: Serializer<L>, L: TryFrom<usize>,

    source

    pub fn new(length_serializer: SL) -> Self

    Creates a StringSerializer.

    Arguments:
    • length_serializer: Serializer for the length of the string (should be one of UXXVarIntSerializer)

    Trait Implementations§

    source§

    impl<SL, L> Clone for StringSerializer<SL, L>where - SL: Serializer<L> + Clone, - L: TryFrom<usize> + Clone,

    source§

    fn clone(&self) -> StringSerializer<SL, L>

    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<SL, L> Serializer<String> for StringSerializer<SL, L>where - SL: Serializer<L>, - L: TryFrom<usize>,

    source§

    fn serialize( + SL: Serializer<L> + Clone, + L: TryFrom<usize> + Clone,

    source§

    fn clone(&self) -> StringSerializer<SL, L>

    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<SL, L> Serializer<String> for StringSerializer<SL, L>where + SL: Serializer<L>, + L: TryFrom<usize>,

    source§

    fn serialize( &self, value: &String, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    §

    impl<SL, L> RefUnwindSafe for StringSerializer<SL, L>where +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    §

    impl<SL, L> RefUnwindSafe for StringSerializer<SL, L>where L: RefUnwindSafe, SL: RefUnwindSafe,

    §

    impl<SL, L> Send for StringSerializer<SL, L>where L: Send, diff --git a/massa_models/serialization/struct.VecDeserializer.html b/massa_models/serialization/struct.VecDeserializer.html index 2913298ef2c..7f7c8f999a5 100644 --- a/massa_models/serialization/struct.VecDeserializer.html +++ b/massa_models/serialization/struct.VecDeserializer.html @@ -1,21 +1,21 @@ VecDeserializer in massa_models::serialization - Rust
    pub struct VecDeserializer<T, ST>where
    -    ST: Deserializer<T> + Clone,{
    -    varint_u64_deserializer: U64VarIntDeserializer,
    +    ST: Deserializer<T> + Clone,{
    +    varint_u64_deserializer: U64VarIntDeserializer,
         data_deserializer: ST,
         phantom_t: PhantomData<T>,
     }
    Expand description

    Basic Vec<_> deserializer

    -

    Fields§

    §varint_u64_deserializer: U64VarIntDeserializer§data_deserializer: ST§phantom_t: PhantomData<T>

    Implementations§

    source§

    impl<T, ST> VecDeserializer<T, ST>where - ST: Deserializer<T> + Clone,

    source

    pub const fn new( +

    Fields§

    §varint_u64_deserializer: U64VarIntDeserializer§data_deserializer: ST§phantom_t: PhantomData<T>

    Implementations§

    source§

    impl<T, ST> VecDeserializer<T, ST>where + ST: Deserializer<T> + Clone,

    source

    pub const fn new( data_deserializer: ST, min_length: Bound<u64>, max_length: Bound<u64> ) -> Self

    Creates a new VecDeserializer

    Trait Implementations§

    source§

    impl<T: Clone, ST> Clone for VecDeserializer<T, ST>where - ST: Deserializer<T> + Clone + Clone,

    source§

    fn clone(&self) -> VecDeserializer<T, ST>

    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<T, ST> Deserializer<Vec<T, Global>> for VecDeserializer<T, ST>where - ST: Deserializer<T> + Clone,

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + ST: Deserializer<T> + Clone + Clone,

    source§

    fn clone(&self) -> VecDeserializer<T, ST>

    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<T, ST> Deserializer<Vec<T, Global>> for VecDeserializer<T, ST>where + ST: Deserializer<T> + Clone,

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], Vec<T>, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    §

    impl<T, ST> RefUnwindSafe for VecDeserializer<T, ST>where +) -> IResult<&'a [u8], Vec<T>, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    §

    impl<T, ST> RefUnwindSafe for VecDeserializer<T, ST>where ST: RefUnwindSafe, T: RefUnwindSafe,

    §

    impl<T, ST> Send for VecDeserializer<T, ST>where ST: Send, diff --git a/massa_models/serialization/struct.VecSerializer.html b/massa_models/serialization/struct.VecSerializer.html index 1c3bd631640..a51515b2dd7 100644 --- a/massa_models/serialization/struct.VecSerializer.html +++ b/massa_models/serialization/struct.VecSerializer.html @@ -1,18 +1,18 @@ VecSerializer in massa_models::serialization - Rust
    pub struct VecSerializer<T, ST>where
    -    ST: Serializer<T>,{
    -    len_serializer: U64VarIntSerializer,
    +    ST: Serializer<T>,{
    +    len_serializer: U64VarIntSerializer,
         data_serializer: ST,
         phantom_t: PhantomData<T>,
     }
    Expand description

    Basic Vec<_> serializer

    -

    Fields§

    §len_serializer: U64VarIntSerializer§data_serializer: ST§phantom_t: PhantomData<T>

    Implementations§

    source§

    impl<T, ST> VecSerializer<T, ST>where - ST: Serializer<T>,

    source

    pub fn new(data_serializer: ST) -> Self

    Creates a new VecSerializer

    +

    Fields§

    §len_serializer: U64VarIntSerializer§data_serializer: ST§phantom_t: PhantomData<T>

    Implementations§

    source§

    impl<T, ST> VecSerializer<T, ST>where + ST: Serializer<T>,

    source

    pub fn new(data_serializer: ST) -> Self

    Creates a new VecSerializer

    Trait Implementations§

    source§

    impl<T: Clone, ST> Clone for VecSerializer<T, ST>where - ST: Serializer<T> + Clone,

    source§

    fn clone(&self) -> VecSerializer<T, ST>

    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<T, ST> Serializer<Vec<T, Global>> for VecSerializer<T, ST>where - ST: Serializer<T>,

    source§

    fn serialize( + ST: Serializer<T> + Clone,

    source§

    fn clone(&self) -> VecSerializer<T, ST>

    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<T, ST> Serializer<Vec<T, Global>> for VecSerializer<T, ST>where + ST: Serializer<T>,

    source§

    fn serialize( &self, value: &Vec<T>, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    §

    impl<T, ST> RefUnwindSafe for VecSerializer<T, ST>where +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    §

    impl<T, ST> RefUnwindSafe for VecSerializer<T, ST>where ST: RefUnwindSafe, T: RefUnwindSafe,

    §

    impl<T, ST> Send for VecSerializer<T, ST>where ST: Send, diff --git a/massa_models/serialization/struct.VecU8Deserializer.html b/massa_models/serialization/struct.VecU8Deserializer.html index 7847e7f1ff3..3c0a6224211 100644 --- a/massa_models/serialization/struct.VecU8Deserializer.html +++ b/massa_models/serialization/struct.VecU8Deserializer.html @@ -1,8 +1,8 @@ VecU8Deserializer in massa_models::serialization - Rust
    pub struct VecU8Deserializer {
    -    varint_u64_deserializer: U64VarIntDeserializer,
    +    varint_u64_deserializer: U64VarIntDeserializer,
     }
    Expand description

    Basic Vec<u8> deserializer

    -

    Fields§

    §varint_u64_deserializer: U64VarIntDeserializer

    Implementations§

    source§

    impl VecU8Deserializer

    source

    pub const fn new(min_length: Bound<u64>, max_length: Bound<u64>) -> Self

    Creates a new VecU8Deserializer

    -

    Trait Implementations§

    source§

    impl Clone for VecU8Deserializer

    source§

    fn clone(&self) -> VecU8Deserializer

    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 Deserializer<Vec<u8, Global>> for VecU8Deserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Fields§

    §varint_u64_deserializer: U64VarIntDeserializer

    Implementations§

    source§

    impl VecU8Deserializer

    source

    pub const fn new(min_length: Bound<u64>, max_length: Bound<u64>) -> Self

    Creates a new VecU8Deserializer

    +

    Trait Implementations§

    source§

    impl Clone for VecU8Deserializer

    source§

    fn clone(&self) -> VecU8Deserializer

    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 Deserializer<Vec<u8, Global>> for VecU8Deserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], Vec<u8>, E>

    diff --git a/massa_models/serialization/struct.VecU8Serializer.html b/massa_models/serialization/struct.VecU8Serializer.html index 2684bd862db..177c2386f16 100644 --- a/massa_models/serialization/struct.VecU8Serializer.html +++ b/massa_models/serialization/struct.VecU8Serializer.html @@ -1,12 +1,12 @@ VecU8Serializer in massa_models::serialization - Rust
    pub struct VecU8Serializer {
    -    len_serializer: U64VarIntSerializer,
    +    len_serializer: U64VarIntSerializer,
     }
    Expand description

    Basic Vec<u8> serializer

    -

    Fields§

    §len_serializer: U64VarIntSerializer

    Implementations§

    source§

    impl VecU8Serializer

    source

    pub fn new() -> Self

    Creates a new VecU8Serializer

    -

    Trait Implementations§

    source§

    impl Clone for VecU8Serializer

    source§

    fn clone(&self) -> VecU8Serializer

    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 Default for VecU8Serializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<Vec<u8, Global>> for VecU8Serializer

    Fields§

    §len_serializer: U64VarIntSerializer

    Implementations§

    source§

    impl VecU8Serializer

    source

    pub fn new() -> Self

    Creates a new VecU8Serializer

    +

    Trait Implementations§

    source§

    impl Clone for VecU8Serializer

    source§

    fn clone(&self) -> VecU8Serializer

    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 Default for VecU8Serializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<Vec<u8, Global>> for VecU8Serializer

    source§

    fn serialize( &self, value: &Vec<u8>, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    +) -> Result<(), SerializeError>

    use std::ops::Bound::Included;
     use massa_serialization::Serializer;
     use massa_models::serialization::VecU8Serializer;
    diff --git a/massa_models/slot/struct.Slot.html b/massa_models/slot/struct.Slot.html
    index e12a5dccea2..5fc00e1a96d 100644
    --- a/massa_models/slot/struct.Slot.html
    +++ b/massa_models/slot/struct.Slot.html
    @@ -52,7 +52,7 @@ 
    Example
    If the two slots are equal, the returned value is 0. If the passed slot is strictly higher than self, an error is returned

    Trait Implementations§

    source§

    impl Clone for Slot

    source§

    fn clone(&self) -> Slot

    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 Slot

    source§

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

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

    impl<'de> Deserialize<'de> for Slot

    source§

    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 Deserializer<Slot> for SlotDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Deserializer<Slot> for SlotDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], Slot, E>

    @@ -78,11 +78,11 @@
    Example
    sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd<Slot> for Slot

    source§

    fn partial_cmp(&self, other: &Self) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    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 more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
    source§

    impl Serialize for Slot

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<Slot> for SlotSerializer

    source§

    fn serialize( + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<Slot> for SlotSerializer

    source§

    fn serialize( &self, value: &Slot, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    +) -> Result<(), SerializeError>
    use std::ops::Bound::Included;
     use massa_serialization::Serializer;
     use massa_models::slot::{Slot, SlotSerializer};
    diff --git a/massa_models/slot/struct.SlotDeserializer.html b/massa_models/slot/struct.SlotDeserializer.html
    index 8a5e98be0b5..5626d68b5a1 100644
    --- a/massa_models/slot/struct.SlotDeserializer.html
    +++ b/massa_models/slot/struct.SlotDeserializer.html
    @@ -1,12 +1,12 @@
     SlotDeserializer in massa_models::slot - Rust
    pub struct SlotDeserializer {
    -    period_deserializer: U64VarIntDeserializer,
    +    period_deserializer: U64VarIntDeserializer,
         range_thread: (Bound<u8>, Bound<u8>),
     }
    Expand description

    Basic Slot Deserializer

    -

    Fields§

    §period_deserializer: U64VarIntDeserializer§range_thread: (Bound<u8>, Bound<u8>)

    Implementations§

    source§

    impl SlotDeserializer

    source

    pub const fn new( +

    Fields§

    §period_deserializer: U64VarIntDeserializer§range_thread: (Bound<u8>, Bound<u8>)

    Implementations§

    source§

    impl SlotDeserializer

    source

    pub const fn new( range_period: (Bound<u64>, Bound<u64>), range_thread: (Bound<u8>, Bound<u8>) ) -> Self

    Creates a SlotDeserializer

    -

    Trait Implementations§

    source§

    impl Clone for SlotDeserializer

    source§

    fn clone(&self) -> SlotDeserializer

    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 Deserializer<Slot> for SlotDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Trait Implementations§

    source§

    impl Clone for SlotDeserializer

    source§

    fn clone(&self) -> SlotDeserializer

    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 Deserializer<Slot> for SlotDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], Slot, E>

    diff --git a/massa_models/slot/struct.SlotSerializer.html b/massa_models/slot/struct.SlotSerializer.html index a58d5264876..06126727022 100644 --- a/massa_models/slot/struct.SlotSerializer.html +++ b/massa_models/slot/struct.SlotSerializer.html @@ -1,12 +1,12 @@ SlotSerializer in massa_models::slot - Rust
    pub struct SlotSerializer {
    -    u64_serializer: U64VarIntSerializer,
    +    u64_serializer: U64VarIntSerializer,
     }
    Expand description

    Basic serializer for Slot

    -

    Fields§

    §u64_serializer: U64VarIntSerializer

    Implementations§

    source§

    impl SlotSerializer

    source

    pub const fn new() -> Self

    Creates a SlotSerializer

    -

    Trait Implementations§

    source§

    impl Clone for SlotSerializer

    source§

    fn clone(&self) -> SlotSerializer

    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 Default for SlotSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<Slot> for SlotSerializer

    Fields§

    §u64_serializer: U64VarIntSerializer

    Implementations§

    source§

    impl SlotSerializer

    source

    pub const fn new() -> Self

    Creates a SlotSerializer

    +

    Trait Implementations§

    source§

    impl Clone for SlotSerializer

    source§

    fn clone(&self) -> SlotSerializer

    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 Default for SlotSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<Slot> for SlotSerializer

    source§

    fn serialize( &self, value: &Slot, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    +) -> Result<(), SerializeError>
    use std::ops::Bound::Included;
     use massa_serialization::Serializer;
     use massa_models::slot::{Slot, SlotSerializer};
    diff --git a/massa_models/streaming_step/enum.StreamingStep.html b/massa_models/streaming_step/enum.StreamingStep.html
    index 988806ea572..baed4113d9a 100644
    --- a/massa_models/streaming_step/enum.StreamingStep.html
    +++ b/massa_models/streaming_step/enum.StreamingStep.html
    @@ -8,20 +8,20 @@
     
    §

    Finished(Option<T>)

    Finished step, after all the information has been streamed

    Also can keep an indicator of the last content streamed

    Implementations§

    source§

    impl<T> StreamingStep<T>

    source

    pub fn finished(&self) -> bool

    Indicates if the current step if finished or not without caring about the values

    -

    Trait Implementations§

    source§

    impl<T: Clone> Clone for StreamingStep<T>

    source§

    fn clone(&self) -> StreamingStep<T>

    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<T: Debug> Debug for StreamingStep<T>

    source§

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

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

    impl<T, ST> Deserializer<StreamingStep<T>> for StreamingStepDeserializer<T, ST>where - ST: Deserializer<T>, - T: Clone,

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Trait Implementations§

    source§

    impl<T: Clone> Clone for StreamingStep<T>

    source§

    fn clone(&self) -> StreamingStep<T>

    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<T: Debug> Debug for StreamingStep<T>

    source§

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

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

    impl<T, ST> Deserializer<StreamingStep<T>> for StreamingStepDeserializer<T, ST>where + ST: Deserializer<T>, + T: Clone,

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], StreamingStep<T>, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl<T: PartialEq> PartialEq<StreamingStep<T>> for StreamingStep<T>

    source§

    fn eq(&self, other: &StreamingStep<T>) -> bool

    This method tests for self and other values to be equal, and is used +) -> IResult<&'a [u8], StreamingStep<T>, E>
    Deserialize a value T from a buffer of u8. Read more
    source§

    impl<T: PartialEq> PartialEq<StreamingStep<T>> for StreamingStep<T>

    source§

    fn eq(&self, other: &StreamingStep<T>) -> 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<T, ST> Serializer<StreamingStep<T>> for StreamingStepSerializer<T, ST>where - ST: Serializer<T>, - T: Debug,

    source§

    fn serialize( +sufficient, and should not be overridden without very good reason.

    source§

    impl<T, ST> Serializer<StreamingStep<T>> for StreamingStepSerializer<T, ST>where + ST: Serializer<T>, + T: Debug,

    source§

    fn serialize( &self, value: &StreamingStep<T>, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl<T: Copy> Copy for StreamingStep<T>

    source§

    impl<T: Eq> Eq for StreamingStep<T>

    source§

    impl<T> StructuralEq for StreamingStep<T>

    source§

    impl<T> StructuralPartialEq for StreamingStep<T>

    Auto Trait Implementations§

    §

    impl<T> RefUnwindSafe for StreamingStep<T>where +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl<T: Copy> Copy for StreamingStep<T>

    source§

    impl<T: Eq> Eq for StreamingStep<T>

    source§

    impl<T> StructuralEq for StreamingStep<T>

    source§

    impl<T> StructuralPartialEq for StreamingStep<T>

    Auto Trait Implementations§

    §

    impl<T> RefUnwindSafe for StreamingStep<T>where T: RefUnwindSafe,

    §

    impl<T> Send for StreamingStep<T>where T: Send,

    §

    impl<T> Sync for StreamingStep<T>where T: Sync,

    §

    impl<T> Unpin for StreamingStep<T>where diff --git a/massa_models/streaming_step/struct.StreamingStepDeserializer.html b/massa_models/streaming_step/struct.StreamingStepDeserializer.html index 445c11eb1d9..597a4e4c3d9 100644 --- a/massa_models/streaming_step/struct.StreamingStepDeserializer.html +++ b/massa_models/streaming_step/struct.StreamingStepDeserializer.html @@ -1,20 +1,20 @@ StreamingStepDeserializer in massa_models::streaming_step - Rust
    pub struct StreamingStepDeserializer<T, ST>where
    -    ST: Deserializer<T>,
    +    ST: Deserializer<T>,
         T: Clone,{
    -    u64_deser: U64VarIntDeserializer,
    +    u64_deser: U64VarIntDeserializer,
         data_deser: ST,
    -    opt_deser: OptionDeserializer<T, ST>,
    +    opt_deser: OptionDeserializer<T, ST>,
         phantom_t: PhantomData<T>,
     }
    Expand description

    StreamingStep deserializer

    -

    Fields§

    §u64_deser: U64VarIntDeserializer§data_deser: ST§opt_deser: OptionDeserializer<T, ST>§phantom_t: PhantomData<T>

    Implementations§

    source§

    impl<T, ST> StreamingStepDeserializer<T, ST>where - ST: Deserializer<T> + Clone, +

    Fields§

    §u64_deser: U64VarIntDeserializer§data_deser: ST§opt_deser: OptionDeserializer<T, ST>§phantom_t: PhantomData<T>

    Implementations§

    source§

    impl<T, ST> StreamingStepDeserializer<T, ST>where + ST: Deserializer<T> + Clone, T: Clone,

    source

    pub fn new(data_deser: ST) -> Self

    Creates a new StreamingStep deserializer

    -

    Trait Implementations§

    source§

    impl<T, ST> Deserializer<StreamingStep<T>> for StreamingStepDeserializer<T, ST>where - ST: Deserializer<T>, - T: Clone,

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Trait Implementations§

    source§

    impl<T, ST> Deserializer<StreamingStep<T>> for StreamingStepDeserializer<T, ST>where + ST: Deserializer<T>, + T: Clone,

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], StreamingStep<T>, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    §

    impl<T, ST> RefUnwindSafe for StreamingStepDeserializer<T, ST>where +) -> IResult<&'a [u8], StreamingStep<T>, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    §

    impl<T, ST> RefUnwindSafe for StreamingStepDeserializer<T, ST>where ST: RefUnwindSafe, T: RefUnwindSafe,

    §

    impl<T, ST> Send for StreamingStepDeserializer<T, ST>where ST: Send, diff --git a/massa_models/streaming_step/struct.StreamingStepSerializer.html b/massa_models/streaming_step/struct.StreamingStepSerializer.html index 1ece5e7697c..a8a1e8f0790 100644 --- a/massa_models/streaming_step/struct.StreamingStepSerializer.html +++ b/massa_models/streaming_step/struct.StreamingStepSerializer.html @@ -1,19 +1,19 @@ StreamingStepSerializer in massa_models::streaming_step - Rust
    pub struct StreamingStepSerializer<T, ST>where
    -    ST: Serializer<T>,{
    -    u64_serializer: U64VarIntSerializer,
    +    ST: Serializer<T>,{
    +    u64_serializer: U64VarIntSerializer,
         data_serializer: ST,
    -    option_serializer: OptionSerializer<T, ST>,
    +    option_serializer: OptionSerializer<T, ST>,
         phantom_t: PhantomData<T>,
     }
    Expand description

    StreamingStep serializer

    -

    Fields§

    §u64_serializer: U64VarIntSerializer§data_serializer: ST§option_serializer: OptionSerializer<T, ST>§phantom_t: PhantomData<T>

    Implementations§

    source§

    impl<T, ST> StreamingStepSerializer<T, ST>where - ST: Serializer<T> + Clone,

    source

    pub fn new(data_serializer: ST) -> Self

    Creates a new StreamingStep serializer

    -

    Trait Implementations§

    source§

    impl<T, ST> Serializer<StreamingStep<T>> for StreamingStepSerializer<T, ST>where - ST: Serializer<T>, - T: Debug,

    Fields§

    §u64_serializer: U64VarIntSerializer§data_serializer: ST§option_serializer: OptionSerializer<T, ST>§phantom_t: PhantomData<T>

    Implementations§

    source§

    impl<T, ST> StreamingStepSerializer<T, ST>where + ST: Serializer<T> + Clone,

    source

    pub fn new(data_serializer: ST) -> Self

    Creates a new StreamingStep serializer

    +

    Trait Implementations§

    source§

    impl<T, ST> Serializer<StreamingStep<T>> for StreamingStepSerializer<T, ST>where + ST: Serializer<T>, + T: Debug,

    source§

    fn serialize( &self, value: &StreamingStep<T>, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    §

    impl<T, ST> RefUnwindSafe for StreamingStepSerializer<T, ST>where +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    §

    impl<T, ST> RefUnwindSafe for StreamingStepSerializer<T, ST>where ST: RefUnwindSafe, T: RefUnwindSafe,

    §

    impl<T, ST> Send for StreamingStepSerializer<T, ST>where ST: Send, diff --git a/massa_models/version/struct.Version.html b/massa_models/version/struct.Version.html index 9ea4eb9cfc0..dce5ece355c 100644 --- a/massa_models/version/struct.Version.html +++ b/massa_models/version/struct.Version.html @@ -6,7 +6,7 @@

    Fields§

    §instance: [char; 4]

    ASCII uppercase alpha

    §major: u32§minor: u32

    Implementations§

    source§

    impl Version

    source

    pub fn is_compatible(&self, other: &Version) -> bool

    true if instance and major are the same

    Trait Implementations§

    source§

    impl Clone for Version

    source§

    fn clone(&self) -> Version

    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 Version

    source§

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

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

    impl<'de> Deserialize<'de> for Version

    source§

    fn deserialize<D>(deserializer: D) -> Result<Version, D::Error>where - D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Deserializer<Version> for VersionDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Deserializer<Version> for VersionDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], Version, E>

    @@ -29,11 +29,11 @@
    source§

    impl FromStr for Version

    §

    type Err = ModelsError

    The associated error which can be returned from parsing.
    source§

    fn from_str(str_version: &str) -> Result<Self, Self::Err>

    Parses a string s to return a value of this type. Read more
    source§

    impl PartialEq<Version> for Version

    source§

    fn eq(&self, other: &Version) -> 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 Serialize for Version

    source§

    fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>where - S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<Version> for VersionSerializer

    source§

    fn serialize( + S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<Version> for VersionSerializer

    source§

    fn serialize( &self, value: &Version, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    +) -> Result<(), SerializeError>

    use std::ops::Bound::Included;
     use std::str::FromStr;
     use massa_serialization::Serializer;
    diff --git a/massa_models/version/struct.VersionDeserializer.html b/massa_models/version/struct.VersionDeserializer.html
    index df70458c351..068b9265caa 100644
    --- a/massa_models/version/struct.VersionDeserializer.html
    +++ b/massa_models/version/struct.VersionDeserializer.html
    @@ -1,8 +1,8 @@
     VersionDeserializer in massa_models::version - Rust
    pub struct VersionDeserializer {
    -    u32_deserializer: U32VarIntDeserializer,
    +    u32_deserializer: U32VarIntDeserializer,
     }
    Expand description

    Serializer for Version

    -

    Fields§

    §u32_deserializer: U32VarIntDeserializer

    Implementations§

    source§

    impl VersionDeserializer

    source

    pub const fn new() -> Self

    Creates a VersionSerializer

    -

    Trait Implementations§

    source§

    impl Clone for VersionDeserializer

    source§

    fn clone(&self) -> VersionDeserializer

    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 Default for VersionDeserializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Deserializer<Version> for VersionDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Fields§

    §u32_deserializer: U32VarIntDeserializer

    Implementations§

    source§

    impl VersionDeserializer

    source

    pub const fn new() -> Self

    Creates a VersionSerializer

    +

    Trait Implementations§

    source§

    impl Clone for VersionDeserializer

    source§

    fn clone(&self) -> VersionDeserializer

    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 Default for VersionDeserializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Deserializer<Version> for VersionDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], Version, E>

    diff --git a/massa_models/version/struct.VersionSerializer.html b/massa_models/version/struct.VersionSerializer.html index f82761feccf..130eab24769 100644 --- a/massa_models/version/struct.VersionSerializer.html +++ b/massa_models/version/struct.VersionSerializer.html @@ -1,12 +1,12 @@ VersionSerializer in massa_models::version - Rust
    pub struct VersionSerializer {
    -    u32_serializer: U32VarIntSerializer,
    +    u32_serializer: U32VarIntSerializer,
     }
    Expand description

    Serializer for Version

    -

    Fields§

    §u32_serializer: U32VarIntSerializer

    Implementations§

    source§

    impl VersionSerializer

    source

    pub const fn new() -> Self

    Creates a VersionSerializer

    -

    Trait Implementations§

    source§

    impl Clone for VersionSerializer

    source§

    fn clone(&self) -> VersionSerializer

    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 Default for VersionSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<Version> for VersionSerializer

    Fields§

    §u32_serializer: U32VarIntSerializer

    Implementations§

    source§

    impl VersionSerializer

    source

    pub const fn new() -> Self

    Creates a VersionSerializer

    +

    Trait Implementations§

    source§

    impl Clone for VersionSerializer

    source§

    fn clone(&self) -> VersionSerializer

    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 Default for VersionSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<Version> for VersionSerializer

    source§

    fn serialize( &self, value: &Version, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    +) -> Result<(), SerializeError>
    use std::ops::Bound::Included;
     use std::str::FromStr;
     use massa_serialization::Serializer;
    diff --git a/massa_node/fn.launch.html b/massa_node/fn.launch.html
    index 11e74b35fcd..55824d5e7bc 100644
    --- a/massa_node/fn.launch.html
    +++ b/massa_node/fn.launch.html
    @@ -2,4 +2,4 @@
         args: &Args,
         node_wallet: Arc<RwLock<Wallet>>,
         sig_int_toggled: Arc<(Mutex<bool>, Condvar)>
    -) -> (MassaReceiver<ConsensusEvent>, Option<BootstrapManager>, Box<dyn ConsensusManager>, Box<dyn ExecutionManager>, Box<dyn SelectorManager>, Box<dyn PoolManager>, Box<dyn ProtocolManager>, Box<dyn FactoryManager>, StopHandle, StopHandle, StopHandle, Option<StopHandle>, Option<StopHandle>, MetricsStopper, MassaSurveyStopper)
    \ No newline at end of file +) -> (MassaReceiver<ConsensusEvent>, Option<BootstrapManager>, Box<dyn ConsensusManager>, Box<dyn ExecutionManager>, Box<dyn SelectorManager>, Box<dyn PoolManager>, Box<dyn ProtocolManager>, Box<dyn FactoryManager>, StopHandle, StopHandle, StopHandle, Option<StopHandle>, Option<StopHandle>, MetricsStopper, MassaSurveyStopper)
    \ No newline at end of file diff --git a/massa_node/settings/struct.ProtocolSettings.html b/massa_node/settings/struct.ProtocolSettings.html index 8d120c2531b..48836f9f080 100644 --- a/massa_node/settings/struct.ProtocolSettings.html +++ b/massa_node/settings/struct.ProtocolSettings.html @@ -35,8 +35,8 @@ pub message_timeout: MassaTime, pub tester_timeout: MassaTime, pub max_in_connections: usize, - pub peers_categories: HashMap<String, PeerCategoryInfo>, - pub default_category_info: PeerCategoryInfo, + pub peers_categories: HashMap<String, PeerCategoryInfo>, + pub default_category_info: PeerCategoryInfo, pub test_oldest_peer_cooldown: MassaTime, pub rate_limit: u64, }
    Expand description

    Protocol Configuration, read from toml user configuration file

    @@ -78,8 +78,8 @@
    §message_timeout: MassaTime

    Message timeout

    §tester_timeout: MassaTime

    Timeout for the tester operations

    §max_in_connections: usize

    Nb in connections

    -
    §peers_categories: HashMap<String, PeerCategoryInfo>

    Peers limits per category

    -
    §default_category_info: PeerCategoryInfo

    Limits for default category

    +
    §peers_categories: HashMap<String, PeerCategoryInfo>

    Peers limits per category

    +
    §default_category_info: PeerCategoryInfo

    Limits for default category

    §test_oldest_peer_cooldown: MassaTime

    Cooldown before testing again an old peer

    §rate_limit: u64

    Rate limitation to apply to the data stream (per second)

    Trait Implementations§

    source§

    impl Clone for ProtocolSettings

    source§

    fn clone(&self) -> ProtocolSettings

    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 ProtocolSettings

    source§

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

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

    impl<'de> Deserialize<'de> for ProtocolSettings

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where diff --git a/massa_node/struct.Managers.html b/massa_node/struct.Managers.html index ddadd755690..37eab30b24e 100644 --- a/massa_node/struct.Managers.html +++ b/massa_node/struct.Managers.html @@ -4,9 +4,9 @@ pub(crate) execution_manager: Box<dyn ExecutionManager>, pub(crate) selector_manager: Box<dyn SelectorManager>, pub(crate) pool_manager: Box<dyn PoolManager>, - pub(crate) protocol_manager: Box<dyn ProtocolManager>, + pub(crate) protocol_manager: Box<dyn ProtocolManager>, pub(crate) factory_manager: Box<dyn FactoryManager>, -}

    Fields§

    §bootstrap_manager: Option<BootstrapManager>§consensus_manager: Box<dyn ConsensusManager>§execution_manager: Box<dyn ExecutionManager>§selector_manager: Box<dyn SelectorManager>§pool_manager: Box<dyn PoolManager>§protocol_manager: Box<dyn ProtocolManager>§factory_manager: Box<dyn FactoryManager>

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +}

    Fields§

    §bootstrap_manager: Option<BootstrapManager>§consensus_manager: Box<dyn ConsensusManager>§execution_manager: Box<dyn ExecutionManager>§selector_manager: Box<dyn SelectorManager>§pool_manager: Box<dyn PoolManager>§protocol_manager: Box<dyn ProtocolManager>§factory_manager: Box<dyn FactoryManager>

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> ArchivePointee for T

    §

    type ArchivedMetadata = ()

    The archived version of the pointer metadata for this type.
    §

    fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata

    Converts some archived metadata to the pointer metadata for itself.
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere diff --git a/massa_pos_exports/cycle_info/struct.CycleHistoryDeserializer.html b/massa_pos_exports/cycle_info/struct.CycleHistoryDeserializer.html index 77b61cdc303..f7943ba3e0d 100644 --- a/massa_pos_exports/cycle_info/struct.CycleHistoryDeserializer.html +++ b/massa_pos_exports/cycle_info/struct.CycleHistoryDeserializer.html @@ -1,16 +1,16 @@ CycleHistoryDeserializer in massa_pos_exports::cycle_info - Rust
    pub struct CycleHistoryDeserializer {
    -    pub u64_deserializer: U64VarIntDeserializer,
    +    pub u64_deserializer: U64VarIntDeserializer,
         pub cycle_info_deserializer: CycleInfoDeserializer,
     }
    Expand description

    Deserializer for cycle history, useful when restarting from a snapshot

    -

    Fields§

    §u64_deserializer: U64VarIntDeserializer§cycle_info_deserializer: CycleInfoDeserializer

    Implementations§

    source§

    impl CycleHistoryDeserializer

    source

    pub fn new( +

    Fields§

    §u64_deserializer: U64VarIntDeserializer§cycle_info_deserializer: CycleInfoDeserializer

    Implementations§

    source§

    impl CycleHistoryDeserializer

    source

    pub fn new( max_cycle_history_length: u64, max_rolls_length: u64, max_production_stats_length: u64 ) -> Self

    Creates a new CycleHistory deserializer

    -

    Trait Implementations§

    source§

    impl Clone for CycleHistoryDeserializer

    source§

    fn clone(&self) -> CycleHistoryDeserializer

    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 Deserializer<Vec<CycleInfo, Global>> for CycleHistoryDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Trait Implementations§

    source§

    impl Clone for CycleHistoryDeserializer

    source§

    fn clone(&self) -> CycleHistoryDeserializer

    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 Deserializer<Vec<CycleInfo, Global>> for CycleHistoryDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], Vec<CycleInfo>, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], Vec<CycleInfo>, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_pos_exports/cycle_info/struct.CycleHistorySerializer.html b/massa_pos_exports/cycle_info/struct.CycleHistorySerializer.html index 0a1be746121..8852ec8fb72 100644 --- a/massa_pos_exports/cycle_info/struct.CycleHistorySerializer.html +++ b/massa_pos_exports/cycle_info/struct.CycleHistorySerializer.html @@ -1,13 +1,13 @@ CycleHistorySerializer in massa_pos_exports::cycle_info - Rust
    pub struct CycleHistorySerializer {
    -    pub u64_serializer: U64VarIntSerializer,
    +    pub u64_serializer: U64VarIntSerializer,
         pub cycle_info_serializer: CycleInfoSerializer,
     }
    Expand description

    Serializer for cycle history

    -

    Fields§

    §u64_serializer: U64VarIntSerializer§cycle_info_serializer: CycleInfoSerializer

    Implementations§

    source§

    impl CycleHistorySerializer

    source

    pub fn new() -> Self

    Creates a new CycleHistory serializer

    -

    Trait Implementations§

    source§

    impl Clone for CycleHistorySerializer

    source§

    fn clone(&self) -> CycleHistorySerializer

    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 Default for CycleHistorySerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<VecDeque<CycleInfo, Global>> for CycleHistorySerializer

    Fields§

    §u64_serializer: U64VarIntSerializer§cycle_info_serializer: CycleInfoSerializer

    Implementations§

    source§

    impl CycleHistorySerializer

    source

    pub fn new() -> Self

    Creates a new CycleHistory serializer

    +

    Trait Implementations§

    source§

    impl Clone for CycleHistorySerializer

    source§

    fn clone(&self) -> CycleHistorySerializer

    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 Default for CycleHistorySerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<VecDeque<CycleInfo, Global>> for CycleHistorySerializer

    source§

    fn serialize( &self, value: &VecDeque<CycleInfo>, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_pos_exports/cycle_info/struct.CycleInfo.html b/massa_pos_exports/cycle_info/struct.CycleInfo.html index 74645ef75fc..3fa55c207b9 100644 --- a/massa_pos_exports/cycle_info/struct.CycleInfo.html +++ b/massa_pos_exports/cycle_info/struct.CycleInfo.html @@ -20,16 +20,16 @@ rng_seed: BitVec<u8>, production_stats: PreHashMap<Address, ProductionStats> ) -> Self

    Create a new CycleInfo

    -

    Trait Implementations§

    source§

    impl Clone for CycleInfo

    source§

    fn clone(&self) -> CycleInfo

    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 CycleInfo

    source§

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

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

    impl Deserializer<CycleInfo> for CycleInfoDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Trait Implementations§

    source§

    impl Clone for CycleInfo

    source§

    fn clone(&self) -> CycleInfo

    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 CycleInfo

    source§

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

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

    impl Deserializer<CycleInfo> for CycleInfoDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], CycleInfo, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl PartialEq<CycleInfo> for CycleInfo

    source§

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

    This method tests for self and other values to be equal, and is used +) -> IResult<&'a [u8], CycleInfo, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl PartialEq<CycleInfo> for CycleInfo

    source§

    fn eq(&self, other: &CycleInfo) -> 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 Serializer<CycleInfo> for CycleInfoSerializer

    source§

    fn serialize( +sufficient, and should not be overridden without very good reason.

    source§

    impl Serializer<CycleInfo> for CycleInfoSerializer

    source§

    fn serialize( &self, value: &CycleInfo, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl Eq for CycleInfo

    source§

    impl StructuralEq for CycleInfo

    source§

    impl StructuralPartialEq for CycleInfo

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for CycleInfo

    §

    impl Send for CycleInfo

    §

    impl Sync for CycleInfo

    §

    impl Unpin for CycleInfo

    §

    impl UnwindSafe for CycleInfo

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl Eq for CycleInfo

    source§

    impl StructuralEq for CycleInfo

    source§

    impl StructuralPartialEq for CycleInfo

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for CycleInfo

    §

    impl Send for CycleInfo

    §

    impl Sync for CycleInfo

    §

    impl Unpin for CycleInfo

    §

    impl UnwindSafe for CycleInfo

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_pos_exports/cycle_info/struct.CycleInfoDeserializer.html b/massa_pos_exports/cycle_info/struct.CycleInfoDeserializer.html index 845c61af955..09c059223e8 100644 --- a/massa_pos_exports/cycle_info/struct.CycleInfoDeserializer.html +++ b/massa_pos_exports/cycle_info/struct.CycleInfoDeserializer.html @@ -1,18 +1,18 @@ CycleInfoDeserializer in massa_pos_exports::cycle_info - Rust
    pub struct CycleInfoDeserializer {
    -    pub u64_deser: U64VarIntDeserializer,
    +    pub u64_deser: U64VarIntDeserializer,
         pub rolls_deser: RollsDeserializer,
         pub bitvec_deser: BitVecDeserializer,
         pub production_stats_deser: ProductionStatsDeserializer,
    -    pub opt_hash_deser: OptionDeserializer<HashXof<HASH_XOF_SIZE_BYTES>, HashXofDeserializer>,
    +    pub opt_hash_deser: OptionDeserializer<HashXof<HASH_XOF_SIZE_BYTES>, HashXofDeserializer>,
     }
    Expand description

    Deserializer for CycleInfo

    -

    Fields§

    §u64_deser: U64VarIntDeserializer§rolls_deser: RollsDeserializer§bitvec_deser: BitVecDeserializer§production_stats_deser: ProductionStatsDeserializer§opt_hash_deser: OptionDeserializer<HashXof<HASH_XOF_SIZE_BYTES>, HashXofDeserializer>

    Implementations§

    source§

    impl CycleInfoDeserializer

    source

    pub fn new( +

    Fields§

    §u64_deser: U64VarIntDeserializer§rolls_deser: RollsDeserializer§bitvec_deser: BitVecDeserializer§production_stats_deser: ProductionStatsDeserializer§opt_hash_deser: OptionDeserializer<HashXof<HASH_XOF_SIZE_BYTES>, HashXofDeserializer>

    Implementations§

    source§

    impl CycleInfoDeserializer

    source

    pub fn new( max_rolls_length: u64, max_production_stats_length: u64 ) -> CycleInfoDeserializer

    Creates a new CycleInfo deserializer

    -

    Trait Implementations§

    source§

    impl Clone for CycleInfoDeserializer

    source§

    fn clone(&self) -> CycleInfoDeserializer

    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 Deserializer<CycleInfo> for CycleInfoDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Trait Implementations§

    source§

    impl Clone for CycleInfoDeserializer

    source§

    fn clone(&self) -> CycleInfoDeserializer

    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 Deserializer<CycleInfo> for CycleInfoDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], CycleInfo, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], CycleInfo, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for CycleInfoDeserializer

    §

    impl Send for CycleInfoDeserializer

    §

    impl Sync for CycleInfoDeserializer

    §

    impl Unpin for CycleInfoDeserializer

    §

    impl UnwindSafe for CycleInfoDeserializer

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_pos_exports/cycle_info/struct.CycleInfoSerializer.html b/massa_pos_exports/cycle_info/struct.CycleInfoSerializer.html index 0ed5fc32a1e..66ec4764a9b 100644 --- a/massa_pos_exports/cycle_info/struct.CycleInfoSerializer.html +++ b/massa_pos_exports/cycle_info/struct.CycleInfoSerializer.html @@ -1,16 +1,16 @@ CycleInfoSerializer in massa_pos_exports::cycle_info - Rust
    pub struct CycleInfoSerializer {
    -    pub u64_ser: U64VarIntSerializer,
    +    pub u64_ser: U64VarIntSerializer,
         pub bitvec_ser: BitVecSerializer,
         pub production_stats_ser: ProductionStatsSerializer,
         pub address_ser: AddressSerializer,
    -    pub opt_hash_ser: OptionSerializer<HashXof<HASH_XOF_SIZE_BYTES>, HashXofSerializer>,
    +    pub opt_hash_ser: OptionSerializer<HashXof<HASH_XOF_SIZE_BYTES>, HashXofSerializer>,
     }
    Expand description

    Serializer for CycleInfo

    -

    Fields§

    §u64_ser: U64VarIntSerializer§bitvec_ser: BitVecSerializer§production_stats_ser: ProductionStatsSerializer§address_ser: AddressSerializer§opt_hash_ser: OptionSerializer<HashXof<HASH_XOF_SIZE_BYTES>, HashXofSerializer>

    Implementations§

    source§

    impl CycleInfoSerializer

    source

    pub fn new() -> Self

    Creates a new CycleInfo serializer

    -

    Trait Implementations§

    source§

    impl Clone for CycleInfoSerializer

    source§

    fn clone(&self) -> CycleInfoSerializer

    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 Default for CycleInfoSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<CycleInfo> for CycleInfoSerializer

    Fields§

    §u64_ser: U64VarIntSerializer§bitvec_ser: BitVecSerializer§production_stats_ser: ProductionStatsSerializer§address_ser: AddressSerializer§opt_hash_ser: OptionSerializer<HashXof<HASH_XOF_SIZE_BYTES>, HashXofSerializer>

    Implementations§

    source§

    impl CycleInfoSerializer

    source

    pub fn new() -> Self

    Creates a new CycleInfo serializer

    +

    Trait Implementations§

    source§

    impl Clone for CycleInfoSerializer

    source§

    fn clone(&self) -> CycleInfoSerializer

    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 Default for CycleInfoSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<CycleInfo> for CycleInfoSerializer

    source§

    fn serialize( &self, value: &CycleInfo, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_pos_exports/cycle_info/struct.ProductionStatsDeserializer.html b/massa_pos_exports/cycle_info/struct.ProductionStatsDeserializer.html index 0dfd36e941b..10cefded8c1 100644 --- a/massa_pos_exports/cycle_info/struct.ProductionStatsDeserializer.html +++ b/massa_pos_exports/cycle_info/struct.ProductionStatsDeserializer.html @@ -1,13 +1,13 @@ ProductionStatsDeserializer in massa_pos_exports::cycle_info - Rust
    pub struct ProductionStatsDeserializer {
    -    length_deserializer: U64VarIntDeserializer,
    +    length_deserializer: U64VarIntDeserializer,
         pub address_deserializer: AddressDeserializer,
    -    pub u64_deserializer: U64VarIntDeserializer,
    +    pub u64_deserializer: U64VarIntDeserializer,
     }
    Expand description

    Deserializer for ProductionStats

    -

    Fields§

    §length_deserializer: U64VarIntDeserializer§address_deserializer: AddressDeserializer§u64_deserializer: U64VarIntDeserializer

    Implementations§

    source§

    impl ProductionStatsDeserializer

    source

    pub fn new(max_production_stats_length: u64) -> ProductionStatsDeserializer

    Creates a new ProductionStats deserializer

    -

    Trait Implementations§

    source§

    impl Clone for ProductionStatsDeserializer

    source§

    fn clone(&self) -> ProductionStatsDeserializer

    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 Deserializer<HashMap<Address, ProductionStats, BuildHasherDefault<HashMapper<Address>>>> for ProductionStatsDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Fields§

    §length_deserializer: U64VarIntDeserializer§address_deserializer: AddressDeserializer§u64_deserializer: U64VarIntDeserializer

    Implementations§

    source§

    impl ProductionStatsDeserializer

    source

    pub fn new(max_production_stats_length: u64) -> ProductionStatsDeserializer

    Creates a new ProductionStats deserializer

    +

    Trait Implementations§

    source§

    impl Clone for ProductionStatsDeserializer

    source§

    fn clone(&self) -> ProductionStatsDeserializer

    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 Deserializer<HashMap<Address, ProductionStats, BuildHasherDefault<HashMapper<Address>>>> for ProductionStatsDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], PreHashMap<Address, ProductionStats>, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], PreHashMap<Address, ProductionStats>, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_pos_exports/cycle_info/struct.ProductionStatsSerializer.html b/massa_pos_exports/cycle_info/struct.ProductionStatsSerializer.html index b4aafdc2387..3acd3cba97a 100644 --- a/massa_pos_exports/cycle_info/struct.ProductionStatsSerializer.html +++ b/massa_pos_exports/cycle_info/struct.ProductionStatsSerializer.html @@ -1,13 +1,13 @@ ProductionStatsSerializer in massa_pos_exports::cycle_info - Rust
    pub struct ProductionStatsSerializer {
    -    pub u64_ser: U64VarIntSerializer,
    +    pub u64_ser: U64VarIntSerializer,
         address_ser: AddressSerializer,
     }
    Expand description

    Serializer for ProductionStats

    -

    Fields§

    §u64_ser: U64VarIntSerializer§address_ser: AddressSerializer

    Implementations§

    source§

    impl ProductionStatsSerializer

    source

    pub fn new() -> Self

    Creates a new ProductionStats serializer

    -

    Trait Implementations§

    source§

    impl Clone for ProductionStatsSerializer

    source§

    fn clone(&self) -> ProductionStatsSerializer

    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 Default for ProductionStatsSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<HashMap<Address, ProductionStats, BuildHasherDefault<HashMapper<Address>>>> for ProductionStatsSerializer

    Fields§

    §u64_ser: U64VarIntSerializer§address_ser: AddressSerializer

    Implementations§

    source§

    impl ProductionStatsSerializer

    source

    pub fn new() -> Self

    Creates a new ProductionStats serializer

    +

    Trait Implementations§

    source§

    impl Clone for ProductionStatsSerializer

    source§

    fn clone(&self) -> ProductionStatsSerializer

    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 Default for ProductionStatsSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<HashMap<Address, ProductionStats, BuildHasherDefault<HashMapper<Address>>>> for ProductionStatsSerializer

    source§

    fn serialize( &self, value: &PreHashMap<Address, ProductionStats>, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_pos_exports/cycle_info/struct.RollsDeserializer.html b/massa_pos_exports/cycle_info/struct.RollsDeserializer.html index 16e845f5c77..52943fc37a5 100644 --- a/massa_pos_exports/cycle_info/struct.RollsDeserializer.html +++ b/massa_pos_exports/cycle_info/struct.RollsDeserializer.html @@ -1,13 +1,13 @@ RollsDeserializer in massa_pos_exports::cycle_info - Rust
    pub struct RollsDeserializer {
    -    length_deserializer: U64VarIntDeserializer,
    +    length_deserializer: U64VarIntDeserializer,
         pub address_deserializer: AddressDeserializer,
    -    pub u64_deserializer: U64VarIntDeserializer,
    +    pub u64_deserializer: U64VarIntDeserializer,
     }
    Expand description

    Deserializer for rolls

    -

    Fields§

    §length_deserializer: U64VarIntDeserializer§address_deserializer: AddressDeserializer§u64_deserializer: U64VarIntDeserializer

    Implementations§

    source§

    impl RollsDeserializer

    source

    pub fn new(max_rolls_length: u64) -> RollsDeserializer

    Creates a new rolls deserializer

    -

    Trait Implementations§

    source§

    impl Clone for RollsDeserializer

    source§

    fn clone(&self) -> RollsDeserializer

    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 Deserializer<Vec<(Address, u64), Global>> for RollsDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Fields§

    §length_deserializer: U64VarIntDeserializer§address_deserializer: AddressDeserializer§u64_deserializer: U64VarIntDeserializer

    Implementations§

    source§

    impl RollsDeserializer

    source

    pub fn new(max_rolls_length: u64) -> RollsDeserializer

    Creates a new rolls deserializer

    +

    Trait Implementations§

    source§

    impl Clone for RollsDeserializer

    source§

    fn clone(&self) -> RollsDeserializer

    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 Deserializer<Vec<(Address, u64), Global>> for RollsDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], Vec<(Address, u64)>, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], Vec<(Address, u64)>, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_pos_exports/deferred_credits/struct.CreditsDeserializer.html b/massa_pos_exports/deferred_credits/struct.CreditsDeserializer.html index dce22de8b7a..67f8e7fcd30 100644 --- a/massa_pos_exports/deferred_credits/struct.CreditsDeserializer.html +++ b/massa_pos_exports/deferred_credits/struct.CreditsDeserializer.html @@ -1,13 +1,13 @@ CreditsDeserializer in massa_pos_exports::deferred_credits - Rust
    pub struct CreditsDeserializer {
    -    u64_deserializer: U64VarIntDeserializer,
    +    u64_deserializer: U64VarIntDeserializer,
         pub address_deserializer: AddressDeserializer,
         pub amount_deserializer: AmountDeserializer,
     }
    Expand description

    Deserializer for a single credit

    -

    Fields§

    §u64_deserializer: U64VarIntDeserializer§address_deserializer: AddressDeserializer§amount_deserializer: AmountDeserializer

    Implementations§

    source§

    impl CreditsDeserializer

    source

    fn new(max_credits_length: u64) -> CreditsDeserializer

    Creates a new single credit deserializer

    -

    Trait Implementations§

    source§

    impl Clone for CreditsDeserializer

    source§

    fn clone(&self) -> CreditsDeserializer

    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 Deserializer<HashMap<Address, Amount, BuildHasherDefault<HashMapper<Address>>>> for CreditsDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Fields§

    §u64_deserializer: U64VarIntDeserializer§address_deserializer: AddressDeserializer§amount_deserializer: AmountDeserializer

    Implementations§

    source§

    impl CreditsDeserializer

    source

    fn new(max_credits_length: u64) -> CreditsDeserializer

    Creates a new single credit deserializer

    +

    Trait Implementations§

    source§

    impl Clone for CreditsDeserializer

    source§

    fn clone(&self) -> CreditsDeserializer

    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 Deserializer<HashMap<Address, Amount, BuildHasherDefault<HashMapper<Address>>>> for CreditsDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], PreHashMap<Address, Amount>, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], PreHashMap<Address, Amount>, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_pos_exports/deferred_credits/struct.CreditsSerializer.html b/massa_pos_exports/deferred_credits/struct.CreditsSerializer.html index cd43da666b4..132fc686722 100644 --- a/massa_pos_exports/deferred_credits/struct.CreditsSerializer.html +++ b/massa_pos_exports/deferred_credits/struct.CreditsSerializer.html @@ -1,14 +1,14 @@ CreditsSerializer in massa_pos_exports::deferred_credits - Rust
    pub struct CreditsSerializer {
    -    pub u64_ser: U64VarIntSerializer,
    +    pub u64_ser: U64VarIntSerializer,
         pub address_ser: AddressSerializer,
         pub amount_ser: AmountSerializer,
     }
    Expand description

    Serializer for Credits

    -

    Fields§

    §u64_ser: U64VarIntSerializer§address_ser: AddressSerializer§amount_ser: AmountSerializer

    Implementations§

    source§

    impl CreditsSerializer

    source

    pub fn new() -> Self

    Creates a new Credits serializer

    -

    Trait Implementations§

    source§

    impl Clone for CreditsSerializer

    source§

    fn clone(&self) -> CreditsSerializer

    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 Default for CreditsSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<HashMap<Address, Amount, BuildHasherDefault<HashMapper<Address>>>> for CreditsSerializer

    Fields§

    §u64_ser: U64VarIntSerializer§address_ser: AddressSerializer§amount_ser: AmountSerializer

    Implementations§

    source§

    impl CreditsSerializer

    source

    pub fn new() -> Self

    Creates a new Credits serializer

    +

    Trait Implementations§

    source§

    impl Clone for CreditsSerializer

    source§

    fn clone(&self) -> CreditsSerializer

    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 Default for CreditsSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<HashMap<Address, Amount, BuildHasherDefault<HashMapper<Address>>>> for CreditsSerializer

    source§

    fn serialize( &self, value: &PreHashMap<Address, Amount>, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_pos_exports/deferred_credits/struct.DeferredCredits.html b/massa_pos_exports/deferred_credits/struct.DeferredCredits.html index 52388bf9cbf..2780c4d3581 100644 --- a/massa_pos_exports/deferred_credits/struct.DeferredCredits.html +++ b/massa_pos_exports/deferred_credits/struct.DeferredCredits.html @@ -22,15 +22,15 @@ amount: Amount ) -> Option<Amount>

    Insert an element

    Trait Implementations§

    source§

    impl Clone for DeferredCredits

    source§

    fn clone(&self) -> DeferredCredits

    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 DeferredCredits

    source§

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

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

    impl Default for DeferredCredits

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for DeferredCredits

    source§

    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 Deserializer<DeferredCredits> for DeferredCreditsDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Deserializer<DeferredCredits> for DeferredCreditsDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], DeferredCredits, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl Serialize for DeferredCredits

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<DeferredCredits> for DeferredCreditsSerializer

    source§

    fn serialize( +) -> IResult<&'a [u8], DeferredCredits, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl Serialize for DeferredCredits

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<DeferredCredits> for DeferredCreditsSerializer

    source§

    fn serialize( &self, value: &DeferredCredits, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_pos_exports/deferred_credits/struct.DeferredCreditsDeserializer.html b/massa_pos_exports/deferred_credits/struct.DeferredCreditsDeserializer.html index 2d5ef6e1ac8..06fb140a24b 100644 --- a/massa_pos_exports/deferred_credits/struct.DeferredCreditsDeserializer.html +++ b/massa_pos_exports/deferred_credits/struct.DeferredCreditsDeserializer.html @@ -1,16 +1,16 @@ DeferredCreditsDeserializer in massa_pos_exports::deferred_credits - Rust
    pub struct DeferredCreditsDeserializer {
    -    pub u64_deserializer: U64VarIntDeserializer,
    +    pub u64_deserializer: U64VarIntDeserializer,
         pub slot_deserializer: SlotDeserializer,
         pub credit_deserializer: CreditsDeserializer,
     }
    Expand description

    Deserializer for DeferredCredits

    -

    Fields§

    §u64_deserializer: U64VarIntDeserializer§slot_deserializer: SlotDeserializer§credit_deserializer: CreditsDeserializer

    Implementations§

    source§

    impl DeferredCreditsDeserializer

    source

    pub fn new( +

    Fields§

    §u64_deserializer: U64VarIntDeserializer§slot_deserializer: SlotDeserializer§credit_deserializer: CreditsDeserializer

    Implementations§

    source§

    impl DeferredCreditsDeserializer

    source

    pub fn new( thread_count: u8, max_credits_length: u64 ) -> DeferredCreditsDeserializer

    Creates a new DeferredCredits deserializer

    -

    Trait Implementations§

    source§

    impl Clone for DeferredCreditsDeserializer

    source§

    fn clone(&self) -> DeferredCreditsDeserializer

    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 Deserializer<DeferredCredits> for DeferredCreditsDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Trait Implementations§

    source§

    impl Clone for DeferredCreditsDeserializer

    source§

    fn clone(&self) -> DeferredCreditsDeserializer

    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 Deserializer<DeferredCredits> for DeferredCreditsDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], DeferredCredits, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], DeferredCredits, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_pos_exports/deferred_credits/struct.DeferredCreditsSerializer.html b/massa_pos_exports/deferred_credits/struct.DeferredCreditsSerializer.html index e7181a5da0f..16adb52978a 100644 --- a/massa_pos_exports/deferred_credits/struct.DeferredCreditsSerializer.html +++ b/massa_pos_exports/deferred_credits/struct.DeferredCreditsSerializer.html @@ -1,14 +1,14 @@ DeferredCreditsSerializer in massa_pos_exports::deferred_credits - Rust
    pub struct DeferredCreditsSerializer {
         pub slot_ser: SlotSerializer,
    -    pub u64_ser: U64VarIntSerializer,
    +    pub u64_ser: U64VarIntSerializer,
         pub credits_ser: CreditsSerializer,
     }
    Expand description

    Serializer for DeferredCredits

    -

    Fields§

    §slot_ser: SlotSerializer§u64_ser: U64VarIntSerializer§credits_ser: CreditsSerializer

    Implementations§

    source§

    impl DeferredCreditsSerializer

    source

    pub fn new() -> Self

    Creates a new DeferredCredits serializer

    -

    Trait Implementations§

    source§

    impl Clone for DeferredCreditsSerializer

    source§

    fn clone(&self) -> DeferredCreditsSerializer

    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 Default for DeferredCreditsSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<DeferredCredits> for DeferredCreditsSerializer

    Fields§

    §slot_ser: SlotSerializer§u64_ser: U64VarIntSerializer§credits_ser: CreditsSerializer

    Implementations§

    source§

    impl DeferredCreditsSerializer

    source

    pub fn new() -> Self

    Creates a new DeferredCredits serializer

    +

    Trait Implementations§

    source§

    impl Clone for DeferredCreditsSerializer

    source§

    fn clone(&self) -> DeferredCreditsSerializer

    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 Default for DeferredCreditsSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<DeferredCredits> for DeferredCreditsSerializer

    source§

    fn serialize( &self, value: &DeferredCredits, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_pos_exports/pos_changes/struct.PoSChanges.html b/massa_pos_exports/pos_changes/struct.PoSChanges.html index 1e530df90c6..2e1434578c2 100644 --- a/massa_pos_exports/pos_changes/struct.PoSChanges.html +++ b/massa_pos_exports/pos_changes/struct.PoSChanges.html @@ -12,15 +12,15 @@

    Implementations§

    source§

    impl PoSChanges

    source

    pub fn is_empty(&self) -> bool

    Check if changes are empty

    source

    pub fn extend(&mut self, other: PoSChanges)

    Extends the current PosChanges with another one

    Trait Implementations§

    source§

    impl Clone for PoSChanges

    source§

    fn clone(&self) -> PoSChanges

    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 PoSChanges

    source§

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

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

    impl Default for PoSChanges

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for PoSChanges

    source§

    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 Deserializer<PoSChanges> for PoSChangesDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Deserializer<PoSChanges> for PoSChangesDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], PoSChanges, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl Serialize for PoSChanges

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<PoSChanges> for PoSChangesSerializer

    source§

    fn serialize( +) -> IResult<&'a [u8], PoSChanges, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl Serialize for PoSChanges

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<PoSChanges> for PoSChangesSerializer

    source§

    fn serialize( &self, value: &PoSChanges, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_pos_exports/pos_changes/struct.PoSChangesDeserializer.html b/massa_pos_exports/pos_changes/struct.PoSChangesDeserializer.html index 23fdbfe34e5..3a2fe5f9375 100644 --- a/massa_pos_exports/pos_changes/struct.PoSChangesDeserializer.html +++ b/massa_pos_exports/pos_changes/struct.PoSChangesDeserializer.html @@ -10,10 +10,10 @@ max_production_stats_length: u64, max_credits_length: u64 ) -> PoSChangesDeserializer

    Create a new PoSChanges Deserializer

    -

    Trait Implementations§

    source§

    impl Deserializer<PoSChanges> for PoSChangesDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Trait Implementations§

    source§

    impl Deserializer<PoSChanges> for PoSChangesDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], PoSChanges, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], PoSChanges, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_pos_exports/pos_changes/struct.PoSChangesSerializer.html b/massa_pos_exports/pos_changes/struct.PoSChangesSerializer.html index 74d071bad41..8450bd269bf 100644 --- a/massa_pos_exports/pos_changes/struct.PoSChangesSerializer.html +++ b/massa_pos_exports/pos_changes/struct.PoSChangesSerializer.html @@ -1,16 +1,16 @@ PoSChangesSerializer in massa_pos_exports::pos_changes - Rust
    pub struct PoSChangesSerializer {
         bit_vec_serializer: BitVecSerializer,
    -    u64_serializer: U64VarIntSerializer,
    +    u64_serializer: U64VarIntSerializer,
         production_stats_serializer: ProductionStatsSerializer,
         address_serializer: AddressSerializer,
         deferred_credits_serializer: DeferredCreditsSerializer,
     }
    Expand description

    PoSChanges Serializer

    -

    Fields§

    §bit_vec_serializer: BitVecSerializer§u64_serializer: U64VarIntSerializer§production_stats_serializer: ProductionStatsSerializer§address_serializer: AddressSerializer§deferred_credits_serializer: DeferredCreditsSerializer

    Implementations§

    source§

    impl PoSChangesSerializer

    source

    pub fn new() -> PoSChangesSerializer

    Create a new PoSChanges Serializer

    -

    Trait Implementations§

    source§

    impl Default for PoSChangesSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<PoSChanges> for PoSChangesSerializer

    Fields§

    §bit_vec_serializer: BitVecSerializer§u64_serializer: U64VarIntSerializer§production_stats_serializer: ProductionStatsSerializer§address_serializer: AddressSerializer§deferred_credits_serializer: DeferredCreditsSerializer

    Implementations§

    source§

    impl PoSChangesSerializer

    source

    pub fn new() -> PoSChangesSerializer

    Create a new PoSChanges Serializer

    +

    Trait Implementations§

    source§

    impl Default for PoSChangesSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<PoSChanges> for PoSChangesSerializer

    source§

    fn serialize( &self, value: &PoSChanges, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_pos_exports/struct.CreditsDeserializer.html b/massa_pos_exports/struct.CreditsDeserializer.html index 6037c9fa84f..af2cddd0429 100644 --- a/massa_pos_exports/struct.CreditsDeserializer.html +++ b/massa_pos_exports/struct.CreditsDeserializer.html @@ -1,13 +1,13 @@ CreditsDeserializer in massa_pos_exports - Rust
    pub struct CreditsDeserializer {
    -    u64_deserializer: U64VarIntDeserializer,
    +    u64_deserializer: U64VarIntDeserializer,
         pub address_deserializer: AddressDeserializer,
         pub amount_deserializer: AmountDeserializer,
     }
    Expand description

    Deserializer for a single credit

    -

    Fields§

    §u64_deserializer: U64VarIntDeserializer§address_deserializer: AddressDeserializer§amount_deserializer: AmountDeserializer

    Implementations§

    source§

    impl CreditsDeserializer

    source

    fn new(max_credits_length: u64) -> CreditsDeserializer

    Creates a new single credit deserializer

    -

    Trait Implementations§

    source§

    impl Clone for CreditsDeserializer

    source§

    fn clone(&self) -> CreditsDeserializer

    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 Deserializer<HashMap<Address, Amount, BuildHasherDefault<HashMapper<Address>>>> for CreditsDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Fields§

    §u64_deserializer: U64VarIntDeserializer§address_deserializer: AddressDeserializer§amount_deserializer: AmountDeserializer

    Implementations§

    source§

    impl CreditsDeserializer

    source

    fn new(max_credits_length: u64) -> CreditsDeserializer

    Creates a new single credit deserializer

    +

    Trait Implementations§

    source§

    impl Clone for CreditsDeserializer

    source§

    fn clone(&self) -> CreditsDeserializer

    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 Deserializer<HashMap<Address, Amount, BuildHasherDefault<HashMapper<Address>>>> for CreditsDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], PreHashMap<Address, Amount>, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], PreHashMap<Address, Amount>, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_pos_exports/struct.CreditsSerializer.html b/massa_pos_exports/struct.CreditsSerializer.html index be204723162..821da404e6d 100644 --- a/massa_pos_exports/struct.CreditsSerializer.html +++ b/massa_pos_exports/struct.CreditsSerializer.html @@ -1,14 +1,14 @@ CreditsSerializer in massa_pos_exports - Rust
    pub struct CreditsSerializer {
    -    pub u64_ser: U64VarIntSerializer,
    +    pub u64_ser: U64VarIntSerializer,
         pub address_ser: AddressSerializer,
         pub amount_ser: AmountSerializer,
     }
    Expand description

    Serializer for Credits

    -

    Fields§

    §u64_ser: U64VarIntSerializer§address_ser: AddressSerializer§amount_ser: AmountSerializer

    Implementations§

    source§

    impl CreditsSerializer

    source

    pub fn new() -> Self

    Creates a new Credits serializer

    -

    Trait Implementations§

    source§

    impl Clone for CreditsSerializer

    source§

    fn clone(&self) -> CreditsSerializer

    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 Default for CreditsSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<HashMap<Address, Amount, BuildHasherDefault<HashMapper<Address>>>> for CreditsSerializer

    Fields§

    §u64_ser: U64VarIntSerializer§address_ser: AddressSerializer§amount_ser: AmountSerializer

    Implementations§

    source§

    impl CreditsSerializer

    source

    pub fn new() -> Self

    Creates a new Credits serializer

    +

    Trait Implementations§

    source§

    impl Clone for CreditsSerializer

    source§

    fn clone(&self) -> CreditsSerializer

    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 Default for CreditsSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<HashMap<Address, Amount, BuildHasherDefault<HashMapper<Address>>>> for CreditsSerializer

    source§

    fn serialize( &self, value: &PreHashMap<Address, Amount>, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_pos_exports/struct.CycleHistoryDeserializer.html b/massa_pos_exports/struct.CycleHistoryDeserializer.html index 558f2277b3e..a3b91ebd2c4 100644 --- a/massa_pos_exports/struct.CycleHistoryDeserializer.html +++ b/massa_pos_exports/struct.CycleHistoryDeserializer.html @@ -1,16 +1,16 @@ CycleHistoryDeserializer in massa_pos_exports - Rust
    pub struct CycleHistoryDeserializer {
    -    pub u64_deserializer: U64VarIntDeserializer,
    +    pub u64_deserializer: U64VarIntDeserializer,
         pub cycle_info_deserializer: CycleInfoDeserializer,
     }
    Expand description

    Deserializer for cycle history, useful when restarting from a snapshot

    -

    Fields§

    §u64_deserializer: U64VarIntDeserializer§cycle_info_deserializer: CycleInfoDeserializer

    Implementations§

    source§

    impl CycleHistoryDeserializer

    source

    pub fn new( +

    Fields§

    §u64_deserializer: U64VarIntDeserializer§cycle_info_deserializer: CycleInfoDeserializer

    Implementations§

    source§

    impl CycleHistoryDeserializer

    source

    pub fn new( max_cycle_history_length: u64, max_rolls_length: u64, max_production_stats_length: u64 ) -> Self

    Creates a new CycleHistory deserializer

    -

    Trait Implementations§

    source§

    impl Clone for CycleHistoryDeserializer

    source§

    fn clone(&self) -> CycleHistoryDeserializer

    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 Deserializer<Vec<CycleInfo, Global>> for CycleHistoryDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Trait Implementations§

    source§

    impl Clone for CycleHistoryDeserializer

    source§

    fn clone(&self) -> CycleHistoryDeserializer

    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 Deserializer<Vec<CycleInfo, Global>> for CycleHistoryDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], Vec<CycleInfo>, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], Vec<CycleInfo>, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_pos_exports/struct.CycleHistorySerializer.html b/massa_pos_exports/struct.CycleHistorySerializer.html index f4167f3b032..b060ec060ca 100644 --- a/massa_pos_exports/struct.CycleHistorySerializer.html +++ b/massa_pos_exports/struct.CycleHistorySerializer.html @@ -1,13 +1,13 @@ CycleHistorySerializer in massa_pos_exports - Rust
    pub struct CycleHistorySerializer {
    -    pub u64_serializer: U64VarIntSerializer,
    +    pub u64_serializer: U64VarIntSerializer,
         pub cycle_info_serializer: CycleInfoSerializer,
     }
    Expand description

    Serializer for cycle history

    -

    Fields§

    §u64_serializer: U64VarIntSerializer§cycle_info_serializer: CycleInfoSerializer

    Implementations§

    source§

    impl CycleHistorySerializer

    source

    pub fn new() -> Self

    Creates a new CycleHistory serializer

    -

    Trait Implementations§

    source§

    impl Clone for CycleHistorySerializer

    source§

    fn clone(&self) -> CycleHistorySerializer

    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 Default for CycleHistorySerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<VecDeque<CycleInfo, Global>> for CycleHistorySerializer

    Fields§

    §u64_serializer: U64VarIntSerializer§cycle_info_serializer: CycleInfoSerializer

    Implementations§

    source§

    impl CycleHistorySerializer

    source

    pub fn new() -> Self

    Creates a new CycleHistory serializer

    +

    Trait Implementations§

    source§

    impl Clone for CycleHistorySerializer

    source§

    fn clone(&self) -> CycleHistorySerializer

    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 Default for CycleHistorySerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<VecDeque<CycleInfo, Global>> for CycleHistorySerializer

    source§

    fn serialize( &self, value: &VecDeque<CycleInfo>, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_pos_exports/struct.CycleInfo.html b/massa_pos_exports/struct.CycleInfo.html index 4147a30699b..b6a8a28f101 100644 --- a/massa_pos_exports/struct.CycleInfo.html +++ b/massa_pos_exports/struct.CycleInfo.html @@ -20,16 +20,16 @@ rng_seed: BitVec<u8>, production_stats: PreHashMap<Address, ProductionStats> ) -> Self

    Create a new CycleInfo

    -

    Trait Implementations§

    source§

    impl Clone for CycleInfo

    source§

    fn clone(&self) -> CycleInfo

    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 CycleInfo

    source§

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

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

    impl Deserializer<CycleInfo> for CycleInfoDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Trait Implementations§

    source§

    impl Clone for CycleInfo

    source§

    fn clone(&self) -> CycleInfo

    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 CycleInfo

    source§

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

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

    impl Deserializer<CycleInfo> for CycleInfoDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], CycleInfo, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl PartialEq<CycleInfo> for CycleInfo

    source§

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

    This method tests for self and other values to be equal, and is used +) -> IResult<&'a [u8], CycleInfo, E>
    Deserialize a value T from a buffer of u8. Read more
    source§

    impl PartialEq<CycleInfo> for CycleInfo

    source§

    fn eq(&self, other: &CycleInfo) -> 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 Serializer<CycleInfo> for CycleInfoSerializer

    source§

    fn serialize( +sufficient, and should not be overridden without very good reason.

    source§

    impl Serializer<CycleInfo> for CycleInfoSerializer

    source§

    fn serialize( &self, value: &CycleInfo, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl Eq for CycleInfo

    source§

    impl StructuralEq for CycleInfo

    source§

    impl StructuralPartialEq for CycleInfo

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl Eq for CycleInfo

    source§

    impl StructuralEq for CycleInfo

    source§

    impl StructuralPartialEq for CycleInfo

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_pos_exports/struct.CycleInfoDeserializer.html b/massa_pos_exports/struct.CycleInfoDeserializer.html index c42e1e0c200..762b73957ee 100644 --- a/massa_pos_exports/struct.CycleInfoDeserializer.html +++ b/massa_pos_exports/struct.CycleInfoDeserializer.html @@ -1,18 +1,18 @@ CycleInfoDeserializer in massa_pos_exports - Rust
    pub struct CycleInfoDeserializer {
    -    pub u64_deser: U64VarIntDeserializer,
    +    pub u64_deser: U64VarIntDeserializer,
         pub rolls_deser: RollsDeserializer,
         pub bitvec_deser: BitVecDeserializer,
         pub production_stats_deser: ProductionStatsDeserializer,
    -    pub opt_hash_deser: OptionDeserializer<HashXof<HASH_XOF_SIZE_BYTES>, HashXofDeserializer>,
    +    pub opt_hash_deser: OptionDeserializer<HashXof<HASH_XOF_SIZE_BYTES>, HashXofDeserializer>,
     }
    Expand description

    Deserializer for CycleInfo

    -

    Fields§

    §u64_deser: U64VarIntDeserializer§rolls_deser: RollsDeserializer§bitvec_deser: BitVecDeserializer§production_stats_deser: ProductionStatsDeserializer§opt_hash_deser: OptionDeserializer<HashXof<HASH_XOF_SIZE_BYTES>, HashXofDeserializer>

    Implementations§

    source§

    impl CycleInfoDeserializer

    source

    pub fn new( +

    Fields§

    §u64_deser: U64VarIntDeserializer§rolls_deser: RollsDeserializer§bitvec_deser: BitVecDeserializer§production_stats_deser: ProductionStatsDeserializer§opt_hash_deser: OptionDeserializer<HashXof<HASH_XOF_SIZE_BYTES>, HashXofDeserializer>

    Implementations§

    source§

    impl CycleInfoDeserializer

    source

    pub fn new( max_rolls_length: u64, max_production_stats_length: u64 ) -> CycleInfoDeserializer

    Creates a new CycleInfo deserializer

    -

    Trait Implementations§

    source§

    impl Clone for CycleInfoDeserializer

    source§

    fn clone(&self) -> CycleInfoDeserializer

    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 Deserializer<CycleInfo> for CycleInfoDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Trait Implementations§

    source§

    impl Clone for CycleInfoDeserializer

    source§

    fn clone(&self) -> CycleInfoDeserializer

    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 Deserializer<CycleInfo> for CycleInfoDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], CycleInfo, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], CycleInfo, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_pos_exports/struct.CycleInfoSerializer.html b/massa_pos_exports/struct.CycleInfoSerializer.html index d9ec6d10586..de89bde8c29 100644 --- a/massa_pos_exports/struct.CycleInfoSerializer.html +++ b/massa_pos_exports/struct.CycleInfoSerializer.html @@ -1,16 +1,16 @@ CycleInfoSerializer in massa_pos_exports - Rust
    pub struct CycleInfoSerializer {
    -    pub u64_ser: U64VarIntSerializer,
    +    pub u64_ser: U64VarIntSerializer,
         pub bitvec_ser: BitVecSerializer,
         pub production_stats_ser: ProductionStatsSerializer,
         pub address_ser: AddressSerializer,
    -    pub opt_hash_ser: OptionSerializer<HashXof<HASH_XOF_SIZE_BYTES>, HashXofSerializer>,
    +    pub opt_hash_ser: OptionSerializer<HashXof<HASH_XOF_SIZE_BYTES>, HashXofSerializer>,
     }
    Expand description

    Serializer for CycleInfo

    -

    Fields§

    §u64_ser: U64VarIntSerializer§bitvec_ser: BitVecSerializer§production_stats_ser: ProductionStatsSerializer§address_ser: AddressSerializer§opt_hash_ser: OptionSerializer<HashXof<HASH_XOF_SIZE_BYTES>, HashXofSerializer>

    Implementations§

    source§

    impl CycleInfoSerializer

    source

    pub fn new() -> Self

    Creates a new CycleInfo serializer

    -

    Trait Implementations§

    source§

    impl Clone for CycleInfoSerializer

    source§

    fn clone(&self) -> CycleInfoSerializer

    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 Default for CycleInfoSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<CycleInfo> for CycleInfoSerializer

    Fields§

    §u64_ser: U64VarIntSerializer§bitvec_ser: BitVecSerializer§production_stats_ser: ProductionStatsSerializer§address_ser: AddressSerializer§opt_hash_ser: OptionSerializer<HashXof<HASH_XOF_SIZE_BYTES>, HashXofSerializer>

    Implementations§

    source§

    impl CycleInfoSerializer

    source

    pub fn new() -> Self

    Creates a new CycleInfo serializer

    +

    Trait Implementations§

    source§

    impl Clone for CycleInfoSerializer

    source§

    fn clone(&self) -> CycleInfoSerializer

    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 Default for CycleInfoSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<CycleInfo> for CycleInfoSerializer

    source§

    fn serialize( &self, value: &CycleInfo, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_pos_exports/struct.DeferredCredits.html b/massa_pos_exports/struct.DeferredCredits.html index 552a318693b..23751c3a415 100644 --- a/massa_pos_exports/struct.DeferredCredits.html +++ b/massa_pos_exports/struct.DeferredCredits.html @@ -22,15 +22,15 @@ amount: Amount ) -> Option<Amount>

    Insert an element

    Trait Implementations§

    source§

    impl Clone for DeferredCredits

    source§

    fn clone(&self) -> DeferredCredits

    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 DeferredCredits

    source§

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

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

    impl Default for DeferredCredits

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for DeferredCredits

    source§

    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 Deserializer<DeferredCredits> for DeferredCreditsDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Deserializer<DeferredCredits> for DeferredCreditsDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], DeferredCredits, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl Serialize for DeferredCredits

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<DeferredCredits> for DeferredCreditsSerializer

    source§

    fn serialize( +) -> IResult<&'a [u8], DeferredCredits, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl Serialize for DeferredCredits

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<DeferredCredits> for DeferredCreditsSerializer

    source§

    fn serialize( &self, value: &DeferredCredits, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_pos_exports/struct.DeferredCreditsDeserializer.html b/massa_pos_exports/struct.DeferredCreditsDeserializer.html index 24f46551c8a..fa067d6d8bf 100644 --- a/massa_pos_exports/struct.DeferredCreditsDeserializer.html +++ b/massa_pos_exports/struct.DeferredCreditsDeserializer.html @@ -1,16 +1,16 @@ DeferredCreditsDeserializer in massa_pos_exports - Rust
    pub struct DeferredCreditsDeserializer {
    -    pub u64_deserializer: U64VarIntDeserializer,
    +    pub u64_deserializer: U64VarIntDeserializer,
         pub slot_deserializer: SlotDeserializer,
         pub credit_deserializer: CreditsDeserializer,
     }
    Expand description

    Deserializer for DeferredCredits

    -

    Fields§

    §u64_deserializer: U64VarIntDeserializer§slot_deserializer: SlotDeserializer§credit_deserializer: CreditsDeserializer

    Implementations§

    source§

    impl DeferredCreditsDeserializer

    source

    pub fn new( +

    Fields§

    §u64_deserializer: U64VarIntDeserializer§slot_deserializer: SlotDeserializer§credit_deserializer: CreditsDeserializer

    Implementations§

    source§

    impl DeferredCreditsDeserializer

    source

    pub fn new( thread_count: u8, max_credits_length: u64 ) -> DeferredCreditsDeserializer

    Creates a new DeferredCredits deserializer

    -

    Trait Implementations§

    source§

    impl Clone for DeferredCreditsDeserializer

    source§

    fn clone(&self) -> DeferredCreditsDeserializer

    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 Deserializer<DeferredCredits> for DeferredCreditsDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Trait Implementations§

    source§

    impl Clone for DeferredCreditsDeserializer

    source§

    fn clone(&self) -> DeferredCreditsDeserializer

    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 Deserializer<DeferredCredits> for DeferredCreditsDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], DeferredCredits, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], DeferredCredits, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_pos_exports/struct.DeferredCreditsSerializer.html b/massa_pos_exports/struct.DeferredCreditsSerializer.html index 35e75d48ed4..fc6edf05d70 100644 --- a/massa_pos_exports/struct.DeferredCreditsSerializer.html +++ b/massa_pos_exports/struct.DeferredCreditsSerializer.html @@ -1,14 +1,14 @@ DeferredCreditsSerializer in massa_pos_exports - Rust
    pub struct DeferredCreditsSerializer {
         pub slot_ser: SlotSerializer,
    -    pub u64_ser: U64VarIntSerializer,
    +    pub u64_ser: U64VarIntSerializer,
         pub credits_ser: CreditsSerializer,
     }
    Expand description

    Serializer for DeferredCredits

    -

    Fields§

    §slot_ser: SlotSerializer§u64_ser: U64VarIntSerializer§credits_ser: CreditsSerializer

    Implementations§

    source§

    impl DeferredCreditsSerializer

    source

    pub fn new() -> Self

    Creates a new DeferredCredits serializer

    -

    Trait Implementations§

    source§

    impl Clone for DeferredCreditsSerializer

    source§

    fn clone(&self) -> DeferredCreditsSerializer

    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 Default for DeferredCreditsSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<DeferredCredits> for DeferredCreditsSerializer

    Fields§

    §slot_ser: SlotSerializer§u64_ser: U64VarIntSerializer§credits_ser: CreditsSerializer

    Implementations§

    source§

    impl DeferredCreditsSerializer

    source

    pub fn new() -> Self

    Creates a new DeferredCredits serializer

    +

    Trait Implementations§

    source§

    impl Clone for DeferredCreditsSerializer

    source§

    fn clone(&self) -> DeferredCreditsSerializer

    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 Default for DeferredCreditsSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<DeferredCredits> for DeferredCreditsSerializer

    source§

    fn serialize( &self, value: &DeferredCredits, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_pos_exports/struct.PoSChanges.html b/massa_pos_exports/struct.PoSChanges.html index cb40bed1e47..a802f1e8295 100644 --- a/massa_pos_exports/struct.PoSChanges.html +++ b/massa_pos_exports/struct.PoSChanges.html @@ -12,15 +12,15 @@

    Implementations§

    source§

    impl PoSChanges

    source

    pub fn is_empty(&self) -> bool

    Check if changes are empty

    source

    pub fn extend(&mut self, other: PoSChanges)

    Extends the current PosChanges with another one

    Trait Implementations§

    source§

    impl Clone for PoSChanges

    source§

    fn clone(&self) -> PoSChanges

    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 PoSChanges

    source§

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

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

    impl Default for PoSChanges

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for PoSChanges

    source§

    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 Deserializer<PoSChanges> for PoSChangesDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Deserializer<PoSChanges> for PoSChangesDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], PoSChanges, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl Serialize for PoSChanges

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<PoSChanges> for PoSChangesSerializer

    source§

    fn serialize( +) -> IResult<&'a [u8], PoSChanges, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl Serialize for PoSChanges

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<PoSChanges> for PoSChangesSerializer

    source§

    fn serialize( &self, value: &PoSChanges, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_pos_exports/struct.PoSChangesDeserializer.html b/massa_pos_exports/struct.PoSChangesDeserializer.html index ed412049156..16044e621fa 100644 --- a/massa_pos_exports/struct.PoSChangesDeserializer.html +++ b/massa_pos_exports/struct.PoSChangesDeserializer.html @@ -10,10 +10,10 @@ max_production_stats_length: u64, max_credits_length: u64 ) -> PoSChangesDeserializer

    Create a new PoSChanges Deserializer

    -

    Trait Implementations§

    source§

    impl Deserializer<PoSChanges> for PoSChangesDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Trait Implementations§

    source§

    impl Deserializer<PoSChanges> for PoSChangesDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], PoSChanges, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], PoSChanges, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_pos_exports/struct.PoSChangesSerializer.html b/massa_pos_exports/struct.PoSChangesSerializer.html index 6f0b05ddb59..7534bc7a503 100644 --- a/massa_pos_exports/struct.PoSChangesSerializer.html +++ b/massa_pos_exports/struct.PoSChangesSerializer.html @@ -1,16 +1,16 @@ PoSChangesSerializer in massa_pos_exports - Rust
    pub struct PoSChangesSerializer {
         bit_vec_serializer: BitVecSerializer,
    -    u64_serializer: U64VarIntSerializer,
    +    u64_serializer: U64VarIntSerializer,
         production_stats_serializer: ProductionStatsSerializer,
         address_serializer: AddressSerializer,
         deferred_credits_serializer: DeferredCreditsSerializer,
     }
    Expand description

    PoSChanges Serializer

    -

    Fields§

    §bit_vec_serializer: BitVecSerializer§u64_serializer: U64VarIntSerializer§production_stats_serializer: ProductionStatsSerializer§address_serializer: AddressSerializer§deferred_credits_serializer: DeferredCreditsSerializer

    Implementations§

    source§

    impl PoSChangesSerializer

    source

    pub fn new() -> PoSChangesSerializer

    Create a new PoSChanges Serializer

    -

    Trait Implementations§

    source§

    impl Default for PoSChangesSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<PoSChanges> for PoSChangesSerializer

    Fields§

    §bit_vec_serializer: BitVecSerializer§u64_serializer: U64VarIntSerializer§production_stats_serializer: ProductionStatsSerializer§address_serializer: AddressSerializer§deferred_credits_serializer: DeferredCreditsSerializer

    Implementations§

    source§

    impl PoSChangesSerializer

    source

    pub fn new() -> PoSChangesSerializer

    Create a new PoSChanges Serializer

    +

    Trait Implementations§

    source§

    impl Default for PoSChangesSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<PoSChanges> for PoSChangesSerializer

    source§

    fn serialize( &self, value: &PoSChanges, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_pos_exports/struct.ProductionStatsDeserializer.html b/massa_pos_exports/struct.ProductionStatsDeserializer.html index 4f0676b3382..c6118c3e8f6 100644 --- a/massa_pos_exports/struct.ProductionStatsDeserializer.html +++ b/massa_pos_exports/struct.ProductionStatsDeserializer.html @@ -1,13 +1,13 @@ ProductionStatsDeserializer in massa_pos_exports - Rust
    pub struct ProductionStatsDeserializer {
    -    length_deserializer: U64VarIntDeserializer,
    +    length_deserializer: U64VarIntDeserializer,
         pub address_deserializer: AddressDeserializer,
    -    pub u64_deserializer: U64VarIntDeserializer,
    +    pub u64_deserializer: U64VarIntDeserializer,
     }
    Expand description

    Deserializer for ProductionStats

    -

    Fields§

    §length_deserializer: U64VarIntDeserializer§address_deserializer: AddressDeserializer§u64_deserializer: U64VarIntDeserializer

    Implementations§

    source§

    impl ProductionStatsDeserializer

    source

    pub fn new(max_production_stats_length: u64) -> ProductionStatsDeserializer

    Creates a new ProductionStats deserializer

    -

    Trait Implementations§

    source§

    impl Clone for ProductionStatsDeserializer

    source§

    fn clone(&self) -> ProductionStatsDeserializer

    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 Deserializer<HashMap<Address, ProductionStats, BuildHasherDefault<HashMapper<Address>>>> for ProductionStatsDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Fields§

    §length_deserializer: U64VarIntDeserializer§address_deserializer: AddressDeserializer§u64_deserializer: U64VarIntDeserializer

    Implementations§

    source§

    impl ProductionStatsDeserializer

    source

    pub fn new(max_production_stats_length: u64) -> ProductionStatsDeserializer

    Creates a new ProductionStats deserializer

    +

    Trait Implementations§

    source§

    impl Clone for ProductionStatsDeserializer

    source§

    fn clone(&self) -> ProductionStatsDeserializer

    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 Deserializer<HashMap<Address, ProductionStats, BuildHasherDefault<HashMapper<Address>>>> for ProductionStatsDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], PreHashMap<Address, ProductionStats>, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], PreHashMap<Address, ProductionStats>, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_pos_exports/struct.ProductionStatsSerializer.html b/massa_pos_exports/struct.ProductionStatsSerializer.html index 8efa295c5ee..87f68e8ec87 100644 --- a/massa_pos_exports/struct.ProductionStatsSerializer.html +++ b/massa_pos_exports/struct.ProductionStatsSerializer.html @@ -1,13 +1,13 @@ ProductionStatsSerializer in massa_pos_exports - Rust
    pub struct ProductionStatsSerializer {
    -    pub u64_ser: U64VarIntSerializer,
    +    pub u64_ser: U64VarIntSerializer,
         address_ser: AddressSerializer,
     }
    Expand description

    Serializer for ProductionStats

    -

    Fields§

    §u64_ser: U64VarIntSerializer§address_ser: AddressSerializer

    Implementations§

    source§

    impl ProductionStatsSerializer

    source

    pub fn new() -> Self

    Creates a new ProductionStats serializer

    -

    Trait Implementations§

    source§

    impl Clone for ProductionStatsSerializer

    source§

    fn clone(&self) -> ProductionStatsSerializer

    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 Default for ProductionStatsSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<HashMap<Address, ProductionStats, BuildHasherDefault<HashMapper<Address>>>> for ProductionStatsSerializer

    Fields§

    §u64_ser: U64VarIntSerializer§address_ser: AddressSerializer

    Implementations§

    source§

    impl ProductionStatsSerializer

    source

    pub fn new() -> Self

    Creates a new ProductionStats serializer

    +

    Trait Implementations§

    source§

    impl Clone for ProductionStatsSerializer

    source§

    fn clone(&self) -> ProductionStatsSerializer

    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 Default for ProductionStatsSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<HashMap<Address, ProductionStats, BuildHasherDefault<HashMapper<Address>>>> for ProductionStatsSerializer

    source§

    fn serialize( &self, value: &PreHashMap<Address, ProductionStats>, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_pos_exports/struct.RollsDeserializer.html b/massa_pos_exports/struct.RollsDeserializer.html index 6b378e27884..bce3b945dfc 100644 --- a/massa_pos_exports/struct.RollsDeserializer.html +++ b/massa_pos_exports/struct.RollsDeserializer.html @@ -1,13 +1,13 @@ RollsDeserializer in massa_pos_exports - Rust
    pub struct RollsDeserializer {
    -    length_deserializer: U64VarIntDeserializer,
    +    length_deserializer: U64VarIntDeserializer,
         pub address_deserializer: AddressDeserializer,
    -    pub u64_deserializer: U64VarIntDeserializer,
    +    pub u64_deserializer: U64VarIntDeserializer,
     }
    Expand description

    Deserializer for rolls

    -

    Fields§

    §length_deserializer: U64VarIntDeserializer§address_deserializer: AddressDeserializer§u64_deserializer: U64VarIntDeserializer

    Implementations§

    source§

    impl RollsDeserializer

    source

    pub fn new(max_rolls_length: u64) -> RollsDeserializer

    Creates a new rolls deserializer

    -

    Trait Implementations§

    source§

    impl Clone for RollsDeserializer

    source§

    fn clone(&self) -> RollsDeserializer

    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 Deserializer<Vec<(Address, u64), Global>> for RollsDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Fields§

    §length_deserializer: U64VarIntDeserializer§address_deserializer: AddressDeserializer§u64_deserializer: U64VarIntDeserializer

    Implementations§

    source§

    impl RollsDeserializer

    source

    pub fn new(max_rolls_length: u64) -> RollsDeserializer

    Creates a new rolls deserializer

    +

    Trait Implementations§

    source§

    impl Clone for RollsDeserializer

    source§

    fn clone(&self) -> RollsDeserializer

    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 Deserializer<Vec<(Address, u64), Global>> for RollsDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], Vec<(Address, u64)>, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], Vec<(Address, u64)>, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_protocol_exports/bootstrap_peers/struct.BootstrapPeers.html b/massa_protocol_exports/bootstrap_peers/struct.BootstrapPeers.html index cf94299716e..3a7d948eda4 100644 --- a/massa_protocol_exports/bootstrap_peers/struct.BootstrapPeers.html +++ b/massa_protocol_exports/bootstrap_peers/struct.BootstrapPeers.html @@ -1,6 +1,6 @@ BootstrapPeers in massa_protocol_exports::bootstrap_peers - Rust
    pub struct BootstrapPeers(pub Vec<(PeerId, HashMap<SocketAddr, TransportType>)>);
    Expand description

    Peers that are transmitted during bootstrap

    Tuple Fields§

    §0: Vec<(PeerId, HashMap<SocketAddr, TransportType>)>

    Trait Implementations§

    source§

    impl Clone for BootstrapPeers

    source§

    fn clone(&self) -> BootstrapPeers

    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 BootstrapPeers

    source§

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

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

    impl<'de> Deserialize<'de> for BootstrapPeers

    source§

    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 Deserializer<BootstrapPeers> for BootstrapPeersDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Deserializer<BootstrapPeers> for BootstrapPeersDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], BootstrapPeers, E>

    @@ -30,11 +30,11 @@
    source§

    impl PartialEq<BootstrapPeers> for BootstrapPeers

    source§

    fn eq(&self, other: &BootstrapPeers) -> 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 Serialize for BootstrapPeers

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<BootstrapPeers> for BootstrapPeersSerializer

    source§

    fn serialize( + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<BootstrapPeers> for BootstrapPeersSerializer

    source§

    fn serialize( &self, value: &BootstrapPeers, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    +) -> Result<(), SerializeError>

    use massa_protocol_exports::{BootstrapPeers, PeerId, TransportType, BootstrapPeersSerializer};
     use massa_serialization::Serializer;
     use massa_signature::KeyPair;
    diff --git a/massa_protocol_exports/bootstrap_peers/struct.BootstrapPeersDeserializer.html b/massa_protocol_exports/bootstrap_peers/struct.BootstrapPeersDeserializer.html
    index 4dd6109a9a2..f4b9266b51f 100644
    --- a/massa_protocol_exports/bootstrap_peers/struct.BootstrapPeersDeserializer.html
    +++ b/massa_protocol_exports/bootstrap_peers/struct.BootstrapPeersDeserializer.html
    @@ -1,16 +1,16 @@
     BootstrapPeersDeserializer in massa_protocol_exports::bootstrap_peers - Rust
    pub struct BootstrapPeersDeserializer {
    -    length_deserializer: U32VarIntDeserializer,
    -    length_listeners_deserializer: U32VarIntDeserializer,
    +    length_deserializer: U32VarIntDeserializer,
    +    length_listeners_deserializer: U32VarIntDeserializer,
         ip_addr_deserializer: IpAddrDeserializer,
    -    port_deserializer: U16VarIntDeserializer,
    +    port_deserializer: U16VarIntDeserializer,
         peer_id_deserializer: PeerIdDeserializer,
     }
    Expand description

    Deserializer for BootstrapPeers

    -

    Fields§

    §length_deserializer: U32VarIntDeserializer§length_listeners_deserializer: U32VarIntDeserializer§ip_addr_deserializer: IpAddrDeserializer§port_deserializer: U16VarIntDeserializer§peer_id_deserializer: PeerIdDeserializer

    Implementations§

    source§

    impl BootstrapPeersDeserializer

    source

    pub fn new(max_peers: u32, max_listeners_per_peer: u32) -> Self

    Creates a new BootstrapPeersDeserializer

    +

    Fields§

    §length_deserializer: U32VarIntDeserializer§length_listeners_deserializer: U32VarIntDeserializer§ip_addr_deserializer: IpAddrDeserializer§port_deserializer: U16VarIntDeserializer§peer_id_deserializer: PeerIdDeserializer

    Implementations§

    source§

    impl BootstrapPeersDeserializer

    source

    pub fn new(max_peers: u32, max_listeners_per_peer: u32) -> Self

    Creates a new BootstrapPeersDeserializer

    Arguments:

    • max_peers: maximum peers that can be serialized
    -

    Trait Implementations§

    source§

    impl Deserializer<BootstrapPeers> for BootstrapPeersDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Trait Implementations§

    source§

    impl Deserializer<BootstrapPeers> for BootstrapPeersDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], BootstrapPeers, E>

    diff --git a/massa_protocol_exports/bootstrap_peers/struct.BootstrapPeersSerializer.html b/massa_protocol_exports/bootstrap_peers/struct.BootstrapPeersSerializer.html index 08f779e48ea..4b1e5d04fe3 100644 --- a/massa_protocol_exports/bootstrap_peers/struct.BootstrapPeersSerializer.html +++ b/massa_protocol_exports/bootstrap_peers/struct.BootstrapPeersSerializer.html @@ -1,15 +1,15 @@ BootstrapPeersSerializer in massa_protocol_exports::bootstrap_peers - Rust
    pub struct BootstrapPeersSerializer {
    -    u32_serializer: U32VarIntSerializer,
    +    u32_serializer: U32VarIntSerializer,
         ip_addr_serializer: IpAddrSerializer,
    -    port_serializer: U16VarIntSerializer,
    +    port_serializer: U16VarIntSerializer,
         peer_id_serializer: PeerIdSerializer,
     }
    Expand description

    Serializer for BootstrapPeers

    -

    Fields§

    §u32_serializer: U32VarIntSerializer§ip_addr_serializer: IpAddrSerializer§port_serializer: U16VarIntSerializer§peer_id_serializer: PeerIdSerializer

    Implementations§

    source§

    impl BootstrapPeersSerializer

    source

    pub fn new() -> Self

    Creates a new BootstrapPeersSerializer

    -

    Trait Implementations§

    source§

    impl Default for BootstrapPeersSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<BootstrapPeers> for BootstrapPeersSerializer

    Fields§

    §u32_serializer: U32VarIntSerializer§ip_addr_serializer: IpAddrSerializer§port_serializer: U16VarIntSerializer§peer_id_serializer: PeerIdSerializer

    Implementations§

    source§

    impl BootstrapPeersSerializer

    source

    pub fn new() -> Self

    Creates a new BootstrapPeersSerializer

    +

    Trait Implementations§

    source§

    impl Default for BootstrapPeersSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<BootstrapPeers> for BootstrapPeersSerializer

    source§

    fn serialize( &self, value: &BootstrapPeers, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    +) -> Result<(), SerializeError>
    use massa_protocol_exports::{BootstrapPeers, PeerId, TransportType, BootstrapPeersSerializer};
     use massa_serialization::Serializer;
     use massa_signature::KeyPair;
    diff --git a/massa_protocol_exports/peer_id/struct.PeerId.html b/massa_protocol_exports/peer_id/struct.PeerId.html
    index 6359ef0d1f0..aba3c8b3892 100644
    --- a/massa_protocol_exports/peer_id/struct.PeerId.html
    +++ b/massa_protocol_exports/peer_id/struct.PeerId.html
    @@ -5,10 +5,10 @@
         hash: &MassaHash,
         signature: &Signature
     ) -> Result<(), ProtocolError>

    Trait Implementations§

    source§

    impl Clone for PeerId

    source§

    fn clone(&self) -> PeerId

    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 PeerId

    source§

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

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

    impl<'de> Deserialize<'de> for PeerId

    source§

    fn deserialize<D: Deserializer<'de>>(d: D) -> Result<PeerId, D::Error>

    ::serde::Deserialize trait for PeerId

    -
    source§

    impl Deserializer<PeerId> for PeerIdDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    source§

    impl Deserializer<PeerId> for PeerIdDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], PeerId, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl Display for PeerId

    source§

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

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

    impl FromStr for PeerId

    §

    type Err = ProtocolError

    The associated error which can be returned from parsing.
    source§

    fn from_str(s: &str) -> Result<Self, Self::Err>

    Parses a string s to return a value of this type. Read more
    source§

    impl Hash for PeerId

    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 +) -> IResult<&'a [u8], PeerId, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl Display for PeerId

    source§

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

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

    impl FromStr for PeerId

    §

    type Err = ProtocolError

    The associated error which can be returned from parsing.
    source§

    fn from_str(s: &str) -> Result<Self, Self::Err>

    Parses a string s to return a value of this type. Read more
    source§

    impl Hash for PeerId

    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 Ord for PeerId

    source§

    fn cmp(&self, other: &PeerId) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Selfwhere Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Selfwhere @@ -18,11 +18,11 @@ sufficient, and should not be overridden without very good reason.

    source§

    impl PartialOrd<PeerId> for PeerId

    source§

    fn partial_cmp(&self, other: &PeerId) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    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 more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
    source§

    impl PeerId for PeerId

    source§

    fn generate() -> Self

    source§

    impl Serialize for PeerId

    source§

    fn serialize<S: Serializer>(&self, s: S) -> Result<S::Ok, S::Error>

    ::serde::Serialize trait for PeerId

    -
    source§

    impl Serializer<PeerId> for PeerIdSerializer

    source§

    impl Serializer<PeerId> for PeerIdSerializer

    source§

    fn serialize( &self, value: &PeerId, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl Copy for PeerId

    source§

    impl Eq for PeerId

    source§

    impl StructuralEq for PeerId

    source§

    impl StructuralPartialEq for PeerId

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl Copy for PeerId

    source§

    impl Eq for PeerId

    source§

    impl StructuralEq for PeerId

    source§

    impl StructuralPartialEq for PeerId

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> CallHasher for Twhere diff --git a/massa_protocol_exports/peer_id/struct.PeerIdDeserializer.html b/massa_protocol_exports/peer_id/struct.PeerIdDeserializer.html index 553afac3c96..7b6f039015b 100644 --- a/massa_protocol_exports/peer_id/struct.PeerIdDeserializer.html +++ b/massa_protocol_exports/peer_id/struct.PeerIdDeserializer.html @@ -1,9 +1,9 @@ PeerIdDeserializer in massa_protocol_exports::peer_id - Rust
    pub struct PeerIdDeserializer {
         public_key_deserializer: PublicKeyDeserializer,
    -}

    Fields§

    §public_key_deserializer: PublicKeyDeserializer

    Implementations§

    Trait Implementations§

    source§

    impl Clone for PeerIdDeserializer

    source§

    fn clone(&self) -> PeerIdDeserializer

    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 Default for PeerIdDeserializer

    source§

    fn default() -> PeerIdDeserializer

    Returns the “default value” for a type. Read more
    source§

    impl Deserializer<PeerId> for PeerIdDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +}

    Fields§

    §public_key_deserializer: PublicKeyDeserializer

    Implementations§

    Trait Implementations§

    source§

    impl Clone for PeerIdDeserializer

    source§

    fn clone(&self) -> PeerIdDeserializer

    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 Default for PeerIdDeserializer

    source§

    fn default() -> PeerIdDeserializer

    Returns the “default value” for a type. Read more
    source§

    impl Deserializer<PeerId> for PeerIdDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], PeerId, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], PeerId, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_protocol_exports/peer_id/struct.PeerIdSerializer.html b/massa_protocol_exports/peer_id/struct.PeerIdSerializer.html index c6618894d40..6f30e3fd6bc 100644 --- a/massa_protocol_exports/peer_id/struct.PeerIdSerializer.html +++ b/massa_protocol_exports/peer_id/struct.PeerIdSerializer.html @@ -1,8 +1,8 @@ -PeerIdSerializer in massa_protocol_exports::peer_id - Rust
    pub struct PeerIdSerializer {}

    Implementations§

    source§

    impl PeerIdSerializer

    source

    pub fn new() -> Self

    Trait Implementations§

    source§

    impl Clone for PeerIdSerializer

    source§

    fn clone(&self) -> PeerIdSerializer

    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 Default for PeerIdSerializer

    source§

    fn default() -> PeerIdSerializer

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<PeerId> for PeerIdSerializer

    source§

    fn serialize( +PeerIdSerializer in massa_protocol_exports::peer_id - Rust
    pub struct PeerIdSerializer {}

    Implementations§

    source§

    impl PeerIdSerializer

    source

    pub fn new() -> Self

    Trait Implementations§

    source§

    impl Clone for PeerIdSerializer

    source§

    fn clone(&self) -> PeerIdSerializer

    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 Default for PeerIdSerializer

    source§

    fn default() -> PeerIdSerializer

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<PeerId> for PeerIdSerializer

    source§

    fn serialize( &self, value: &PeerId, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_protocol_exports/struct.BootstrapPeers.html b/massa_protocol_exports/struct.BootstrapPeers.html index 4c2d6c46a5a..4df61aaa4a7 100644 --- a/massa_protocol_exports/struct.BootstrapPeers.html +++ b/massa_protocol_exports/struct.BootstrapPeers.html @@ -1,6 +1,6 @@ BootstrapPeers in massa_protocol_exports - Rust
    pub struct BootstrapPeers(pub Vec<(PeerId, HashMap<SocketAddr, TransportType>)>);
    Expand description

    Peers that are transmitted during bootstrap

    Tuple Fields§

    §0: Vec<(PeerId, HashMap<SocketAddr, TransportType>)>

    Trait Implementations§

    source§

    impl Clone for BootstrapPeers

    source§

    fn clone(&self) -> BootstrapPeers

    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 BootstrapPeers

    source§

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

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

    impl<'de> Deserialize<'de> for BootstrapPeers

    source§

    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 Deserializer<BootstrapPeers> for BootstrapPeersDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Deserializer<BootstrapPeers> for BootstrapPeersDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], BootstrapPeers, E>

    @@ -30,11 +30,11 @@
    source§

    impl PartialEq<BootstrapPeers> for BootstrapPeers

    source§

    fn eq(&self, other: &BootstrapPeers) -> 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 Serialize for BootstrapPeers

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<BootstrapPeers> for BootstrapPeersSerializer

    source§

    fn serialize( + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Serializer<BootstrapPeers> for BootstrapPeersSerializer

    source§

    fn serialize( &self, value: &BootstrapPeers, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    +) -> Result<(), SerializeError>

    use massa_protocol_exports::{BootstrapPeers, PeerId, TransportType, BootstrapPeersSerializer};
     use massa_serialization::Serializer;
     use massa_signature::KeyPair;
    diff --git a/massa_protocol_exports/struct.BootstrapPeersDeserializer.html b/massa_protocol_exports/struct.BootstrapPeersDeserializer.html
    index 8fb5ff02346..a2d3f077ca7 100644
    --- a/massa_protocol_exports/struct.BootstrapPeersDeserializer.html
    +++ b/massa_protocol_exports/struct.BootstrapPeersDeserializer.html
    @@ -1,16 +1,16 @@
     BootstrapPeersDeserializer in massa_protocol_exports - Rust
    pub struct BootstrapPeersDeserializer {
    -    length_deserializer: U32VarIntDeserializer,
    -    length_listeners_deserializer: U32VarIntDeserializer,
    +    length_deserializer: U32VarIntDeserializer,
    +    length_listeners_deserializer: U32VarIntDeserializer,
         ip_addr_deserializer: IpAddrDeserializer,
    -    port_deserializer: U16VarIntDeserializer,
    +    port_deserializer: U16VarIntDeserializer,
         peer_id_deserializer: PeerIdDeserializer,
     }
    Expand description

    Deserializer for BootstrapPeers

    -

    Fields§

    §length_deserializer: U32VarIntDeserializer§length_listeners_deserializer: U32VarIntDeserializer§ip_addr_deserializer: IpAddrDeserializer§port_deserializer: U16VarIntDeserializer§peer_id_deserializer: PeerIdDeserializer

    Implementations§

    source§

    impl BootstrapPeersDeserializer

    source

    pub fn new(max_peers: u32, max_listeners_per_peer: u32) -> Self

    Creates a new BootstrapPeersDeserializer

    +

    Fields§

    §length_deserializer: U32VarIntDeserializer§length_listeners_deserializer: U32VarIntDeserializer§ip_addr_deserializer: IpAddrDeserializer§port_deserializer: U16VarIntDeserializer§peer_id_deserializer: PeerIdDeserializer

    Implementations§

    source§

    impl BootstrapPeersDeserializer

    source

    pub fn new(max_peers: u32, max_listeners_per_peer: u32) -> Self

    Creates a new BootstrapPeersDeserializer

    Arguments:

    • max_peers: maximum peers that can be serialized
    -

    Trait Implementations§

    source§

    impl Deserializer<BootstrapPeers> for BootstrapPeersDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Trait Implementations§

    source§

    impl Deserializer<BootstrapPeers> for BootstrapPeersDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] ) -> IResult<&'a [u8], BootstrapPeers, E>

    diff --git a/massa_protocol_exports/struct.BootstrapPeersSerializer.html b/massa_protocol_exports/struct.BootstrapPeersSerializer.html index f9b787cb4d2..2357c5cc19e 100644 --- a/massa_protocol_exports/struct.BootstrapPeersSerializer.html +++ b/massa_protocol_exports/struct.BootstrapPeersSerializer.html @@ -1,15 +1,15 @@ BootstrapPeersSerializer in massa_protocol_exports - Rust
    pub struct BootstrapPeersSerializer {
    -    u32_serializer: U32VarIntSerializer,
    +    u32_serializer: U32VarIntSerializer,
         ip_addr_serializer: IpAddrSerializer,
    -    port_serializer: U16VarIntSerializer,
    +    port_serializer: U16VarIntSerializer,
         peer_id_serializer: PeerIdSerializer,
     }
    Expand description

    Serializer for BootstrapPeers

    -

    Fields§

    §u32_serializer: U32VarIntSerializer§ip_addr_serializer: IpAddrSerializer§port_serializer: U16VarIntSerializer§peer_id_serializer: PeerIdSerializer

    Implementations§

    source§

    impl BootstrapPeersSerializer

    source

    pub fn new() -> Self

    Creates a new BootstrapPeersSerializer

    -

    Trait Implementations§

    source§

    impl Default for BootstrapPeersSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<BootstrapPeers> for BootstrapPeersSerializer

    Fields§

    §u32_serializer: U32VarIntSerializer§ip_addr_serializer: IpAddrSerializer§port_serializer: U16VarIntSerializer§peer_id_serializer: PeerIdSerializer

    Implementations§

    source§

    impl BootstrapPeersSerializer

    source

    pub fn new() -> Self

    Creates a new BootstrapPeersSerializer

    +

    Trait Implementations§

    source§

    impl Default for BootstrapPeersSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<BootstrapPeers> for BootstrapPeersSerializer

    source§

    fn serialize( &self, value: &BootstrapPeers, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    +) -> Result<(), SerializeError>

    use massa_protocol_exports::{BootstrapPeers, PeerId, TransportType, BootstrapPeersSerializer};
     use massa_serialization::Serializer;
     use massa_signature::KeyPair;
    diff --git a/massa_protocol_exports/struct.PeerId.html b/massa_protocol_exports/struct.PeerId.html
    index dafa80fb507..6035c89a647 100644
    --- a/massa_protocol_exports/struct.PeerId.html
    +++ b/massa_protocol_exports/struct.PeerId.html
    @@ -5,10 +5,10 @@
         hash: &MassaHash,
         signature: &Signature
     ) -> Result<(), ProtocolError>

    Trait Implementations§

    source§

    impl Clone for PeerId

    source§

    fn clone(&self) -> PeerId

    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 PeerId

    source§

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

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

    impl<'de> Deserialize<'de> for PeerId

    source§

    fn deserialize<D: Deserializer<'de>>(d: D) -> Result<PeerId, D::Error>

    ::serde::Deserialize trait for PeerId

    -
    source§

    impl Deserializer<PeerId> for PeerIdDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    source§

    impl Deserializer<PeerId> for PeerIdDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], PeerId, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl Display for PeerId

    source§

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

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

    impl FromStr for PeerId

    §

    type Err = ProtocolError

    The associated error which can be returned from parsing.
    source§

    fn from_str(s: &str) -> Result<Self, Self::Err>

    Parses a string s to return a value of this type. Read more
    source§

    impl Hash for PeerId

    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 +) -> IResult<&'a [u8], PeerId, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl Display for PeerId

    source§

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

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

    impl FromStr for PeerId

    §

    type Err = ProtocolError

    The associated error which can be returned from parsing.
    source§

    fn from_str(s: &str) -> Result<Self, Self::Err>

    Parses a string s to return a value of this type. Read more
    source§

    impl Hash for PeerId

    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 Ord for PeerId

    source§

    fn cmp(&self, other: &PeerId) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Selfwhere Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Selfwhere @@ -18,11 +18,11 @@ sufficient, and should not be overridden without very good reason.

    source§

    impl PartialOrd<PeerId> for PeerId

    source§

    fn partial_cmp(&self, other: &PeerId) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    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 more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
    source§

    impl PeerId for PeerId

    source§

    fn generate() -> Self

    source§

    impl Serialize for PeerId

    source§

    fn serialize<S: Serializer>(&self, s: S) -> Result<S::Ok, S::Error>

    ::serde::Serialize trait for PeerId

    -
    source§

    impl Serializer<PeerId> for PeerIdSerializer

    source§

    impl Serializer<PeerId> for PeerIdSerializer

    source§

    fn serialize( &self, value: &PeerId, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl Copy for PeerId

    source§

    impl Eq for PeerId

    source§

    impl StructuralEq for PeerId

    source§

    impl StructuralPartialEq for PeerId

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl Copy for PeerId

    source§

    impl Eq for PeerId

    source§

    impl StructuralEq for PeerId

    source§

    impl StructuralPartialEq for PeerId

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for PeerId

    §

    impl Send for PeerId

    §

    impl Sync for PeerId

    §

    impl Unpin for PeerId

    §

    impl UnwindSafe for PeerId

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> CallHasher for Twhere diff --git a/massa_protocol_exports/struct.PeerIdDeserializer.html b/massa_protocol_exports/struct.PeerIdDeserializer.html index 45c5014310b..4f48baec960 100644 --- a/massa_protocol_exports/struct.PeerIdDeserializer.html +++ b/massa_protocol_exports/struct.PeerIdDeserializer.html @@ -1,9 +1,9 @@ PeerIdDeserializer in massa_protocol_exports - Rust
    pub struct PeerIdDeserializer {
         public_key_deserializer: PublicKeyDeserializer,
    -}

    Fields§

    §public_key_deserializer: PublicKeyDeserializer

    Implementations§

    Trait Implementations§

    source§

    impl Clone for PeerIdDeserializer

    source§

    fn clone(&self) -> PeerIdDeserializer

    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 Default for PeerIdDeserializer

    source§

    fn default() -> PeerIdDeserializer

    Returns the “default value” for a type. Read more
    source§

    impl Deserializer<PeerId> for PeerIdDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +}

    Fields§

    §public_key_deserializer: PublicKeyDeserializer

    Implementations§

    Trait Implementations§

    source§

    impl Clone for PeerIdDeserializer

    source§

    fn clone(&self) -> PeerIdDeserializer

    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 Default for PeerIdDeserializer

    source§

    fn default() -> PeerIdDeserializer

    Returns the “default value” for a type. Read more
    source§

    impl Deserializer<PeerId> for PeerIdDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], PeerId, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], PeerId, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_protocol_exports/struct.PeerIdSerializer.html b/massa_protocol_exports/struct.PeerIdSerializer.html index f39218faa60..ee8a09946ef 100644 --- a/massa_protocol_exports/struct.PeerIdSerializer.html +++ b/massa_protocol_exports/struct.PeerIdSerializer.html @@ -1,8 +1,8 @@ -PeerIdSerializer in massa_protocol_exports - Rust
    pub struct PeerIdSerializer {}

    Implementations§

    source§

    impl PeerIdSerializer

    source

    pub fn new() -> Self

    Trait Implementations§

    source§

    impl Clone for PeerIdSerializer

    source§

    fn clone(&self) -> PeerIdSerializer

    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 Default for PeerIdSerializer

    source§

    fn default() -> PeerIdSerializer

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<PeerId> for PeerIdSerializer

    source§

    fn serialize( +PeerIdSerializer in massa_protocol_exports - Rust
    pub struct PeerIdSerializer {}

    Implementations§

    source§

    impl PeerIdSerializer

    source

    pub fn new() -> Self

    Trait Implementations§

    source§

    impl Clone for PeerIdSerializer

    source§

    fn clone(&self) -> PeerIdSerializer

    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 Default for PeerIdSerializer

    source§

    fn default() -> PeerIdSerializer

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<PeerId> for PeerIdSerializer

    source§

    fn serialize( &self, value: &PeerId, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_protocol_worker/connectivity/enum.ConnectivityCommand.html b/massa_protocol_worker/connectivity/enum.ConnectivityCommand.html index 25ca67e7bfb..1069c712381 100644 --- a/massa_protocol_worker/connectivity/enum.ConnectivityCommand.html +++ b/massa_protocol_worker/connectivity/enum.ConnectivityCommand.html @@ -1,9 +1,9 @@ ConnectivityCommand in massa_protocol_worker::connectivity - Rust
    pub enum ConnectivityCommand {
         Stop,
         GetStats {
    -        responder: MassaSender<(NetworkStats, HashMap<PeerId, (SocketAddr, PeerConnectionType)>)>,
    +        responder: MassaSender<(NetworkStats, HashMap<PeerId, (SocketAddr, PeerConnectionType)>)>,
         },
    -}

    Variants§

    §

    Stop

    §

    GetStats

    Fields

    §responder: MassaSender<(NetworkStats, HashMap<PeerId, (SocketAddr, PeerConnectionType)>)>

    Trait Implementations§

    source§

    impl Clone for ConnectivityCommand

    source§

    fn clone(&self) -> ConnectivityCommand

    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

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +}

    Variants§

    §

    Stop

    §

    GetStats

    Fields

    §responder: MassaSender<(NetworkStats, HashMap<PeerId, (SocketAddr, PeerConnectionType)>)>

    Trait Implementations§

    source§

    impl Clone for ConnectivityCommand

    source§

    fn clone(&self) -> ConnectivityCommand

    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

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> ArchivePointee for T

    §

    type ArchivedMetadata = ()

    The archived version of the pointer metadata for this type.
    §

    fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata

    Converts some archived metadata to the pointer metadata for itself.
    source§

    impl<T> Borrow<T> for Twhere diff --git a/massa_protocol_worker/connectivity/fn.start_connectivity_thread.html b/massa_protocol_worker/connectivity/fn.start_connectivity_thread.html index 7f6f24e1575..80e08f0b794 100644 --- a/massa_protocol_worker/connectivity/fn.start_connectivity_thread.html +++ b/massa_protocol_worker/connectivity/fn.start_connectivity_thread.html @@ -1,21 +1,21 @@ start_connectivity_thread in massa_protocol_worker::connectivity - Rust
    pub(crate) fn start_connectivity_thread(
    -    peer_id: PeerId,
    +    peer_id: PeerId,
         selector_controller: Box<dyn SelectorController>,
         network_controller: Box<dyn NetworkController>,
    -    consensus_controller: Box<dyn ConsensusController>,
    +    consensus_controller: Box<dyn ConsensusController>,
         pool_controller: Box<dyn PoolController>,
    -    channel_blocks: (MassaSender<(PeerId, Vec<u8>)>, MassaReceiver<(PeerId, Vec<u8>)>),
    -    channel_endorsements: (MassaSender<(PeerId, Vec<u8>)>, MassaReceiver<(PeerId, Vec<u8>)>),
    -    channel_operations: (MassaSender<(PeerId, Vec<u8>)>, MassaReceiver<(PeerId, Vec<u8>)>),
    -    channel_peers: (MassaSender<(PeerId, Vec<u8>)>, MassaReceiver<(PeerId, Vec<u8>)>),
    -    initial_peers: HashMap<PeerId, HashMap<SocketAddr, TransportType>>,
    +    channel_blocks: (MassaSender<(PeerId, Vec<u8>)>, MassaReceiver<(PeerId, Vec<u8>)>),
    +    channel_endorsements: (MassaSender<(PeerId, Vec<u8>)>, MassaReceiver<(PeerId, Vec<u8>)>),
    +    channel_operations: (MassaSender<(PeerId, Vec<u8>)>, MassaReceiver<(PeerId, Vec<u8>)>),
    +    channel_peers: (MassaSender<(PeerId, Vec<u8>)>, MassaReceiver<(PeerId, Vec<u8>)>),
    +    initial_peers: HashMap<PeerId, HashMap<SocketAddr, TransportType>>,
         peer_db: Arc<RwLock<dyn PeerDBTrait>>,
         storage: Storage,
         protocol_channels: ProtocolChannels,
         messages_handler: MessagesHandler,
    -    peer_categories: HashMap<String, (Vec<IpAddr>, PeerCategoryInfo)>,
    -    _default_category: PeerCategoryInfo,
    -    config: ProtocolConfig,
    +    peer_categories: HashMap<String, (Vec<IpAddr>, PeerCategoryInfo)>,
    +    _default_category: PeerCategoryInfo,
    +    config: ProtocolConfig,
         mip_store: MipStore,
         massa_metrics: MassaMetrics
    -) -> Result<(MassaSender<ConnectivityCommand>, JoinHandle<()>), ProtocolError>
    \ No newline at end of file +) -> Result<(MassaSender<ConnectivityCommand>, JoinHandle<()>), ProtocolError>

    \ No newline at end of file diff --git a/massa_protocol_worker/connectivity/fn.try_connect_peer.html b/massa_protocol_worker/connectivity/fn.try_connect_peer.html index 9cf3c8aab43..87bd5685ca6 100644 --- a/massa_protocol_worker/connectivity/fn.try_connect_peer.html +++ b/massa_protocol_worker/connectivity/fn.try_connect_peer.html @@ -2,5 +2,5 @@ addr: SocketAddr, network_controller: &mut Box<dyn NetworkController>, peer_db: &Arc<RwLock<dyn PeerDBTrait>>, - config: &ProtocolConfig -) -> Result<(), ProtocolError>

    \ No newline at end of file + config: &ProtocolConfig +) -> Result<(), ProtocolError>

    \ No newline at end of file diff --git a/massa_protocol_worker/context/struct.Context.html b/massa_protocol_worker/context/struct.Context.html index d21ffcfc2cf..9e803e13eb0 100644 --- a/massa_protocol_worker/context/struct.Context.html +++ b/massa_protocol_worker/context/struct.Context.html @@ -1,12 +1,12 @@ Context in massa_protocol_worker::context - Rust
    pub struct Context {
         pub our_keypair: KeyPair,
    -}

    Fields§

    §our_keypair: KeyPair

    Trait Implementations§

    source§

    impl Clone for Context

    source§

    fn clone(&self) -> Context

    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 Context<PeerId> for Context

    source§

    impl InitConnectionHandler<PeerId, Context, MessagesHandler> for MassaHandshake

    source§

    fn perform_handshake( +}

    Fields§

    §our_keypair: KeyPair

    Trait Implementations§

    source§

    impl Clone for Context

    source§

    fn clone(&self) -> Context

    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 Context<PeerId> for Context

    source§

    fn get_peer_id(&self) -> PeerId

    source§

    impl InitConnectionHandler<PeerId, Context, MessagesHandler> for MassaHandshake

    source§

    fn perform_handshake( &mut self, context: &Context, endpoint: &mut Endpoint, listeners: &HashMap<SocketAddr, TransportType>, messages_handler: MessagesHandler -) -> PeerNetResult<PeerId>

    source§

    fn fallback_function( +) -> PeerNetResult<PeerId>

    source§

    fn fallback_function( &mut self, context: &Context, endpoint: &mut Endpoint, diff --git a/massa_protocol_worker/controller/struct.ProtocolControllerImpl.html b/massa_protocol_worker/controller/struct.ProtocolControllerImpl.html index a4d0ff9cc07..d7981f72a5c 100644 --- a/massa_protocol_worker/controller/struct.ProtocolControllerImpl.html +++ b/massa_protocol_worker/controller/struct.ProtocolControllerImpl.html @@ -12,33 +12,33 @@ sender_endorsement_handler: MassaSender<EndorsementHandlerPropagationCommand>, sender_connectivity_thread: MassaSender<ConnectivityCommand>, sender_peer_management_thread: MassaSender<PeerManagementCmd> -) -> Self

    Trait Implementations§

    source§

    impl Clone for ProtocolControllerImpl

    source§

    fn clone(&self) -> ProtocolControllerImpl

    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 ProtocolController for ProtocolControllerImpl

    Trait Implementations§

    source§

    impl Clone for ProtocolControllerImpl

    source§

    fn clone(&self) -> ProtocolControllerImpl

    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 ProtocolController for ProtocolControllerImpl

    source§

    fn integrated_block( &self, block_id: BlockId, storage: Storage -) -> Result<(), ProtocolError>

    Sends the order to propagate the header of a block

    +) -> Result<(), ProtocolError>

    Sends the order to propagate the header of a block

    Arguments
    • block_id: ID of the block
    • storage: Storage instance containing references to the block and all its dependencies
    -
    source§

    fn notify_block_attack(&self, block_id: BlockId) -> Result<(), ProtocolError>

    Notify to protocol an attack attempt.

    -
    source§

    fn send_wishlist_delta( +

    source§

    fn notify_block_attack(&self, block_id: BlockId) -> Result<(), ProtocolError>

    Notify to protocol an attack attempt.

    +
    source§

    fn send_wishlist_delta( &self, new: PreHashMap<BlockId, Option<SecuredHeader>>, remove: PreHashSet<BlockId> -) -> Result<(), ProtocolError>

    update the block wish list

    -
    source§

    fn propagate_operations(&self, operations: Storage) -> Result<(), ProtocolError>

    Propagate a batch of operation ids (from pool).

    +) -> Result<(), ProtocolError>

    update the block wish list

    +
    source§

    fn propagate_operations(&self, operations: Storage) -> Result<(), ProtocolError>

    Propagate a batch of operation ids (from pool).

    note: Full OperationId is replaced by a OperationPrefixId later by the worker.

    -
    source§

    fn propagate_endorsements( +

    source§

    fn propagate_endorsements( &self, endorsements: Storage -) -> Result<(), ProtocolError>

    propagate endorsements to connected node

    -
    source§

    fn stop(&mut self)

    Perform all operations needed to stop the ProtocolController -without dropping it completely yet.
    source§

    fn get_stats( +) -> Result<(), ProtocolError>

    propagate endorsements to connected node

    +
    source§

    fn stop(&mut self)

    Perform all operations needed to stop the ProtocolController +without dropping it completely yet.
    source§

    fn get_stats( &self -) -> Result<(NetworkStats, HashMap<PeerId, (SocketAddr, PeerConnectionType)>), ProtocolError>

    Get the stats from the protocol -Returns a tuple containing the stats and the list of peers
    source§

    fn ban_peers(&self, peer_ids: Vec<PeerId>) -> Result<(), ProtocolError>

    Ban a list of Peer Id
    source§

    fn unban_peers(&self, peer_ids: Vec<PeerId>) -> Result<(), ProtocolError>

    Unban a list of Peer Id
    source§

    fn get_bootstrap_peers(&self) -> Result<BootstrapPeers, ProtocolError>

    Get a list of peers to be sent to someone that bootstrap to us
    source§

    fn clone_box(&self) -> Box<dyn ProtocolController>

    Returns a boxed clone of self. +) -> Result<(NetworkStats, HashMap<PeerId, (SocketAddr, PeerConnectionType)>), ProtocolError>
    Get the stats from the protocol +Returns a tuple containing the stats and the list of peers
    source§

    fn ban_peers(&self, peer_ids: Vec<PeerId>) -> Result<(), ProtocolError>

    Ban a list of Peer Id
    source§

    fn unban_peers(&self, peer_ids: Vec<PeerId>) -> Result<(), ProtocolError>

    Unban a list of Peer Id
    source§

    fn get_bootstrap_peers(&self) -> Result<BootstrapPeers, ProtocolError>

    Get a list of peers to be sent to someone that bootstrap to us
    source§

    fn clone_box(&self) -> Box<dyn ProtocolController>

    Returns a boxed clone of self. Useful to allow cloning Box<dyn ProtocolController>.

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for ProtocolControllerImpl

    §

    impl Send for ProtocolControllerImpl

    §

    impl Sync for ProtocolControllerImpl

    §

    impl Unpin for ProtocolControllerImpl

    §

    impl UnwindSafe for ProtocolControllerImpl

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> ArchivePointee for T

    §

    type ArchivedMetadata = ()

    The archived version of the pointer metadata for this type.
    §

    fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata diff --git a/massa_protocol_worker/fn.create_protocol_controller.html b/massa_protocol_worker/fn.create_protocol_controller.html index b80df9bd32e..95a5739a465 100644 --- a/massa_protocol_worker/fn.create_protocol_controller.html +++ b/massa_protocol_worker/fn.create_protocol_controller.html @@ -1,5 +1,5 @@ create_protocol_controller in massa_protocol_worker - Rust
    pub fn create_protocol_controller(
    -    config: ProtocolConfig
    -) -> (Box<dyn ProtocolController>, ProtocolChannels)
    Expand description

    This function exists because consensus need the protocol controller and we need consensus controller. + config: ProtocolConfig +) -> (Box<dyn ProtocolController>, ProtocolChannels)

    Expand description

    This function exists because consensus need the protocol controller and we need consensus controller. Someone has to be created first.

    \ No newline at end of file diff --git a/massa_protocol_worker/fn.start_protocol_controller.html b/massa_protocol_worker/fn.start_protocol_controller.html index e0716e8ed0d..f20f780fea8 100644 --- a/massa_protocol_worker/fn.start_protocol_controller.html +++ b/massa_protocol_worker/fn.start_protocol_controller.html @@ -1,14 +1,14 @@ start_protocol_controller in massa_protocol_worker - Rust
    pub fn start_protocol_controller(
    -    config: ProtocolConfig,
    +    config: ProtocolConfig,
         selector_controller: Box<dyn SelectorController>,
    -    consensus_controller: Box<dyn ConsensusController>,
    -    bootstrap_peers: Option<BootstrapPeers>,
    +    consensus_controller: Box<dyn ConsensusController>,
    +    bootstrap_peers: Option<BootstrapPeers>,
         pool_controller: Box<dyn PoolController>,
         storage: Storage,
         protocol_channels: ProtocolChannels,
         mip_store: MipStore,
         massa_metrics: MassaMetrics
    -) -> Result<(Box<dyn ProtocolManager>, KeyPair, NodeId), ProtocolError>
    Expand description

    start a new ProtocolController from a ProtocolConfig

    +) -> Result<(Box<dyn ProtocolManager>, KeyPair, NodeId), ProtocolError>
    Expand description

    start a new ProtocolController from a ProtocolConfig

    Arguments

    -
    source§

    impl BlockCache

    source

    pub fn new(max_known_blocks: u32, max_known_blocks_by_peer: u32) -> Self

    source

    pub fn update_cache(&mut self, peers_connected: &HashSet<PeerId>)

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +

    source§

    impl BlockCache

    source

    pub fn new(max_known_blocks: u32, max_known_blocks_by_peer: u32) -> Self

    source

    pub fn update_cache(&mut self, peers_connected: &HashSet<PeerId>)

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for BlockCache

    §

    impl Send for BlockCache

    §

    impl Sync for BlockCache

    §

    impl Unpin for BlockCache

    §

    impl UnwindSafe for BlockCache

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> ArchivePointee for T

    §

    type ArchivedMetadata = ()

    The archived version of the pointer metadata for this type.
    §

    fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata

    Converts some archived metadata to the pointer metadata for itself.
    source§

    impl<T> Borrow<T> for Twhere diff --git a/massa_protocol_worker/handlers/block_handler/messages/enum.BlockMessage.html b/massa_protocol_worker/handlers/block_handler/messages/enum.BlockMessage.html index 7c103d6fde3..fce6ce31d31 100644 --- a/massa_protocol_worker/handlers/block_handler/messages/enum.BlockMessage.html +++ b/massa_protocol_worker/handlers/block_handler/messages/enum.BlockMessage.html @@ -15,14 +15,14 @@

    §

    DataResponse

    Fields

    §block_id: BlockId

    ID of the block to reply info for.

    §block_info: BlockInfoReply

    Block info reply.

    Message replying with info on a list of blocks.

    -

    Trait Implementations§

    source§

    impl Debug for BlockMessage

    source§

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

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

    impl Deserializer<BlockMessage> for BlockMessageDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Trait Implementations§

    source§

    impl Debug for BlockMessage

    source§

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

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

    impl Deserializer<BlockMessage> for BlockMessageDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], BlockMessage, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl From<&BlockMessage> for MessageTypeId

    source§

    fn from(value: &BlockMessage) -> Self

    Converts to this type from the input type.
    source§

    impl From<BlockMessage> for Message

    source§

    fn from(message: BlockMessage) -> Self

    Converts to this type from the input type.
    source§

    impl Serializer<BlockMessage> for BlockMessageSerializer

    source§

    fn serialize( +) -> IResult<&'a [u8], BlockMessage, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl From<&BlockMessage> for MessageTypeId

    source§

    fn from(value: &BlockMessage) -> Self

    Converts to this type from the input type.
    source§

    impl From<BlockMessage> for Message

    source§

    fn from(message: BlockMessage) -> Self

    Converts to this type from the input type.
    source§

    impl Serializer<BlockMessage> for BlockMessageSerializer

    source§

    fn serialize( &self, value: &BlockMessage, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for BlockMessage

    §

    impl Send for BlockMessage

    §

    impl Sync for BlockMessage

    §

    impl Unpin for BlockMessage

    §

    impl UnwindSafe for BlockMessage

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for BlockMessage

    §

    impl Send for BlockMessage

    §

    impl Sync for BlockMessage

    §

    impl Unpin for BlockMessage

    §

    impl UnwindSafe for BlockMessage

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> ArchivePointee for T

    §

    type ArchivedMetadata = ()

    The archived version of the pointer metadata for this type.
    §

    fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata

    Converts some archived metadata to the pointer metadata for itself.
    source§

    impl<T> Borrow<T> for Twhere diff --git a/massa_protocol_worker/handlers/block_handler/messages/struct.BlockMessageDeserializer.html b/massa_protocol_worker/handlers/block_handler/messages/struct.BlockMessageDeserializer.html index 52efdeed876..78c0c1be52f 100644 --- a/massa_protocol_worker/handlers/block_handler/messages/struct.BlockMessageDeserializer.html +++ b/massa_protocol_worker/handlers/block_handler/messages/struct.BlockMessageDeserializer.html @@ -1,13 +1,13 @@ BlockMessageDeserializer in massa_protocol_worker::handlers::block_handler::messages - Rust
    pub struct BlockMessageDeserializer {
    -    id_deserializer: U64VarIntDeserializer,
    +    id_deserializer: U64VarIntDeserializer,
         block_header_deserializer: SecureShareDeserializer<BlockHeader, BlockHeaderDeserializer>,
         block_id_deserializer: BlockIdDeserializer,
         operation_ids_deserializer: OperationIdsDeserializer,
         operations_deserializer: OperationsDeserializer,
    -}

    Fields§

    §id_deserializer: U64VarIntDeserializer§block_header_deserializer: SecureShareDeserializer<BlockHeader, BlockHeaderDeserializer>§block_id_deserializer: BlockIdDeserializer§operation_ids_deserializer: OperationIdsDeserializer§operations_deserializer: OperationsDeserializer

    Implementations§

    Trait Implementations§

    source§

    impl Deserializer<BlockMessage> for BlockMessageDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +}

    Fields§

    §id_deserializer: U64VarIntDeserializer§block_header_deserializer: SecureShareDeserializer<BlockHeader, BlockHeaderDeserializer>§block_id_deserializer: BlockIdDeserializer§operation_ids_deserializer: OperationIdsDeserializer§operations_deserializer: OperationsDeserializer

    Implementations§

    Trait Implementations§

    source§

    impl Deserializer<BlockMessage> for BlockMessageDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], BlockMessage, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], BlockMessage, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> ArchivePointee for T

    §

    type ArchivedMetadata = ()

    The archived version of the pointer metadata for this type.
    §

    fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata

    Converts some archived metadata to the pointer metadata for itself.
    source§

    impl<T> Borrow<T> for Twhere diff --git a/massa_protocol_worker/handlers/block_handler/messages/struct.BlockMessageSerializer.html b/massa_protocol_worker/handlers/block_handler/messages/struct.BlockMessageSerializer.html index 7fa4959d2cb..75429080875 100644 --- a/massa_protocol_worker/handlers/block_handler/messages/struct.BlockMessageSerializer.html +++ b/massa_protocol_worker/handlers/block_handler/messages/struct.BlockMessageSerializer.html @@ -1,14 +1,14 @@ BlockMessageSerializer in massa_protocol_worker::handlers::block_handler::messages - Rust
    pub struct BlockMessageSerializer {
    -    id_serializer: U64VarIntSerializer,
    +    id_serializer: U64VarIntSerializer,
         secure_share_serializer: SecureShareSerializer,
    -    length_serializer: U64VarIntSerializer,
    +    length_serializer: U64VarIntSerializer,
         block_id_serializer: BlockIdSerializer,
         operation_id_serializer: OperationIdSerializer,
    -}

    Fields§

    §id_serializer: U64VarIntSerializer§secure_share_serializer: SecureShareSerializer§length_serializer: U64VarIntSerializer§block_id_serializer: BlockIdSerializer§operation_id_serializer: OperationIdSerializer

    Implementations§

    Trait Implementations§

    source§

    impl Clone for BlockMessageSerializer

    source§

    fn clone(&self) -> BlockMessageSerializer

    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 Default for BlockMessageSerializer

    source§

    fn default() -> BlockMessageSerializer

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<BlockMessage> for BlockMessageSerializer

    source§

    fn serialize( +}

    Fields§

    §id_serializer: U64VarIntSerializer§secure_share_serializer: SecureShareSerializer§length_serializer: U64VarIntSerializer§block_id_serializer: BlockIdSerializer§operation_id_serializer: OperationIdSerializer

    Implementations§

    Trait Implementations§

    source§

    impl Clone for BlockMessageSerializer

    source§

    fn clone(&self) -> BlockMessageSerializer

    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 Default for BlockMessageSerializer

    source§

    fn default() -> BlockMessageSerializer

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<BlockMessage> for BlockMessageSerializer

    source§

    fn serialize( &self, value: &BlockMessage, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> ArchivePointee for T

    §

    type ArchivedMetadata = ()

    The archived version of the pointer metadata for this type.
    §

    fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata

    Converts some archived metadata to the pointer metadata for itself.
    source§

    impl<T> Borrow<T> for Twhere diff --git a/massa_protocol_worker/handlers/block_handler/propagation/fn.start_propagation_thread.html b/massa_protocol_worker/handlers/block_handler/propagation/fn.start_propagation_thread.html index 709e73b7de3..6b8b0684460 100644 --- a/massa_protocol_worker/handlers/block_handler/propagation/fn.start_propagation_thread.html +++ b/massa_protocol_worker/handlers/block_handler/propagation/fn.start_propagation_thread.html @@ -2,6 +2,6 @@ active_connections: Box<dyn ActiveConnectionsTrait>, receiver: MassaReceiver<BlockHandlerPropagationCommand>, peer_cmd_sender: MassaSender<PeerManagementCmd>, - config: ProtocolConfig, + config: ProtocolConfig, cache: Arc<RwLock<BlockCache>> ) -> JoinHandle<()>

    \ No newline at end of file diff --git a/massa_protocol_worker/handlers/block_handler/propagation/struct.PropagationThread.html b/massa_protocol_worker/handlers/block_handler/propagation/struct.PropagationThread.html index 559c5bda8cc..baedabdace2 100644 --- a/massa_protocol_worker/handlers/block_handler/propagation/struct.PropagationThread.html +++ b/massa_protocol_worker/handlers/block_handler/propagation/struct.PropagationThread.html @@ -1,20 +1,20 @@ PropagationThread in massa_protocol_worker::handlers::block_handler::propagation - Rust
    pub struct PropagationThread {
         receiver: MassaReceiver<BlockHandlerPropagationCommand>,
    -    config: ProtocolConfig,
    +    config: ProtocolConfig,
         cache: Arc<RwLock<BlockCache>>,
         stored_for_propagation: LruMap<BlockId, BlockPropagationData>,
         active_connections: Box<dyn ActiveConnectionsTrait>,
         peer_cmd_sender: MassaSender<PeerManagementCmd>,
         block_serializer: MessagesSerializer,
     }

    Fields§

    §receiver: MassaReceiver<BlockHandlerPropagationCommand>

    Receiver for commands

    -
    §config: ProtocolConfig

    Protocol config

    +
    §config: ProtocolConfig

    Protocol config

    §cache: Arc<RwLock<BlockCache>>

    Shared access to the block cache

    §stored_for_propagation: LruMap<BlockId, BlockPropagationData>

    Blocks stored for propagation

    §active_connections: Box<dyn ActiveConnectionsTrait>

    Shared access to the list of peers connected to us

    §peer_cmd_sender: MassaSender<PeerManagementCmd>

    Channel to send commands to the peer management system (for banning peers)

    §block_serializer: MessagesSerializer

    Serializer for block-related messages

    Implementations§

    source§

    impl PropagationThread

    source

    fn run(&mut self)

    source

    fn perform_propagations(&mut self)

    Propagate blocks to peers that need them

    -
    source

    fn ban_peers(&mut self, peer_ids: &[PeerId])

    try to ban a list of peers

    +
    source

    fn ban_peers(&mut self, peer_ids: &[PeerId])

    try to ban a list of peers

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> ArchivePointee for T

    §

    type ArchivedMetadata = ()

    The archived version of the pointer metadata for this type.
    §

    fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata diff --git a/massa_protocol_worker/handlers/block_handler/retrieval/fn.start_retrieval_thread.html b/massa_protocol_worker/handlers/block_handler/retrieval/fn.start_retrieval_thread.html index 10dd16e03bd..422a18b8ae0 100644 --- a/massa_protocol_worker/handlers/block_handler/retrieval/fn.start_retrieval_thread.html +++ b/massa_protocol_worker/handlers/block_handler/retrieval/fn.start_retrieval_thread.html @@ -1,15 +1,15 @@ start_retrieval_thread in massa_protocol_worker::handlers::block_handler::retrieval - Rust
    pub fn start_retrieval_thread(
         active_connections: Box<dyn ActiveConnectionsTrait>,
         selector_controller: Box<dyn SelectorController>,
    -    consensus_controller: Box<dyn ConsensusController>,
    +    consensus_controller: Box<dyn ConsensusController>,
         pool_controller: Box<dyn PoolController>,
    -    receiver_network: MassaReceiver<(PeerId, Vec<u8>)>,
    +    receiver_network: MassaReceiver<(PeerId, Vec<u8>)>,
         receiver: MassaReceiver<BlockHandlerRetrievalCommand>,
         _internal_sender: MassaSender<BlockHandlerPropagationCommand>,
         sender_propagation_ops: MassaSender<OperationHandlerPropagationCommand>,
         sender_propagation_endorsements: MassaSender<EndorsementHandlerPropagationCommand>,
         peer_cmd_sender: MassaSender<PeerManagementCmd>,
    -    config: ProtocolConfig,
    +    config: ProtocolConfig,
         endorsement_cache: Arc<RwLock<EndorsementCache>>,
         operation_cache: Arc<RwLock<OperationCache>>,
         cache: Arc<RwLock<BlockCache>>,
    diff --git a/massa_protocol_worker/handlers/block_handler/retrieval/struct.RetrievalThread.html b/massa_protocol_worker/handlers/block_handler/retrieval/struct.RetrievalThread.html
    index 1dd686f6bd8..bad6811448b 100644
    --- a/massa_protocol_worker/handlers/block_handler/retrieval/struct.RetrievalThread.html
    +++ b/massa_protocol_worker/handlers/block_handler/retrieval/struct.RetrievalThread.html
    @@ -1,14 +1,14 @@
     RetrievalThread in massa_protocol_worker::handlers::block_handler::retrieval - Rust
    pub struct RetrievalThread {
    Show 22 fields active_connections: Box<dyn ActiveConnectionsTrait>, selector_controller: Box<dyn SelectorController>, - consensus_controller: Box<dyn ConsensusController>, + consensus_controller: Box<dyn ConsensusController>, pool_controller: Box<dyn PoolController>, - receiver_network: MassaReceiver<(PeerId, Vec<u8>)>, + receiver_network: MassaReceiver<(PeerId, Vec<u8>)>, _announcement_sender: MassaSender<BlockHandlerPropagationCommand>, receiver: MassaReceiver<BlockHandlerRetrievalCommand>, block_message_serializer: MessagesSerializer, block_wishlist: PreHashMap<BlockId, BlockInfo>, - asked_blocks: HashMap<PeerId, PreHashMap<BlockId, Instant>>, + asked_blocks: HashMap<PeerId, PreHashMap<BlockId, Instant>>, peer_cmd_sender: MassaSender<PeerManagementCmd>, sender_propagation_ops: MassaSender<OperationHandlerPropagationCommand>, sender_propagation_endorsements: MassaSender<EndorsementHandlerPropagationCommand>, @@ -16,14 +16,14 @@ operation_cache: Arc<RwLock<OperationCache>>, next_timer_ask_block: Instant, cache: Arc<RwLock<BlockCache>>, - config: ProtocolConfig, + config: ProtocolConfig, storage: Storage, mip_store: MipStore, massa_metrics: MassaMetrics, operation_id_serializer: OperationIdSerializer, -
    }

    Fields§

    §active_connections: Box<dyn ActiveConnectionsTrait>§selector_controller: Box<dyn SelectorController>§consensus_controller: Box<dyn ConsensusController>§pool_controller: Box<dyn PoolController>§receiver_network: MassaReceiver<(PeerId, Vec<u8>)>§_announcement_sender: MassaSender<BlockHandlerPropagationCommand>§receiver: MassaReceiver<BlockHandlerRetrievalCommand>§block_message_serializer: MessagesSerializer§block_wishlist: PreHashMap<BlockId, BlockInfo>§asked_blocks: HashMap<PeerId, PreHashMap<BlockId, Instant>>§peer_cmd_sender: MassaSender<PeerManagementCmd>§sender_propagation_ops: MassaSender<OperationHandlerPropagationCommand>§sender_propagation_endorsements: MassaSender<EndorsementHandlerPropagationCommand>§endorsement_cache: Arc<RwLock<EndorsementCache>>§operation_cache: Arc<RwLock<OperationCache>>§next_timer_ask_block: Instant§cache: Arc<RwLock<BlockCache>>§config: ProtocolConfig§storage: Storage§mip_store: MipStore§massa_metrics: MassaMetrics§operation_id_serializer: OperationIdSerializer

    Implementations§

    Fields§

    §active_connections: Box<dyn ActiveConnectionsTrait>§selector_controller: Box<dyn SelectorController>§consensus_controller: Box<dyn ConsensusController>§pool_controller: Box<dyn PoolController>§receiver_network: MassaReceiver<(PeerId, Vec<u8>)>§_announcement_sender: MassaSender<BlockHandlerPropagationCommand>§receiver: MassaReceiver<BlockHandlerRetrievalCommand>§block_message_serializer: MessagesSerializer§block_wishlist: PreHashMap<BlockId, BlockInfo>§asked_blocks: HashMap<PeerId, PreHashMap<BlockId, Instant>>§peer_cmd_sender: MassaSender<PeerManagementCmd>§sender_propagation_ops: MassaSender<OperationHandlerPropagationCommand>§sender_propagation_endorsements: MassaSender<EndorsementHandlerPropagationCommand>§endorsement_cache: Arc<RwLock<EndorsementCache>>§operation_cache: Arc<RwLock<OperationCache>>§next_timer_ask_block: Instant§cache: Arc<RwLock<BlockCache>>§config: ProtocolConfig§storage: Storage§mip_store: MipStore§massa_metrics: MassaMetrics§operation_id_serializer: OperationIdSerializer

    Implementations§

    source§

    impl RetrievalThread

    source

    fn run(&mut self)

    source

    fn on_ask_for_block_info_received( &mut self, - from_peer_id: PeerId, + from_peer_id: PeerId, block_id: BlockId, info_requested: AskForBlockInfo )

    A remote node asked the local node for block data

    @@ -31,24 +31,24 @@ or a subset of the full operations of the block if it asked for AskForBlockInfo::Operations.

    source

    fn on_block_info_received( &mut self, - from_peer_id: PeerId, + from_peer_id: PeerId, block_id: BlockId, block_info: BlockInfoReply )

    A peer sent us a response to one of our requests for block data

    source

    fn on_block_header_received( &mut self, - from_peer_id: PeerId, + from_peer_id: PeerId, header: SecuredHeader )

    On block header received from a node.

    source

    fn check_network_version_compatibility( &self, header: &SecuredHeader -) -> Result<(), ProtocolError>

    Check if the incoming header network version is compatible with the current node

    +) -> Result<(), ProtocolError>

    Check if the incoming header network version is compatible with the current node

    source

    pub(crate) fn note_header_from_peer( &mut self, header: &SecuredHeader, - from_peer_id: &PeerId -) -> Result<bool, ProtocolError>

    Performs validity checks on a block header, + from_peer_id: &PeerId +) -> Result<bool, ProtocolError>

    Performs validity checks on a block header, and if valid update the node’s view of its surrounding peers.

    Returns a boolean indicating whether the header is new.

    Does not ban the source node if the header is invalid.

    @@ -63,7 +63,7 @@
  • Endorsement slots match that of the block
  • Endorsed blocks match the same-thread parent of the header
  • -
    source

    fn ban_peers(&mut self, peer_ids: &[PeerId]) -> Result<(), ProtocolError>

    send a ban peer command to the peer handler

    +
    source

    fn ban_peers(&mut self, peer_ids: &[PeerId]) -> Result<(), ProtocolError>

    send a ban peer command to the peer handler

    source

    pub(crate) fn remove_asked_blocks( &mut self, remove_hashes: &PreHashSet<BlockId> @@ -71,7 +71,7 @@

    source

    fn mark_block_as_invalid(&mut self, block_id: &BlockId)

    Mark a block as invalid

    source

    fn on_block_operation_list_received( &mut self, - from_peer_id: PeerId, + from_peer_id: PeerId, block_id: BlockId, operation_ids: Vec<OperationId> )

    We received a list of operations for a block.

    @@ -87,7 +87,7 @@
    Parameters:
    ) -> usize

    Return the sum of all operation’s serialized sizes in the id list

    source

    fn on_block_full_operations_received( &mut self, - from_peer_id: PeerId, + from_peer_id: PeerId, block_id: BlockId, operations: Vec<SecureShareOperation> )

    We received the full operations of a block.

    diff --git a/massa_protocol_worker/handlers/block_handler/struct.BlockHandler.html b/massa_protocol_worker/handlers/block_handler/struct.BlockHandler.html index cb767e8e751..1b78261f730 100644 --- a/massa_protocol_worker/handlers/block_handler/struct.BlockHandler.html +++ b/massa_protocol_worker/handlers/block_handler/struct.BlockHandler.html @@ -4,9 +4,9 @@ }

    Fields§

    §block_retrieval_thread: Option<(MassaSender<BlockHandlerRetrievalCommand>, JoinHandle<()>)>§block_propagation_thread: Option<(MassaSender<BlockHandlerPropagationCommand>, JoinHandle<()>)>

    Implementations§

    source§

    impl BlockHandler

    source

    pub fn new( active_connections: Box<dyn ActiveConnectionsTrait>, selector_controller: Box<dyn SelectorController>, - consensus_controller: Box<dyn ConsensusController>, + consensus_controller: Box<dyn ConsensusController>, pool_controller: Box<dyn PoolController>, - receiver_network: MassaReceiver<(PeerId, Vec<u8>)>, + receiver_network: MassaReceiver<(PeerId, Vec<u8>)>, sender_ext: MassaSender<BlockHandlerRetrievalCommand>, receiver_ext: MassaReceiver<BlockHandlerRetrievalCommand>, internal_receiver: MassaReceiver<BlockHandlerPropagationCommand>, @@ -14,7 +14,7 @@ sender_propagations_ops: MassaSender<OperationHandlerPropagationCommand>, sender_propagations_endorsements: MassaSender<EndorsementHandlerPropagationCommand>, peer_cmd_sender: MassaSender<PeerManagementCmd>, - config: ProtocolConfig, + config: ProtocolConfig, endorsement_cache: Arc<RwLock<EndorsementCache>>, operation_cache: Arc<RwLock<OperationCache>>, cache: Arc<RwLock<BlockCache>>, diff --git a/massa_protocol_worker/handlers/endorsement_handler/cache/struct.EndorsementCache.html b/massa_protocol_worker/handlers/endorsement_handler/cache/struct.EndorsementCache.html index ad90825c48b..04a22b177b2 100644 --- a/massa_protocol_worker/handlers/endorsement_handler/cache/struct.EndorsementCache.html +++ b/massa_protocol_worker/handlers/endorsement_handler/cache/struct.EndorsementCache.html @@ -1,10 +1,10 @@ EndorsementCache in massa_protocol_worker::handlers::endorsement_handler::cache - Rust
    pub struct EndorsementCache {
         pub checked_endorsements: LruMap<EndorsementId, ()>,
    -    pub endorsements_known_by_peer: HashMap<PeerId, LruMap<EndorsementId, ()>>,
    +    pub endorsements_known_by_peer: HashMap<PeerId, LruMap<EndorsementId, ()>>,
         pub max_known_endorsements_by_peer: u32,
     }
    Expand description

    Cache of endorsements

    Fields§

    §checked_endorsements: LruMap<EndorsementId, ()>

    List of endorsements we checked recently

    -
    §endorsements_known_by_peer: HashMap<PeerId, LruMap<EndorsementId, ()>>

    List of endorsements known by peers

    +
    §endorsements_known_by_peer: HashMap<PeerId, LruMap<EndorsementId, ()>>

    List of endorsements known by peers

    §max_known_endorsements_by_peer: u32

    Maximum number of endorsements known by a peer

    Implementations§

    source§

    impl EndorsementCache

    source

    pub fn new( max_known_endorsements: u32, @@ -12,11 +12,11 @@ ) -> Self

    Create a new EndorsementCache

    source

    pub fn insert_peer_known_endorsements( &mut self, - peer_id: &PeerId, + peer_id: &PeerId, endorsements: &[EndorsementId] )

    Mark a list of endorsement IDs prefixes as known by a peer

    source

    pub fn insert_checked_endorsement(&mut self, enrodsement_id: EndorsementId)

    Mark an endorsement ID as checked by us

    -
    source

    pub fn update_cache(&mut self, peers_connected: &HashSet<PeerId>)

    Update caches to remove all data from disconnected peers

    +
    source

    pub fn update_cache(&mut self, peers_connected: &HashSet<PeerId>)

    Update caches to remove all data from disconnected peers

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> ArchivePointee for T

    §

    type ArchivedMetadata = ()

    The archived version of the pointer metadata for this type.
    §

    fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata diff --git a/massa_protocol_worker/handlers/endorsement_handler/messages/enum.EndorsementMessage.html b/massa_protocol_worker/handlers/endorsement_handler/messages/enum.EndorsementMessage.html index e8f5a968c47..2080c9d876e 100644 --- a/massa_protocol_worker/handlers/endorsement_handler/messages/enum.EndorsementMessage.html +++ b/massa_protocol_worker/handlers/endorsement_handler/messages/enum.EndorsementMessage.html @@ -1,16 +1,16 @@ EndorsementMessage in massa_protocol_worker::handlers::endorsement_handler::messages - Rust
    pub enum EndorsementMessage {
         Endorsements(Vec<SecureShareEndorsement>),
     }

    Variants§

    §

    Endorsements(Vec<SecureShareEndorsement>)

    Endorsements

    -

    Trait Implementations§

    source§

    impl Debug for EndorsementMessage

    source§

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

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

    impl Deserializer<EndorsementMessage> for EndorsementMessageDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Trait Implementations§

    source§

    impl Debug for EndorsementMessage

    source§

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

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

    impl Deserializer<EndorsementMessage> for EndorsementMessageDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], EndorsementMessage, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl From<&EndorsementMessage> for MessageTypeId

    source§

    fn from(message: &EndorsementMessage) -> Self

    Converts to this type from the input type.
    source§

    impl From<EndorsementMessage> for Message

    source§

    fn from(message: EndorsementMessage) -> Self

    Converts to this type from the input type.
    source§

    impl PartialEq<EndorsementMessage> for EndorsementMessage

    source§

    fn eq(&self, other: &EndorsementMessage) -> bool

    This method tests for self and other values to be equal, and is used +) -> IResult<&'a [u8], EndorsementMessage, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl From<&EndorsementMessage> for MessageTypeId

    source§

    fn from(message: &EndorsementMessage) -> Self

    Converts to this type from the input type.
    source§

    impl From<EndorsementMessage> for Message

    source§

    fn from(message: EndorsementMessage) -> Self

    Converts to this type from the input type.
    source§

    impl PartialEq<EndorsementMessage> for EndorsementMessage

    source§

    fn eq(&self, other: &EndorsementMessage) -> 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 Serializer<EndorsementMessage> for EndorsementMessageSerializer

    source§

    fn serialize( +sufficient, and should not be overridden without very good reason.

    source§

    impl Serializer<EndorsementMessage> for EndorsementMessageSerializer

    source§

    fn serialize( &self, value: &EndorsementMessage, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl Eq for EndorsementMessage

    source§

    impl StructuralEq for EndorsementMessage

    source§

    impl StructuralPartialEq for EndorsementMessage

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl Eq for EndorsementMessage

    source§

    impl StructuralEq for EndorsementMessage

    source§

    impl StructuralPartialEq for EndorsementMessage

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for EndorsementMessage

    §

    impl Send for EndorsementMessage

    §

    impl Sync for EndorsementMessage

    §

    impl Unpin for EndorsementMessage

    §

    impl UnwindSafe for EndorsementMessage

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> ArchivePointee for T

    §

    type ArchivedMetadata = ()

    The archived version of the pointer metadata for this type.
    §

    fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata

    Converts some archived metadata to the pointer metadata for itself.
    source§

    impl<T> Borrow<T> for Twhere diff --git a/massa_protocol_worker/handlers/endorsement_handler/messages/struct.EndorsementMessageDeserializer.html b/massa_protocol_worker/handlers/endorsement_handler/messages/struct.EndorsementMessageDeserializer.html index 2078f897f57..95e28f5f4b7 100644 --- a/massa_protocol_worker/handlers/endorsement_handler/messages/struct.EndorsementMessageDeserializer.html +++ b/massa_protocol_worker/handlers/endorsement_handler/messages/struct.EndorsementMessageDeserializer.html @@ -1,11 +1,11 @@ EndorsementMessageDeserializer in massa_protocol_worker::handlers::endorsement_handler::messages - Rust
    pub struct EndorsementMessageDeserializer {
    -    id_deserializer: U64VarIntDeserializer,
    -    length_endorsements_deserializer: U64VarIntDeserializer,
    +    id_deserializer: U64VarIntDeserializer,
    +    length_endorsements_deserializer: U64VarIntDeserializer,
         secure_share_deserializer: SecureShareDeserializer<Endorsement, EndorsementDeserializer>,
    -}

    Fields§

    §id_deserializer: U64VarIntDeserializer§length_endorsements_deserializer: U64VarIntDeserializer§secure_share_deserializer: SecureShareDeserializer<Endorsement, EndorsementDeserializer>

    Implementations§

    Trait Implementations§

    source§

    impl Deserializer<EndorsementMessage> for EndorsementMessageDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +}

    Fields§

    §id_deserializer: U64VarIntDeserializer§length_endorsements_deserializer: U64VarIntDeserializer§secure_share_deserializer: SecureShareDeserializer<Endorsement, EndorsementDeserializer>

    Implementations§

    Trait Implementations§

    source§

    impl Deserializer<EndorsementMessage> for EndorsementMessageDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], EndorsementMessage, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], EndorsementMessage, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> ArchivePointee for T

    §

    type ArchivedMetadata = ()

    The archived version of the pointer metadata for this type.
    §

    fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata

    Converts some archived metadata to the pointer metadata for itself.
    source§

    impl<T> Borrow<T> for Twhere diff --git a/massa_protocol_worker/handlers/endorsement_handler/messages/struct.EndorsementMessageSerializer.html b/massa_protocol_worker/handlers/endorsement_handler/messages/struct.EndorsementMessageSerializer.html index 47ee6de4ba3..3ee4033f930 100644 --- a/massa_protocol_worker/handlers/endorsement_handler/messages/struct.EndorsementMessageSerializer.html +++ b/massa_protocol_worker/handlers/endorsement_handler/messages/struct.EndorsementMessageSerializer.html @@ -1,12 +1,12 @@ EndorsementMessageSerializer in massa_protocol_worker::handlers::endorsement_handler::messages - Rust
    pub struct EndorsementMessageSerializer {
    -    id_serializer: U64VarIntSerializer,
    -    length_endorsements_serializer: U64VarIntSerializer,
    +    id_serializer: U64VarIntSerializer,
    +    length_endorsements_serializer: U64VarIntSerializer,
         secure_share_serializer: SecureShareSerializer,
    -}

    Fields§

    §id_serializer: U64VarIntSerializer§length_endorsements_serializer: U64VarIntSerializer§secure_share_serializer: SecureShareSerializer

    Implementations§

    Trait Implementations§

    source§

    impl Clone for EndorsementMessageSerializer

    source§

    fn clone(&self) -> EndorsementMessageSerializer

    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 Default for EndorsementMessageSerializer

    source§

    fn default() -> EndorsementMessageSerializer

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<EndorsementMessage> for EndorsementMessageSerializer

    source§

    fn serialize( +}

    Fields§

    §id_serializer: U64VarIntSerializer§length_endorsements_serializer: U64VarIntSerializer§secure_share_serializer: SecureShareSerializer

    Implementations§

    Trait Implementations§

    source§

    impl Clone for EndorsementMessageSerializer

    source§

    fn clone(&self) -> EndorsementMessageSerializer

    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 Default for EndorsementMessageSerializer

    source§

    fn default() -> EndorsementMessageSerializer

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<EndorsementMessage> for EndorsementMessageSerializer

    source§

    fn serialize( &self, value: &EndorsementMessage, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> ArchivePointee for T

    §

    type ArchivedMetadata = ()

    The archived version of the pointer metadata for this type.
    §

    fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata

    Converts some archived metadata to the pointer metadata for itself.
    source§

    impl<T> Borrow<T> for Twhere diff --git a/massa_protocol_worker/handlers/endorsement_handler/propagation/fn.start_propagation_thread.html b/massa_protocol_worker/handlers/endorsement_handler/propagation/fn.start_propagation_thread.html index b13b98e1ccb..9bddc33d422 100644 --- a/massa_protocol_worker/handlers/endorsement_handler/propagation/fn.start_propagation_thread.html +++ b/massa_protocol_worker/handlers/endorsement_handler/propagation/fn.start_propagation_thread.html @@ -1,6 +1,6 @@ start_propagation_thread in massa_protocol_worker::handlers::endorsement_handler::propagation - Rust
    pub fn start_propagation_thread(
         receiver: MassaReceiver<EndorsementHandlerPropagationCommand>,
         cache: Arc<RwLock<EndorsementCache>>,
    -    config: ProtocolConfig,
    +    config: ProtocolConfig,
         active_connections: Box<dyn ActiveConnectionsTrait>
     ) -> JoinHandle<()>
    \ No newline at end of file diff --git a/massa_protocol_worker/handlers/endorsement_handler/propagation/struct.PropagationThread.html b/massa_protocol_worker/handlers/endorsement_handler/propagation/struct.PropagationThread.html index dd0770e511a..f1dbe5d4bb8 100644 --- a/massa_protocol_worker/handlers/endorsement_handler/propagation/struct.PropagationThread.html +++ b/massa_protocol_worker/handlers/endorsement_handler/propagation/struct.PropagationThread.html @@ -1,11 +1,11 @@ PropagationThread in massa_protocol_worker::handlers::endorsement_handler::propagation - Rust
    struct PropagationThread {
         receiver: MassaReceiver<EndorsementHandlerPropagationCommand>,
    -    config: ProtocolConfig,
    +    config: ProtocolConfig,
         cache: Arc<RwLock<EndorsementCache>>,
         active_connections: Box<dyn ActiveConnectionsTrait>,
         endorsement_serializer: MessagesSerializer,
     }
    Expand description

    Endorsements need to propagate fast, so no buffering

    -

    Fields§

    §receiver: MassaReceiver<EndorsementHandlerPropagationCommand>§config: ProtocolConfig§cache: Arc<RwLock<EndorsementCache>>§active_connections: Box<dyn ActiveConnectionsTrait>§endorsement_serializer: MessagesSerializer

    Implementations§

    source§

    impl PropagationThread

    source

    fn run(&mut self)

    source

    fn propagate_endorsements(&mut self, endorsements: Storage)

    Perform propagation of endorsements to the connected peers

    +

    Fields§

    §receiver: MassaReceiver<EndorsementHandlerPropagationCommand>§config: ProtocolConfig§cache: Arc<RwLock<EndorsementCache>>§active_connections: Box<dyn ActiveConnectionsTrait>§endorsement_serializer: MessagesSerializer

    Implementations§

    source§

    impl PropagationThread

    source

    fn run(&mut self)

    source

    fn propagate_endorsements(&mut self, endorsements: Storage)

    Perform propagation of endorsements to the connected peers

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> ArchivePointee for T

    §

    type ArchivedMetadata = ()

    The archived version of the pointer metadata for this type.
    §

    fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata diff --git a/massa_protocol_worker/handlers/endorsement_handler/retrieval/fn.note_endorsements_from_peer.html b/massa_protocol_worker/handlers/endorsement_handler/retrieval/fn.note_endorsements_from_peer.html index 859a6ddd114..d6f97f7391c 100644 --- a/massa_protocol_worker/handlers/endorsement_handler/retrieval/fn.note_endorsements_from_peer.html +++ b/massa_protocol_worker/handlers/endorsement_handler/retrieval/fn.note_endorsements_from_peer.html @@ -1,13 +1,13 @@ note_endorsements_from_peer in massa_protocol_worker::handlers::endorsement_handler::retrieval - Rust
    pub(crate) fn note_endorsements_from_peer(
         endorsements: Vec<SecureShareEndorsement>,
    -    from_peer_id: &PeerId,
    +    from_peer_id: &PeerId,
         cache: &Arc<RwLock<EndorsementCache>>,
         selector_controller: &dyn SelectorController,
         storage: &Storage,
    -    config: &ProtocolConfig,
    +    config: &ProtocolConfig,
         endorsement_propagation_sender: &MassaSender<EndorsementHandlerPropagationCommand>,
         pool_controller: &mut dyn PoolController
    -) -> Result<(), ProtocolError>
    Expand description

    Note endorsements coming from a given node, +) -> Result<(), ProtocolError>

    Expand description

    Note endorsements coming from a given node, and propagate them when they were received outside of a header.

    Caches knowledge of valid ones.

    Does not ban if the endorsement is invalid

    diff --git a/massa_protocol_worker/handlers/endorsement_handler/retrieval/fn.start_retrieval_thread.html b/massa_protocol_worker/handlers/endorsement_handler/retrieval/fn.start_retrieval_thread.html index 9bce2ba466b..b2eb411007d 100644 --- a/massa_protocol_worker/handlers/endorsement_handler/retrieval/fn.start_retrieval_thread.html +++ b/massa_protocol_worker/handlers/endorsement_handler/retrieval/fn.start_retrieval_thread.html @@ -1,12 +1,12 @@ start_retrieval_thread in massa_protocol_worker::handlers::endorsement_handler::retrieval - Rust
    pub fn start_retrieval_thread(
    -    receiver: MassaReceiver<(PeerId, Vec<u8>)>,
    +    receiver: MassaReceiver<(PeerId, Vec<u8>)>,
         receiver_ext: MassaReceiver<EndorsementHandlerRetrievalCommand>,
         internal_sender: MassaSender<EndorsementHandlerPropagationCommand>,
         peer_cmd_sender: MassaSender<PeerManagementCmd>,
         cache: Arc<RwLock<EndorsementCache>>,
         selector_controller: Box<dyn SelectorController>,
         pool_controller: Box<dyn PoolController>,
    -    config: ProtocolConfig,
    +    config: ProtocolConfig,
         storage: Storage,
         metrics: MassaMetrics
     ) -> JoinHandle<()>
    \ No newline at end of file diff --git a/massa_protocol_worker/handlers/endorsement_handler/retrieval/struct.RetrievalThread.html b/massa_protocol_worker/handlers/endorsement_handler/retrieval/struct.RetrievalThread.html index 6cd9512f6ba..5b4bdc45e5c 100644 --- a/massa_protocol_worker/handlers/endorsement_handler/retrieval/struct.RetrievalThread.html +++ b/massa_protocol_worker/handlers/endorsement_handler/retrieval/struct.RetrievalThread.html @@ -1,17 +1,17 @@ RetrievalThread in massa_protocol_worker::handlers::endorsement_handler::retrieval - Rust
    pub struct RetrievalThread {
    -    receiver: MassaReceiver<(PeerId, Vec<u8>)>,
    +    receiver: MassaReceiver<(PeerId, Vec<u8>)>,
         receiver_ext: MassaReceiver<EndorsementHandlerRetrievalCommand>,
         cache: Arc<RwLock<EndorsementCache>>,
         internal_sender: MassaSender<EndorsementHandlerPropagationCommand>,
         selector_controller: Box<dyn SelectorController>,
         pool_controller: Box<dyn PoolController>,
    -    config: ProtocolConfig,
    +    config: ProtocolConfig,
         storage: Storage,
         peer_cmd_sender: MassaSender<PeerManagementCmd>,
         metrics: MassaMetrics,
         endorsement_message_deserializer: EndorsementMessageDeserializer,
    -}

    Fields§

    §receiver: MassaReceiver<(PeerId, Vec<u8>)>§receiver_ext: MassaReceiver<EndorsementHandlerRetrievalCommand>§cache: Arc<RwLock<EndorsementCache>>§internal_sender: MassaSender<EndorsementHandlerPropagationCommand>§selector_controller: Box<dyn SelectorController>§pool_controller: Box<dyn PoolController>§config: ProtocolConfig§storage: Storage§peer_cmd_sender: MassaSender<PeerManagementCmd>§metrics: MassaMetrics§endorsement_message_deserializer: EndorsementMessageDeserializer

    Implementations§

    source§

    impl RetrievalThread

    source

    fn run(&mut self)

    source

    fn process_message(&mut self, peer_id: PeerId, message: Vec<u8>)

    Process incoming message

    -
    source

    fn ban_peer(&mut self, peer_id: &PeerId) -> Result<(), ProtocolError>

    send a ban peer command to the peer handler

    +}

    Fields§

    §receiver: MassaReceiver<(PeerId, Vec<u8>)>§receiver_ext: MassaReceiver<EndorsementHandlerRetrievalCommand>§cache: Arc<RwLock<EndorsementCache>>§internal_sender: MassaSender<EndorsementHandlerPropagationCommand>§selector_controller: Box<dyn SelectorController>§pool_controller: Box<dyn PoolController>§config: ProtocolConfig§storage: Storage§peer_cmd_sender: MassaSender<PeerManagementCmd>§metrics: MassaMetrics§endorsement_message_deserializer: EndorsementMessageDeserializer

    Implementations§

    source§

    impl RetrievalThread

    source

    fn run(&mut self)

    source

    fn process_message(&mut self, peer_id: PeerId, message: Vec<u8>)

    Process incoming message

    +
    source

    fn ban_peer(&mut self, peer_id: &PeerId) -> Result<(), ProtocolError>

    send a ban peer command to the peer handler

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> ArchivePointee for T

    §

    type ArchivedMetadata = ()

    The archived version of the pointer metadata for this type.
    §

    fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata diff --git a/massa_protocol_worker/handlers/endorsement_handler/struct.EndorsementHandler.html b/massa_protocol_worker/handlers/endorsement_handler/struct.EndorsementHandler.html index 544f5a8e862..f2b8967aa49 100644 --- a/massa_protocol_worker/handlers/endorsement_handler/struct.EndorsementHandler.html +++ b/massa_protocol_worker/handlers/endorsement_handler/struct.EndorsementHandler.html @@ -6,9 +6,9 @@ selector_controller: Box<dyn SelectorController>, cache: Arc<RwLock<EndorsementCache>>, storage: Storage, - config: ProtocolConfig, + config: ProtocolConfig, active_connections: Box<dyn ActiveConnectionsTrait>, - receiver: MassaReceiver<(PeerId, Vec<u8>)>, + receiver: MassaReceiver<(PeerId, Vec<u8>)>, sender_retrieval_ext: MassaSender<EndorsementHandlerRetrievalCommand>, receiver_retrieval_ext: MassaReceiver<EndorsementHandlerRetrievalCommand>, local_sender: MassaSender<EndorsementHandlerPropagationCommand>, diff --git a/massa_protocol_worker/handlers/operation_handler/cache/struct.OperationCache.html b/massa_protocol_worker/handlers/operation_handler/cache/struct.OperationCache.html index 390e2ac7a11..e021db40cfc 100644 --- a/massa_protocol_worker/handlers/operation_handler/cache/struct.OperationCache.html +++ b/massa_protocol_worker/handlers/operation_handler/cache/struct.OperationCache.html @@ -1,21 +1,21 @@ OperationCache in massa_protocol_worker::handlers::operation_handler::cache - Rust
    pub struct OperationCache {
         pub checked_operations: LruMap<OperationId, ()>,
         pub checked_operations_prefix: LruMap<OperationPrefixId, ()>,
    -    pub ops_known_by_peer: HashMap<PeerId, LruMap<OperationPrefixId, ()>>,
    +    pub ops_known_by_peer: HashMap<PeerId, LruMap<OperationPrefixId, ()>>,
         pub max_known_ops_by_peer: u32,
     }
    Expand description

    Cache for operations

    Fields§

    §checked_operations: LruMap<OperationId, ()>

    List of operations we checked recently

    §checked_operations_prefix: LruMap<OperationPrefixId, ()>

    List of operation ID prefixes we checked recently

    -
    §ops_known_by_peer: HashMap<PeerId, LruMap<OperationPrefixId, ()>>

    List of operations known by peers

    +
    §ops_known_by_peer: HashMap<PeerId, LruMap<OperationPrefixId, ()>>

    List of operations known by peers

    §max_known_ops_by_peer: u32

    Maximum number of operations known by a peer

    Implementations§

    source§

    impl OperationCache

    source

    pub fn new(max_known_ops: u32, max_known_ops_by_peer: u32) -> Self

    Create a new OperationCache

    source

    pub fn insert_peer_known_ops( &mut self, - peer_id: &PeerId, + peer_id: &PeerId, ops: &[OperationPrefixId] )

    Mark a list of operation ID prefixes as known by a peer

    source

    pub fn insert_checked_operation(&mut self, operation_id: OperationId)

    Mark an operation ID as checked by us

    -
    source

    pub fn update_cache(&mut self, peers_connected: &HashSet<PeerId>)

    Update caches to remove all data from disconnected peers

    +
    source

    pub fn update_cache(&mut self, peers_connected: &HashSet<PeerId>)

    Update caches to remove all data from disconnected peers

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> ArchivePointee for T

    §

    type ArchivedMetadata = ()

    The archived version of the pointer metadata for this type.
    §

    fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata diff --git a/massa_protocol_worker/handlers/operation_handler/messages/enum.OperationMessage.html b/massa_protocol_worker/handlers/operation_handler/messages/enum.OperationMessage.html index c43baaea6f9..222197091ff 100644 --- a/massa_protocol_worker/handlers/operation_handler/messages/enum.OperationMessage.html +++ b/massa_protocol_worker/handlers/operation_handler/messages/enum.OperationMessage.html @@ -5,14 +5,14 @@ }

    Variants§

    §

    OperationsAnnouncement(OperationPrefixIds)

    Batch of operation ids

    §

    AskForOperations(OperationPrefixIds)

    Someone ask for operations.

    §

    Operations(Vec<SecureShareOperation>)

    A list of operations

    -

    Trait Implementations§

    source§

    impl Debug for OperationMessage

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Deserializer<OperationMessage> for OperationMessageDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Trait Implementations§

    source§

    impl Debug for OperationMessage

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Deserializer<OperationMessage> for OperationMessageDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], OperationMessage, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl From<&OperationMessage> for MessageTypeId

    source§

    fn from(message: &OperationMessage) -> Self

    Converts to this type from the input type.
    source§

    impl From<OperationMessage> for Message

    source§

    fn from(message: OperationMessage) -> Self

    Converts to this type from the input type.
    source§

    impl Serializer<OperationMessage> for OperationMessageSerializer

    source§

    fn serialize( +) -> IResult<&'a [u8], OperationMessage, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl From<&OperationMessage> for MessageTypeId

    source§

    fn from(message: &OperationMessage) -> Self

    Converts to this type from the input type.
    source§

    impl From<OperationMessage> for Message

    source§

    fn from(message: OperationMessage) -> Self

    Converts to this type from the input type.
    source§

    impl Serializer<OperationMessage> for OperationMessageSerializer

    source§

    fn serialize( &self, value: &OperationMessage, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> ArchivePointee for T

    §

    type ArchivedMetadata = ()

    The archived version of the pointer metadata for this type.
    §

    fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata

    Converts some archived metadata to the pointer metadata for itself.
    source§

    impl<T> Borrow<T> for Twhere diff --git a/massa_protocol_worker/handlers/operation_handler/messages/struct.OperationMessageDeserializer.html b/massa_protocol_worker/handlers/operation_handler/messages/struct.OperationMessageDeserializer.html index 09577727090..f1f4949ae5b 100644 --- a/massa_protocol_worker/handlers/operation_handler/messages/struct.OperationMessageDeserializer.html +++ b/massa_protocol_worker/handlers/operation_handler/messages/struct.OperationMessageDeserializer.html @@ -1,11 +1,11 @@ OperationMessageDeserializer in massa_protocol_worker::handlers::operation_handler::messages - Rust
    pub struct OperationMessageDeserializer {
    -    id_deserializer: U64VarIntDeserializer,
    +    id_deserializer: U64VarIntDeserializer,
         operation_prefix_ids_deserializer: OperationPrefixIdsDeserializer,
         operations_deserializer: OperationsDeserializer,
    -}

    Fields§

    §id_deserializer: U64VarIntDeserializer§operation_prefix_ids_deserializer: OperationPrefixIdsDeserializer§operations_deserializer: OperationsDeserializer

    Implementations§

    Trait Implementations§

    source§

    impl Deserializer<OperationMessage> for OperationMessageDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +}

    Fields§

    §id_deserializer: U64VarIntDeserializer§operation_prefix_ids_deserializer: OperationPrefixIdsDeserializer§operations_deserializer: OperationsDeserializer

    Implementations§

    Trait Implementations§

    source§

    impl Deserializer<OperationMessage> for OperationMessageDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], OperationMessage, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], OperationMessage, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> ArchivePointee for T

    §

    type ArchivedMetadata = ()

    The archived version of the pointer metadata for this type.
    §

    fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata

    Converts some archived metadata to the pointer metadata for itself.
    source§

    impl<T> Borrow<T> for Twhere diff --git a/massa_protocol_worker/handlers/operation_handler/messages/struct.OperationMessageSerializer.html b/massa_protocol_worker/handlers/operation_handler/messages/struct.OperationMessageSerializer.html index fa7afdc7d69..1d4380573d4 100644 --- a/massa_protocol_worker/handlers/operation_handler/messages/struct.OperationMessageSerializer.html +++ b/massa_protocol_worker/handlers/operation_handler/messages/struct.OperationMessageSerializer.html @@ -1,12 +1,12 @@ OperationMessageSerializer in massa_protocol_worker::handlers::operation_handler::messages - Rust
    pub struct OperationMessageSerializer {
    -    id_serializer: U64VarIntSerializer,
    +    id_serializer: U64VarIntSerializer,
         operation_prefix_ids_serializer: OperationPrefixIdsSerializer,
         operations_serializer: OperationsSerializer,
    -}

    Fields§

    §id_serializer: U64VarIntSerializer§operation_prefix_ids_serializer: OperationPrefixIdsSerializer§operations_serializer: OperationsSerializer

    Implementations§

    Trait Implementations§

    source§

    impl Clone for OperationMessageSerializer

    source§

    fn clone(&self) -> OperationMessageSerializer

    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 Default for OperationMessageSerializer

    source§

    fn default() -> OperationMessageSerializer

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<OperationMessage> for OperationMessageSerializer

    source§

    fn serialize( +}

    Fields§

    §id_serializer: U64VarIntSerializer§operation_prefix_ids_serializer: OperationPrefixIdsSerializer§operations_serializer: OperationsSerializer

    Implementations§

    Trait Implementations§

    source§

    impl Clone for OperationMessageSerializer

    source§

    fn clone(&self) -> OperationMessageSerializer

    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 Default for OperationMessageSerializer

    source§

    fn default() -> OperationMessageSerializer

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<OperationMessage> for OperationMessageSerializer

    source§

    fn serialize( &self, value: &OperationMessage, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> ArchivePointee for T

    §

    type ArchivedMetadata = ()

    The archived version of the pointer metadata for this type.
    §

    fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata

    Converts some archived metadata to the pointer metadata for itself.
    source§

    impl<T> Borrow<T> for Twhere diff --git a/massa_protocol_worker/handlers/operation_handler/propagation/fn.start_propagation_thread.html b/massa_protocol_worker/handlers/operation_handler/propagation/fn.start_propagation_thread.html index e1eeed460d6..c5fb12eea4d 100644 --- a/massa_protocol_worker/handlers/operation_handler/propagation/fn.start_propagation_thread.html +++ b/massa_protocol_worker/handlers/operation_handler/propagation/fn.start_propagation_thread.html @@ -1,7 +1,7 @@ start_propagation_thread in massa_protocol_worker::handlers::operation_handler::propagation - Rust
    pub fn start_propagation_thread(
         internal_receiver: MassaReceiver<OperationHandlerPropagationCommand>,
         active_connections: Box<dyn ActiveConnectionsTrait>,
    -    config: ProtocolConfig,
    +    config: ProtocolConfig,
         cache: Arc<RwLock<OperationCache>>,
         op_storage: Storage,
         massa_metrics: MassaMetrics
    diff --git a/massa_protocol_worker/handlers/operation_handler/propagation/struct.PropagationThread.html b/massa_protocol_worker/handlers/operation_handler/propagation/struct.PropagationThread.html
    index cbd9ae1f436..1668659044a 100644
    --- a/massa_protocol_worker/handlers/operation_handler/propagation/struct.PropagationThread.html
    +++ b/massa_protocol_worker/handlers/operation_handler/propagation/struct.PropagationThread.html
    @@ -4,11 +4,11 @@
         stored_for_propagation: VecDeque<(Instant, PreHashSet<OperationId>)>,
         op_storage: Storage,
         next_batch: PreHashSet<OperationId>,
    -    config: ProtocolConfig,
    +    config: ProtocolConfig,
         cache: Arc<RwLock<OperationCache>>,
         operation_message_serializer: MessagesSerializer,
         _massa_metrics: MassaMetrics,
    -}

    Fields§

    §internal_receiver: MassaReceiver<OperationHandlerPropagationCommand>§active_connections: Box<dyn ActiveConnectionsTrait>§stored_for_propagation: VecDeque<(Instant, PreHashSet<OperationId>)>§op_storage: Storage§next_batch: PreHashSet<OperationId>§config: ProtocolConfig§cache: Arc<RwLock<OperationCache>>§operation_message_serializer: MessagesSerializer§_massa_metrics: MassaMetrics

    Implementations§

    source§

    impl PropagationThread

    source

    fn run(&mut self)

    source

    fn prune_propagation_storage(&mut self)

    Prune the list of operations kept for propagation.

    +}

    Fields§

    §internal_receiver: MassaReceiver<OperationHandlerPropagationCommand>§active_connections: Box<dyn ActiveConnectionsTrait>§stored_for_propagation: VecDeque<(Instant, PreHashSet<OperationId>)>§op_storage: Storage§next_batch: PreHashSet<OperationId>§config: ProtocolConfig§cache: Arc<RwLock<OperationCache>>§operation_message_serializer: MessagesSerializer§_massa_metrics: MassaMetrics

    Implementations§

    source§

    impl PropagationThread

    source

    fn run(&mut self)

    source

    fn prune_propagation_storage(&mut self)

    Prune the list of operations kept for propagation.

    source

    fn announce_ops(&mut self)

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> ArchivePointee for T

    §

    type ArchivedMetadata = ()

    The archived version of the pointer metadata for this type.
    §

    fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata diff --git a/massa_protocol_worker/handlers/operation_handler/retrieval/fn.note_operations_from_peer.html b/massa_protocol_worker/handlers/operation_handler/retrieval/fn.note_operations_from_peer.html index 862cf9612d9..f289fb875f0 100644 --- a/massa_protocol_worker/handlers/operation_handler/retrieval/fn.note_operations_from_peer.html +++ b/massa_protocol_worker/handlers/operation_handler/retrieval/fn.note_operations_from_peer.html @@ -1,9 +1,9 @@ note_operations_from_peer in massa_protocol_worker::handlers::operation_handler::retrieval - Rust
    pub(crate) fn note_operations_from_peer(
         base_storage: &Storage,
         operations_cache: &mut Arc<RwLock<OperationCache>>,
    -    config: &ProtocolConfig,
    +    config: &ProtocolConfig,
         operations: Vec<SecureShareOperation>,
    -    source_peer_id: &PeerId,
    +    source_peer_id: &PeerId,
         ops_propagation_sender: &mut MassaSender<OperationHandlerPropagationCommand>,
         pool_controller: &mut Box<dyn PoolController>
    -) -> Result<(), ProtocolError>
    \ No newline at end of file +) -> Result<(), ProtocolError>

    \ No newline at end of file diff --git a/massa_protocol_worker/handlers/operation_handler/retrieval/fn.start_retrieval_thread.html b/massa_protocol_worker/handlers/operation_handler/retrieval/fn.start_retrieval_thread.html index c20650fda25..d999a8f5737 100644 --- a/massa_protocol_worker/handlers/operation_handler/retrieval/fn.start_retrieval_thread.html +++ b/massa_protocol_worker/handlers/operation_handler/retrieval/fn.start_retrieval_thread.html @@ -1,8 +1,8 @@ start_retrieval_thread in massa_protocol_worker::handlers::operation_handler::retrieval - Rust
    pub fn start_retrieval_thread(
    -    receiver: MassaReceiver<(PeerId, Vec<u8>)>,
    +    receiver: MassaReceiver<(PeerId, Vec<u8>)>,
         pool_controller: Box<dyn PoolController>,
         storage: Storage,
    -    config: ProtocolConfig,
    +    config: ProtocolConfig,
         cache: Arc<RwLock<OperationCache>>,
         active_connections: Box<dyn ActiveConnectionsTrait>,
         receiver_ext: MassaReceiver<OperationHandlerRetrievalCommand>,
    diff --git a/massa_protocol_worker/handlers/operation_handler/retrieval/struct.OperationBatchItem.html b/massa_protocol_worker/handlers/operation_handler/retrieval/struct.OperationBatchItem.html
    index f296ae9455b..0a81ddbea49 100644
    --- a/massa_protocol_worker/handlers/operation_handler/retrieval/struct.OperationBatchItem.html
    +++ b/massa_protocol_worker/handlers/operation_handler/retrieval/struct.OperationBatchItem.html
    @@ -1,12 +1,12 @@
     OperationBatchItem in massa_protocol_worker::handlers::operation_handler::retrieval - Rust
    pub struct OperationBatchItem {
         pub instant: Instant,
    -    pub peer_id: PeerId,
    +    pub peer_id: PeerId,
         pub operations_prefix_ids: OperationPrefixIds,
     }
    Expand description

    Structure containing a Batch of operation_ids we would like to ask to a peer_id now or later. Mainly used in protocol and translated into simple combination of a peer_id and operations_prefix_ids

    Fields§

    §instant: Instant

    last updated at instant

    -
    §peer_id: PeerId

    node id

    +
    §peer_id: PeerId

    node id

    §operations_prefix_ids: OperationPrefixIds

    operation prefix ids

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> ArchivePointee for T

    §

    type ArchivedMetadata = ()

    The archived version of the pointer metadata for this type.
    §

    fn pointer_metadata( diff --git a/massa_protocol_worker/handlers/operation_handler/retrieval/struct.RetrievalThread.html b/massa_protocol_worker/handlers/operation_handler/retrieval/struct.RetrievalThread.html index 1beebbe416d..4769d99e76a 100644 --- a/massa_protocol_worker/handlers/operation_handler/retrieval/struct.RetrievalThread.html +++ b/massa_protocol_worker/handlers/operation_handler/retrieval/struct.RetrievalThread.html @@ -1,22 +1,22 @@ RetrievalThread in massa_protocol_worker::handlers::operation_handler::retrieval - Rust
    pub struct RetrievalThread {
    Show 13 fields - receiver: MassaReceiver<(PeerId, Vec<u8>)>, + receiver: MassaReceiver<(PeerId, Vec<u8>)>, pool_controller: Box<dyn PoolController>, cache: Arc<RwLock<OperationCache>>, - asked_operations: LruMap<OperationPrefixId, (Instant, Vec<PeerId>)>, + asked_operations: LruMap<OperationPrefixId, (Instant, Vec<PeerId>)>, active_connections: Box<dyn ActiveConnectionsTrait>, op_batch_buffer: VecDeque<OperationBatchItem>, storage: Storage, - config: ProtocolConfig, + config: ProtocolConfig, internal_sender: MassaSender<OperationHandlerPropagationCommand>, receiver_ext: MassaReceiver<OperationHandlerRetrievalCommand>, operation_message_serializer: MessagesSerializer, peer_cmd_sender: MassaSender<PeerManagementCmd>, _massa_metrics: MassaMetrics, -
    }

    Fields§

    §receiver: MassaReceiver<(PeerId, Vec<u8>)>§pool_controller: Box<dyn PoolController>§cache: Arc<RwLock<OperationCache>>§asked_operations: LruMap<OperationPrefixId, (Instant, Vec<PeerId>)>§active_connections: Box<dyn ActiveConnectionsTrait>§op_batch_buffer: VecDeque<OperationBatchItem>§storage: Storage§config: ProtocolConfig§internal_sender: MassaSender<OperationHandlerPropagationCommand>§receiver_ext: MassaReceiver<OperationHandlerRetrievalCommand>§operation_message_serializer: MessagesSerializer§peer_cmd_sender: MassaSender<PeerManagementCmd>§_massa_metrics: MassaMetrics

    Implementations§

    Fields§

    §receiver: MassaReceiver<(PeerId, Vec<u8>)>§pool_controller: Box<dyn PoolController>§cache: Arc<RwLock<OperationCache>>§asked_operations: LruMap<OperationPrefixId, (Instant, Vec<PeerId>)>§active_connections: Box<dyn ActiveConnectionsTrait>§op_batch_buffer: VecDeque<OperationBatchItem>§storage: Storage§config: ProtocolConfig§internal_sender: MassaSender<OperationHandlerPropagationCommand>§receiver_ext: MassaReceiver<OperationHandlerRetrievalCommand>§operation_message_serializer: MessagesSerializer§peer_cmd_sender: MassaSender<PeerManagementCmd>§_massa_metrics: MassaMetrics

    Implementations§

    source§

    impl RetrievalThread

    source

    fn run(&mut self)

    source

    fn on_operations_announcements_received( &mut self, op_batch: OperationPrefixIds, - peer_id: &PeerId -) -> Result<(), ProtocolError>

    On receive a batch of operation ids op_batch from another peer_id + peer_id: &PeerId +) -> Result<(), ProtocolError>

    On receive a batch of operation ids op_batch from another peer_id Execute the following algorithm: redirect to GitHub

    def process_op_batch(op_batch, peer_id):
         ask_set = void HashSet<OperationId>
    @@ -33,15 +33,15 @@
         if op_batch_buf is not full:
             op_batch_buf.push(now+op_batch_proc_period, peer_id, future_set)
         ask ask_set to peer_id
    -
    source

    fn update_ask_operation(&mut self) -> Result<(), ProtocolError>

    source

    fn on_asked_operations_received( +

    source

    fn update_ask_operation(&mut self) -> Result<(), ProtocolError>

    source

    fn on_asked_operations_received( &mut self, - peer_id: &PeerId, + peer_id: &PeerId, op_pre_ids: OperationPrefixIds -) -> Result<(), ProtocolError>

    Maybe move this to propagation +) -> Result<(), ProtocolError>

    Maybe move this to propagation Process the reception of a batch of asked operations, that means that we have already sent a batch of ids in the network, notifying that we already have those operations.

    -
    source

    fn ban_node(&mut self, peer_id: &PeerId) -> Result<(), ProtocolError>

    send a ban peer command to the peer handler

    +
    source

    fn ban_node(&mut self, peer_id: &PeerId) -> Result<(), ProtocolError>

    send a ban peer command to the peer handler

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> ArchivePointee for T

    §

    type ArchivedMetadata = ()

    The archived version of the pointer metadata for this type.
    §

    fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata diff --git a/massa_protocol_worker/handlers/operation_handler/struct.OperationHandler.html b/massa_protocol_worker/handlers/operation_handler/struct.OperationHandler.html index 9b700cff393..611bd7769e7 100644 --- a/massa_protocol_worker/handlers/operation_handler/struct.OperationHandler.html +++ b/massa_protocol_worker/handlers/operation_handler/struct.OperationHandler.html @@ -4,10 +4,10 @@ }

    Fields§

    §operation_retrieval_thread: Option<(MassaSender<OperationHandlerRetrievalCommand>, JoinHandle<()>)>§operation_propagation_thread: Option<(MassaSender<OperationHandlerPropagationCommand>, JoinHandle<()>)>

    Implementations§

    source§

    impl OperationHandler

    source

    pub fn new( pool_controller: Box<dyn PoolController>, storage: Storage, - config: ProtocolConfig, + config: ProtocolConfig, cache: Arc<RwLock<OperationCache>>, active_connections: Box<dyn ActiveConnectionsTrait>, - receiver_network: MassaReceiver<(PeerId, Vec<u8>)>, + receiver_network: MassaReceiver<(PeerId, Vec<u8>)>, sender_retrieval_ext: MassaSender<OperationHandlerRetrievalCommand>, receiver_retrieval_ext: MassaReceiver<OperationHandlerRetrievalCommand>, local_sender: MassaSender<OperationHandlerPropagationCommand>, diff --git a/massa_protocol_worker/handlers/peer_handler/announcement/struct.Announcement.html b/massa_protocol_worker/handlers/peer_handler/announcement/struct.Announcement.html index f61a008ca9b..967a1ad7afa 100644 --- a/massa_protocol_worker/handlers/peer_handler/announcement/struct.Announcement.html +++ b/massa_protocol_worker/handlers/peer_handler/announcement/struct.Announcement.html @@ -13,16 +13,16 @@ listeners: HashMap<SocketAddr, TransportType>, routable_ip: Option<IpAddr>, keypair: &KeyPair -) -> PeerNetResult<Self>

    Trait Implementations§

    source§

    impl Clone for Announcement

    source§

    fn clone(&self) -> Announcement

    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 Announcement

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Deserializer<Announcement> for AnnouncementDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +) -> PeerNetResult<Self>

    Trait Implementations§

    source§

    impl Clone for Announcement

    source§

    fn clone(&self) -> Announcement

    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 Announcement

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Deserializer<Announcement> for AnnouncementDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], Announcement, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl PartialEq<Announcement> for Announcement

    source§

    fn eq(&self, other: &Announcement) -> bool

    This method tests for self and other values to be equal, and is used +) -> IResult<&'a [u8], Announcement, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl PartialEq<Announcement> for Announcement

    source§

    fn eq(&self, other: &Announcement) -> 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 Serializer<Announcement> for AnnouncementSerializer

    source§

    fn serialize( +sufficient, and should not be overridden without very good reason.

    source§

    impl Serializer<Announcement> for AnnouncementSerializer

    source§

    fn serialize( &self, value: &Announcement, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl Eq for Announcement

    source§

    impl StructuralEq for Announcement

    source§

    impl StructuralPartialEq for Announcement

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl Eq for Announcement

    source§

    impl StructuralEq for Announcement

    source§

    impl StructuralPartialEq for Announcement

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> ArchivePointee for T

    §

    type ArchivedMetadata = ()

    The archived version of the pointer metadata for this type.
    §

    fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata

    Converts some archived metadata to the pointer metadata for itself.
    source§

    impl<T> Borrow<T> for Twhere diff --git a/massa_protocol_worker/handlers/peer_handler/announcement/struct.AnnouncementDeserializer.html b/massa_protocol_worker/handlers/peer_handler/announcement/struct.AnnouncementDeserializer.html index b56b60b62a6..405456f1f28 100644 --- a/massa_protocol_worker/handlers/peer_handler/announcement/struct.AnnouncementDeserializer.html +++ b/massa_protocol_worker/handlers/peer_handler/announcement/struct.AnnouncementDeserializer.html @@ -1,10 +1,10 @@ AnnouncementDeserializer in massa_protocol_worker::handlers::peer_handler::announcement - Rust
    pub struct AnnouncementDeserializer {
    -    length_listeners_deserializer: U64VarIntDeserializer,
    +    length_listeners_deserializer: U64VarIntDeserializer,
         ip_addr_deserializer: IpAddrDeserializer,
    -}

    Fields§

    §length_listeners_deserializer: U64VarIntDeserializer§ip_addr_deserializer: IpAddrDeserializer

    Implementations§

    Trait Implementations§

    source§

    impl Clone for AnnouncementDeserializer

    source§

    fn clone(&self) -> AnnouncementDeserializer

    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 Deserializer<Announcement> for AnnouncementDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +}

    Fields§

    §length_listeners_deserializer: U64VarIntDeserializer§ip_addr_deserializer: IpAddrDeserializer

    Implementations§

    Trait Implementations§

    source§

    impl Clone for AnnouncementDeserializer

    source§

    fn clone(&self) -> AnnouncementDeserializer

    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 Deserializer<Announcement> for AnnouncementDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], Announcement, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], Announcement, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> ArchivePointee for T

    §

    type ArchivedMetadata = ()

    The archived version of the pointer metadata for this type.
    §

    fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata

    Converts some archived metadata to the pointer metadata for itself.
    source§

    impl<T> Borrow<T> for Twhere diff --git a/massa_protocol_worker/handlers/peer_handler/announcement/struct.AnnouncementSerializer.html b/massa_protocol_worker/handlers/peer_handler/announcement/struct.AnnouncementSerializer.html index 5e62a735126..2a860cf2e51 100644 --- a/massa_protocol_worker/handlers/peer_handler/announcement/struct.AnnouncementSerializer.html +++ b/massa_protocol_worker/handlers/peer_handler/announcement/struct.AnnouncementSerializer.html @@ -1,8 +1,8 @@ -AnnouncementSerializer in massa_protocol_worker::handlers::peer_handler::announcement - Rust
    pub struct AnnouncementSerializer;

    Implementations§

    Trait Implementations§

    source§

    impl Clone for AnnouncementSerializer

    source§

    fn clone(&self) -> AnnouncementSerializer

    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 Serializer<Announcement> for AnnouncementSerializer

    source§

    fn serialize( +AnnouncementSerializer in massa_protocol_worker::handlers::peer_handler::announcement - Rust
    pub struct AnnouncementSerializer;

    Implementations§

    Trait Implementations§

    source§

    impl Clone for AnnouncementSerializer

    source§

    fn clone(&self) -> AnnouncementSerializer

    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 Serializer<Announcement> for AnnouncementSerializer

    source§

    fn serialize( &self, value: &Announcement, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> ArchivePointee for T

    §

    type ArchivedMetadata = ()

    The archived version of the pointer metadata for this type.
    §

    fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata

    Converts some archived metadata to the pointer metadata for itself.
    source§

    impl<T> Borrow<T> for Twhere diff --git a/massa_protocol_worker/handlers/peer_handler/messages/enum.PeerManagementMessage.html b/massa_protocol_worker/handlers/peer_handler/messages/enum.PeerManagementMessage.html index f35e96c8fe2..b53e5ea17b8 100644 --- a/massa_protocol_worker/handlers/peer_handler/messages/enum.PeerManagementMessage.html +++ b/massa_protocol_worker/handlers/peer_handler/messages/enum.PeerManagementMessage.html @@ -1,14 +1,14 @@ PeerManagementMessage in massa_protocol_worker::handlers::peer_handler::messages - Rust
    pub enum PeerManagementMessage {
    -    NewPeerConnected((PeerId, HashMap<SocketAddr, TransportType>)),
    -    ListPeers(Vec<(PeerId, HashMap<SocketAddr, TransportType>)>),
    -}

    Variants§

    §

    NewPeerConnected((PeerId, HashMap<SocketAddr, TransportType>))

    §

    ListPeers(Vec<(PeerId, HashMap<SocketAddr, TransportType>)>)

    Trait Implementations§

    source§

    impl Clone for PeerManagementMessage

    source§

    fn clone(&self) -> PeerManagementMessage

    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 PeerManagementMessage

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Deserializer<PeerManagementMessage> for PeerManagementMessageDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + NewPeerConnected((PeerId, HashMap<SocketAddr, TransportType>)), + ListPeers(Vec<(PeerId, HashMap<SocketAddr, TransportType>)>), +}

    Variants§

    §

    NewPeerConnected((PeerId, HashMap<SocketAddr, TransportType>))

    §

    ListPeers(Vec<(PeerId, HashMap<SocketAddr, TransportType>)>)

    Trait Implementations§

    source§

    impl Clone for PeerManagementMessage

    source§

    fn clone(&self) -> PeerManagementMessage

    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 PeerManagementMessage

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Deserializer<PeerManagementMessage> for PeerManagementMessageDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], PeerManagementMessage, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl From<&PeerManagementMessage> for MessageTypeId

    source§

    fn from(message: &PeerManagementMessage) -> Self

    Converts to this type from the input type.
    source§

    impl From<PeerManagementMessage> for Message

    source§

    fn from(message: PeerManagementMessage) -> Self

    Converts to this type from the input type.
    source§

    impl Serializer<PeerManagementMessage> for PeerManagementMessageSerializer

    source§

    fn serialize( +) -> IResult<&'a [u8], PeerManagementMessage, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl From<&PeerManagementMessage> for MessageTypeId

    source§

    fn from(message: &PeerManagementMessage) -> Self

    Converts to this type from the input type.
    source§

    impl From<PeerManagementMessage> for Message

    source§

    fn from(message: PeerManagementMessage) -> Self

    Converts to this type from the input type.
    source§

    impl Serializer<PeerManagementMessage> for PeerManagementMessageSerializer

    source§

    fn serialize( &self, value: &PeerManagementMessage, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> ArchivePointee for T

    §

    type ArchivedMetadata = ()

    The archived version of the pointer metadata for this type.
    §

    fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata

    Converts some archived metadata to the pointer metadata for itself.
    source§

    impl<T> Borrow<T> for Twhere diff --git a/massa_protocol_worker/handlers/peer_handler/messages/struct.PeerManagementMessageDeserializer.html b/massa_protocol_worker/handlers/peer_handler/messages/struct.PeerManagementMessageDeserializer.html index 5cb5e031661..e78a8c8694e 100644 --- a/massa_protocol_worker/handlers/peer_handler/messages/struct.PeerManagementMessageDeserializer.html +++ b/massa_protocol_worker/handlers/peer_handler/messages/struct.PeerManagementMessageDeserializer.html @@ -1,13 +1,13 @@ PeerManagementMessageDeserializer in massa_protocol_worker::handlers::peer_handler::messages - Rust
    pub struct PeerManagementMessageDeserializer {
    -    id_deserializer: U64VarIntDeserializer,
    -    listeners_length_deserializer: U64VarIntDeserializer,
    -    peers_length_deserializer: U64VarIntDeserializer,
    +    id_deserializer: U64VarIntDeserializer,
    +    listeners_length_deserializer: U64VarIntDeserializer,
    +    peers_length_deserializer: U64VarIntDeserializer,
         ip_addr_deserializer: IpAddrDeserializer,
    -    peer_id_deserializer: PeerIdDeserializer,
    -}

    Fields§

    §id_deserializer: U64VarIntDeserializer§listeners_length_deserializer: U64VarIntDeserializer§peers_length_deserializer: U64VarIntDeserializer§ip_addr_deserializer: IpAddrDeserializer§peer_id_deserializer: PeerIdDeserializer

    Implementations§

    Trait Implementations§

    source§

    impl Deserializer<PeerManagementMessage> for PeerManagementMessageDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( + peer_id_deserializer: PeerIdDeserializer, +}

    Fields§

    §id_deserializer: U64VarIntDeserializer§listeners_length_deserializer: U64VarIntDeserializer§peers_length_deserializer: U64VarIntDeserializer§ip_addr_deserializer: IpAddrDeserializer§peer_id_deserializer: PeerIdDeserializer

    Implementations§

    Trait Implementations§

    source§

    impl Deserializer<PeerManagementMessage> for PeerManagementMessageDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], PeerManagementMessage, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], PeerManagementMessage, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> ArchivePointee for T

    §

    type ArchivedMetadata = ()

    The archived version of the pointer metadata for this type.
    §

    fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata

    Converts some archived metadata to the pointer metadata for itself.
    source§

    impl<T> Borrow<T> for Twhere diff --git a/massa_protocol_worker/handlers/peer_handler/messages/struct.PeerManagementMessageSerializer.html b/massa_protocol_worker/handlers/peer_handler/messages/struct.PeerManagementMessageSerializer.html index 3d1c0136adc..842e663e354 100644 --- a/massa_protocol_worker/handlers/peer_handler/messages/struct.PeerManagementMessageSerializer.html +++ b/massa_protocol_worker/handlers/peer_handler/messages/struct.PeerManagementMessageSerializer.html @@ -1,13 +1,13 @@ PeerManagementMessageSerializer in massa_protocol_worker::handlers::peer_handler::messages - Rust
    pub struct PeerManagementMessageSerializer {
    -    id_serializer: U64VarIntSerializer,
    -    length_serializer: U64VarIntSerializer,
    +    id_serializer: U64VarIntSerializer,
    +    length_serializer: U64VarIntSerializer,
         ip_addr_serializer: IpAddrSerializer,
    -    peer_id_serializer: PeerIdSerializer,
    -}

    Fields§

    §id_serializer: U64VarIntSerializer§length_serializer: U64VarIntSerializer§ip_addr_serializer: IpAddrSerializer§peer_id_serializer: PeerIdSerializer

    Implementations§

    Trait Implementations§

    source§

    impl Clone for PeerManagementMessageSerializer

    source§

    fn clone(&self) -> PeerManagementMessageSerializer

    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 Default for PeerManagementMessageSerializer

    source§

    fn default() -> PeerManagementMessageSerializer

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<PeerManagementMessage> for PeerManagementMessageSerializer

    source§

    fn serialize( + peer_id_serializer: PeerIdSerializer, +}

    Fields§

    §id_serializer: U64VarIntSerializer§length_serializer: U64VarIntSerializer§ip_addr_serializer: IpAddrSerializer§peer_id_serializer: PeerIdSerializer

    Implementations§

    Trait Implementations§

    source§

    impl Clone for PeerManagementMessageSerializer

    source§

    fn clone(&self) -> PeerManagementMessageSerializer

    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 Default for PeerManagementMessageSerializer

    source§

    fn default() -> PeerManagementMessageSerializer

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<PeerManagementMessage> for PeerManagementMessageSerializer

    source§

    fn serialize( &self, value: &PeerManagementMessage, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> ArchivePointee for T

    §

    type ArchivedMetadata = ()

    The archived version of the pointer metadata for this type.
    §

    fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata

    Converts some archived metadata to the pointer metadata for itself.
    source§

    impl<T> Borrow<T> for Twhere diff --git a/massa_protocol_worker/handlers/peer_handler/models/enum.PeerManagementCmd.html b/massa_protocol_worker/handlers/peer_handler/models/enum.PeerManagementCmd.html index d19b4506e17..4f76c288dde 100644 --- a/massa_protocol_worker/handlers/peer_handler/models/enum.PeerManagementCmd.html +++ b/massa_protocol_worker/handlers/peer_handler/models/enum.PeerManagementCmd.html @@ -1,11 +1,11 @@ PeerManagementCmd in massa_protocol_worker::handlers::peer_handler::models - Rust
    pub enum PeerManagementCmd {
    -    Ban(Vec<PeerId>),
    -    Unban(Vec<PeerId>),
    +    Ban(Vec<PeerId>),
    +    Unban(Vec<PeerId>),
         GetBootstrapPeers {
    -        responder: MassaSender<BootstrapPeers>,
    +        responder: MassaSender<BootstrapPeers>,
         },
         Stop,
    -}

    Variants§

    §

    Ban(Vec<PeerId>)

    §

    Unban(Vec<PeerId>)

    §

    GetBootstrapPeers

    Fields

    §

    Stop

    Trait Implementations§

    source§

    impl Clone for PeerManagementCmd

    source§

    fn clone(&self) -> PeerManagementCmd

    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

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +}

    Variants§

    §

    Ban(Vec<PeerId>)

    §

    Unban(Vec<PeerId>)

    §

    GetBootstrapPeers

    Fields

    §responder: MassaSender<BootstrapPeers>
    §

    Stop

    Trait Implementations§

    source§

    impl Clone for PeerManagementCmd

    source§

    fn clone(&self) -> PeerManagementCmd

    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

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> ArchivePointee for T

    §

    type ArchivedMetadata = ()

    The archived version of the pointer metadata for this type.
    §

    fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata

    Converts some archived metadata to the pointer metadata for itself.
    source§

    impl<T> Borrow<T> for Twhere diff --git a/massa_protocol_worker/handlers/peer_handler/models/struct.PeerDB.html b/massa_protocol_worker/handlers/peer_handler/models/struct.PeerDB.html index 61c8d2ba60a..f76e50a2b43 100644 --- a/massa_protocol_worker/handlers/peer_handler/models/struct.PeerDB.html +++ b/massa_protocol_worker/handlers/peer_handler/models/struct.PeerDB.html @@ -1,9 +1,9 @@ PeerDB in massa_protocol_worker::handlers::peer_handler::models - Rust
    pub struct PeerDB {
    -    pub peers: HashMap<PeerId, PeerInfo>,
    +    pub peers: HashMap<PeerId, PeerInfo>,
         pub tested_addresses: HashMap<SocketAddr, MassaTime>,
         pub try_connect_history: HashMap<SocketAddr, ConnectionMetadata>,
         pub peers_in_test: HashSet<SocketAddr>,
    -}

    Fields§

    §peers: HashMap<PeerId, PeerInfo>§tested_addresses: HashMap<SocketAddr, MassaTime>

    Tested addresses used to avoid testing the same address too often. //TODO: Need to be pruned

    +}

    Fields§

    §peers: HashMap<PeerId, PeerInfo>§tested_addresses: HashMap<SocketAddr, MassaTime>

    Tested addresses used to avoid testing the same address too often. //TODO: Need to be pruned

    §try_connect_history: HashMap<SocketAddr, ConnectionMetadata>

    history of try connection to peers

    §peers_in_test: HashSet<SocketAddr>

    peers currently tested

    Trait Implementations§

    source§

    impl Clone for PeerDB

    source§

    fn clone(&self) -> PeerDB

    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 Default for PeerDB

    source§

    fn default() -> PeerDB

    Returns the “default value” for a type. Read more
    source§

    impl PeerDBTrait for PeerDB

    source§

    fn get_oldest_peer( @@ -14,9 +14,9 @@

    source§

    fn get_rand_peers_to_send( &self, nb_peers: usize -) -> Vec<(PeerId, HashMap<SocketAddr, TransportType>)>

    Select max 100 peers to send to another peer +) -> Vec<(PeerId, HashMap<SocketAddr, TransportType>)>

    Select max 100 peers to send to another peer The selected peers should has been online within the last 3 days

    -
    source§

    fn ban_peer(&mut self, peer_id: &PeerId)

    source§

    fn unban_peer(&mut self, peer_id: &PeerId)

    source§

    fn clone_box(&self) -> Box<dyn PeerDBTrait>

    source§

    fn get_banned_peer_count(&self) -> u64

    source§

    fn get_known_peer_count(&self) -> u64

    source§

    fn get_peers(&self) -> &HashMap<PeerId, PeerInfo>

    source§

    fn get_peers_mut(&mut self) -> &mut HashMap<PeerId, PeerInfo>

    source§

    fn get_connection_metadata_or_default( +

    source§

    fn ban_peer(&mut self, peer_id: &PeerId)

    source§

    fn unban_peer(&mut self, peer_id: &PeerId)

    source§

    fn clone_box(&self) -> Box<dyn PeerDBTrait>

    source§

    fn get_banned_peer_count(&self) -> u64

    source§

    fn get_known_peer_count(&self) -> u64

    source§

    fn get_peers(&self) -> &HashMap<PeerId, PeerInfo>

    source§

    fn get_peers_mut(&mut self) -> &mut HashMap<PeerId, PeerInfo>

    source§

    fn get_connection_metadata_or_default( &self, addr: &SocketAddr ) -> ConnectionMetadata

    source§

    fn set_try_connect_success_or_insert(&mut self, addr: &SocketAddr)

    source§

    fn set_try_connect_failure_or_insert(&mut self, addr: &SocketAddr)

    source§

    fn set_try_connect_test_success_or_insert(&mut self, addr: &SocketAddr)

    source§

    fn set_try_connect_test_failure_or_insert(&mut self, addr: &SocketAddr)

    source§

    fn get_peers_in_test(&self) -> &HashSet<SocketAddr>

    source§

    fn insert_peer_in_test(&mut self, addr: &SocketAddr) -> bool

    source§

    fn remove_peer_in_test(&mut self, addr: &SocketAddr) -> bool

    source§

    fn insert_tested_address(&mut self, addr: &SocketAddr, time: MassaTime)

    source§

    fn get_tested_addresses(&self) -> &HashMap<SocketAddr, MassaTime>

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere diff --git a/massa_protocol_worker/handlers/peer_handler/models/struct.PeerManagementChannel.html b/massa_protocol_worker/handlers/peer_handler/models/struct.PeerManagementChannel.html index 13c2e7d523c..b38062171f6 100644 --- a/massa_protocol_worker/handlers/peer_handler/models/struct.PeerManagementChannel.html +++ b/massa_protocol_worker/handlers/peer_handler/models/struct.PeerManagementChannel.html @@ -1,7 +1,7 @@ PeerManagementChannel in massa_protocol_worker::handlers::peer_handler::models - Rust
    pub struct PeerManagementChannel {
    -    pub msg_sender: MassaSender<(PeerId, Vec<u8>)>,
    +    pub msg_sender: MassaSender<(PeerId, Vec<u8>)>,
         pub command_sender: MassaSender<PeerManagementCmd>,
    -}

    Fields§

    §msg_sender: MassaSender<(PeerId, Vec<u8>)>§command_sender: MassaSender<PeerManagementCmd>

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +}

    Fields§

    §msg_sender: MassaSender<(PeerId, Vec<u8>)>§command_sender: MassaSender<PeerManagementCmd>

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> ArchivePointee for T

    §

    type ArchivedMetadata = ()

    The archived version of the pointer metadata for this type.
    §

    fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata

    Converts some archived metadata to the pointer metadata for itself.
    source§

    impl<T> Borrow<T> for Twhere diff --git a/massa_protocol_worker/handlers/peer_handler/models/type.InitialPeers.html b/massa_protocol_worker/handlers/peer_handler/models/type.InitialPeers.html index 8d8dd4616fe..d2a5e69f3ef 100644 --- a/massa_protocol_worker/handlers/peer_handler/models/type.InitialPeers.html +++ b/massa_protocol_worker/handlers/peer_handler/models/type.InitialPeers.html @@ -1,3 +1,3 @@ -InitialPeers in massa_protocol_worker::handlers::peer_handler::models - Rust
    pub type InitialPeers = HashMap<PeerId, HashMap<SocketAddr, TransportType>>;

    Aliased Type§

    struct InitialPeers {
    -    base: HashMap<PeerId, HashMap<SocketAddr, TransportType, RandomState>, RandomState, Global>,
    -}

    Fields§

    §base: HashMap<PeerId, HashMap<SocketAddr, TransportType, RandomState>, RandomState, Global>
    \ No newline at end of file +InitialPeers in massa_protocol_worker::handlers::peer_handler::models - Rust
    pub type InitialPeers = HashMap<PeerId, HashMap<SocketAddr, TransportType>>;

    Aliased Type§

    struct InitialPeers {
    +    base: HashMap<PeerId, HashMap<SocketAddr, TransportType, RandomState>, RandomState, Global>,
    +}

    Fields§

    §base: HashMap<PeerId, HashMap<SocketAddr, TransportType, RandomState>, RandomState, Global>
    \ No newline at end of file diff --git a/massa_protocol_worker/handlers/peer_handler/models/type.PeerMessageTuple.html b/massa_protocol_worker/handlers/peer_handler/models/type.PeerMessageTuple.html index 93d33cc584f..e6865abde58 100644 --- a/massa_protocol_worker/handlers/peer_handler/models/type.PeerMessageTuple.html +++ b/massa_protocol_worker/handlers/peer_handler/models/type.PeerMessageTuple.html @@ -1,4 +1,4 @@ -PeerMessageTuple in massa_protocol_worker::handlers::peer_handler::models - Rust
    pub type PeerMessageTuple = (PeerId, Vec<u8>);

    Trait Implementations§

    §

    impl<F, Fut, Res, S, B> Handler<((),), S, B> for Fwhere +PeerMessageTuple in massa_protocol_worker::handlers::peer_handler::models - Rust
    pub type PeerMessageTuple = (PeerId, Vec<u8>);

    Trait Implementations§

    §

    impl<F, Fut, Res, S, B> Handler<((),), S, B> for Fwhere F: FnOnce() -> Fut + Clone + Send + 'static, Fut: Future<Output = Res> + Send, Res: IntoResponse, diff --git a/massa_protocol_worker/handlers/peer_handler/struct.MassaHandshake.html b/massa_protocol_worker/handlers/peer_handler/struct.MassaHandshake.html index d04d4a6eb71..df5e14323a8 100644 --- a/massa_protocol_worker/handlers/peer_handler/struct.MassaHandshake.html +++ b/massa_protocol_worker/handlers/peer_handler/struct.MassaHandshake.html @@ -3,21 +3,21 @@ pub announcement_deserializer: AnnouncementDeserializer, pub version_serializer: VersionSerializer, pub version_deserializer: VersionDeserializer, - pub config: ProtocolConfig, + pub config: ProtocolConfig, pub peer_db: Arc<RwLock<dyn PeerDBTrait>>, peer_mngt_msg_serializer: MessagesSerializer, - peer_id_serializer: PeerIdSerializer, - peer_id_deserializer: PeerIdDeserializer, -}

    Fields§

    §announcement_serializer: AnnouncementSerializer§announcement_deserializer: AnnouncementDeserializer§version_serializer: VersionSerializer§version_deserializer: VersionDeserializer§config: ProtocolConfig§peer_db: Arc<RwLock<dyn PeerDBTrait>>§peer_mngt_msg_serializer: MessagesSerializer§peer_id_serializer: PeerIdSerializer§peer_id_deserializer: PeerIdDeserializer

    Implementations§

    source§

    impl MassaHandshake

    source

    pub fn new( + peer_id_serializer: PeerIdSerializer, + peer_id_deserializer: PeerIdDeserializer, +}

    Fields§

    §announcement_serializer: AnnouncementSerializer§announcement_deserializer: AnnouncementDeserializer§version_serializer: VersionSerializer§version_deserializer: VersionDeserializer§config: ProtocolConfig§peer_db: Arc<RwLock<dyn PeerDBTrait>>§peer_mngt_msg_serializer: MessagesSerializer§peer_id_serializer: PeerIdSerializer§peer_id_deserializer: PeerIdDeserializer

    Implementations§

    source§

    impl MassaHandshake

    source

    pub fn new( peer_db: Arc<RwLock<dyn PeerDBTrait>>, - config: ProtocolConfig -) -> Self

    source

    fn handshake_fail(&mut self, addr: &SocketAddr)

    Trait Implementations§

    source§

    impl Clone for MassaHandshake

    source§

    fn clone(&self) -> MassaHandshake

    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 InitConnectionHandler<PeerId, Context, MessagesHandler> for MassaHandshake

    source§

    fn perform_handshake( + config: ProtocolConfig +) -> Self

    source

    fn handshake_fail(&mut self, addr: &SocketAddr)

    Trait Implementations§

    source§

    impl Clone for MassaHandshake

    source§

    fn clone(&self) -> MassaHandshake

    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 InitConnectionHandler<PeerId, Context, MessagesHandler> for MassaHandshake

    source§

    fn perform_handshake( &mut self, context: &Context, endpoint: &mut Endpoint, listeners: &HashMap<SocketAddr, TransportType>, messages_handler: MessagesHandler -) -> PeerNetResult<PeerId>

    source§

    fn fallback_function( +) -> PeerNetResult<PeerId>

    source§

    fn fallback_function( &mut self, context: &Context, endpoint: &mut Endpoint, diff --git a/massa_protocol_worker/handlers/peer_handler/struct.PeerManagementHandler.html b/massa_protocol_worker/handlers/peer_handler/struct.PeerManagementHandler.html index 8885588aed1..ea0f83cdb12 100644 --- a/massa_protocol_worker/handlers/peer_handler/struct.PeerManagementHandler.html +++ b/massa_protocol_worker/handlers/peer_handler/struct.PeerManagementHandler.html @@ -4,16 +4,16 @@ pub sender: PeerManagementChannel, testers: Vec<Tester>, }

    Fields§

    §peer_db: Arc<RwLock<dyn PeerDBTrait>>§thread_join: Option<JoinHandle<()>>§sender: PeerManagementChannel§testers: Vec<Tester>

    Implementations§

    source§

    impl PeerManagementHandler

    source

    pub fn new( - initial_peers: HashMap<PeerId, HashMap<SocketAddr, TransportType>>, - peer_id: PeerId, + initial_peers: HashMap<PeerId, HashMap<SocketAddr, TransportType>>, + peer_id: PeerId, peer_db: Arc<RwLock<dyn PeerDBTrait>>, - (sender_msg, receiver_msg): (MassaSender<(PeerId, Vec<u8>)>, MassaReceiver<(PeerId, Vec<u8>)>), + (sender_msg, receiver_msg): (MassaSender<(PeerId, Vec<u8>)>, MassaReceiver<(PeerId, Vec<u8>)>), (sender_cmd, receiver_cmd): (MassaSender<PeerManagementCmd>, MassaReceiver<PeerManagementCmd>), messages_handler: MessagesHandler, active_connections: Box<dyn ActiveConnectionsTrait>, target_out_connections: HashMap<String, (Vec<IpAddr>, usize)>, default_target_out_connections: usize, - config: &ProtocolConfig, + config: &ProtocolConfig, massa_metrics: MassaMetrics ) -> Self

    source

    pub fn stop(&mut self)

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> ArchivePointee for T

    §

    type ArchivedMetadata = ()

    The archived version of the pointer metadata for this type.
    §

    fn pointer_metadata( diff --git a/massa_protocol_worker/handlers/peer_handler/tester/struct.Tester.html b/massa_protocol_worker/handlers/peer_handler/tester/struct.Tester.html index 97121aacd87..65f22ec0a42 100644 --- a/massa_protocol_worker/handlers/peer_handler/tester/struct.Tester.html +++ b/massa_protocol_worker/handlers/peer_handler/tester/struct.Tester.html @@ -1,27 +1,27 @@ Tester in massa_protocol_worker::handlers::peer_handler::tester - Rust
    pub struct Tester {
         pub handler: Option<JoinHandle<()>>,
     }

    Fields§

    §handler: Option<JoinHandle<()>>

    Implementations§

    source§

    impl Tester

    source

    pub fn run( - config: &ProtocolConfig, + config: &ProtocolConfig, active_connections: Box<dyn ActiveConnectionsTrait>, peer_db: Arc<RwLock<dyn PeerDBTrait>>, messages_handler: MessagesHandler, target_out_connections: HashMap<String, (Vec<IpAddr>, usize)>, default_target_out_connections: usize, massa_metrics: MassaMetrics -) -> ((MassaSender<(PeerId, HashMap<SocketAddr, TransportType>)>, MassaReceiver<(PeerId, HashMap<SocketAddr, TransportType>)>), Vec<Tester>)

    source

    pub fn tcp_handshake( +) -> ((MassaSender<(PeerId, HashMap<SocketAddr, TransportType>)>, MassaReceiver<(PeerId, HashMap<SocketAddr, TransportType>)>), Vec<Tester>)

    source

    pub fn tcp_handshake( messages_handler: MessagesHandler, peer_db: Arc<RwLock<dyn PeerDBTrait>>, announcement_deserializer: AnnouncementDeserializer, version_deserializer: VersionDeserializer, - peer_id_deserializer: PeerIdDeserializer, + peer_id_deserializer: PeerIdDeserializer, addr: SocketAddr, - config: &ProtocolConfig, + config: &ProtocolConfig, massa_metrics: MassaMetrics -) -> PeerNetResult<PeerId>

    source

    pub fn new( +) -> PeerNetResult<PeerId>

    source

    pub fn new( peer_db: Arc<RwLock<dyn PeerDBTrait>>, active_connections: Box<dyn ActiveConnectionsTrait>, - protocol_config: ProtocolConfig, - receiver: MassaReceiver<(PeerId, HashMap<SocketAddr, TransportType>)>, + protocol_config: ProtocolConfig, + receiver: MassaReceiver<(PeerId, HashMap<SocketAddr, TransportType>)>, messages_handler: MessagesHandler, target_out_connections: HashMap<String, (Vec<IpAddr>, usize)>, default_target_out_connections: usize, diff --git a/massa_protocol_worker/manager/struct.ProtocolManagerImpl.html b/massa_protocol_worker/manager/struct.ProtocolManagerImpl.html index 4c46f6185de..44257a4b950 100644 --- a/massa_protocol_worker/manager/struct.ProtocolManagerImpl.html +++ b/massa_protocol_worker/manager/struct.ProtocolManagerImpl.html @@ -3,7 +3,7 @@ }
    Expand description

    protocol manager used to stop the protocol

    Fields§

    §connectivity_thread: Option<(MassaSender<ConnectivityCommand>, JoinHandle<()>)>

    Implementations§

    source§

    impl ProtocolManagerImpl

    source

    pub fn new( connectivity_thread: (MassaSender<ConnectivityCommand>, JoinHandle<()>) -) -> Self

    Trait Implementations§

    source§

    impl ProtocolManager for ProtocolManagerImpl

    source§

    fn stop(&mut self)

    Stop the protocol module

    +) -> Self

    Trait Implementations§

    source§

    impl ProtocolManager for ProtocolManagerImpl

    source§

    fn stop(&mut self)

    Stop the protocol module

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> ArchivePointee for T

    §

    type ArchivedMetadata = ()

    The archived version of the pointer metadata for this type.
    §

    fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata diff --git a/massa_protocol_worker/messages/struct.MessagesHandler.html b/massa_protocol_worker/messages/struct.MessagesHandler.html index 513f2605d73..375c533ce5a 100644 --- a/massa_protocol_worker/messages/struct.MessagesHandler.html +++ b/massa_protocol_worker/messages/struct.MessagesHandler.html @@ -1,21 +1,21 @@ MessagesHandler in massa_protocol_worker::messages - Rust
    pub struct MessagesHandler {
    -    pub id_deserializer: U64VarIntDeserializer,
    -    pub sender_blocks: MassaSender<(PeerId, Vec<u8>)>,
    -    pub sender_endorsements: MassaSender<(PeerId, Vec<u8>)>,
    -    pub sender_operations: MassaSender<(PeerId, Vec<u8>)>,
    -    pub sender_peers: MassaSender<(PeerId, Vec<u8>)>,
    -}

    Fields§

    §id_deserializer: U64VarIntDeserializer§sender_blocks: MassaSender<(PeerId, Vec<u8>)>§sender_endorsements: MassaSender<(PeerId, Vec<u8>)>§sender_operations: MassaSender<(PeerId, Vec<u8>)>§sender_peers: MassaSender<(PeerId, Vec<u8>)>

    Trait Implementations§

    source§

    impl Clone for MessagesHandler

    source§

    fn clone(&self) -> MessagesHandler

    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 InitConnectionHandler<PeerId, Context, MessagesHandler> for MassaHandshake

    source§

    fn perform_handshake( + pub id_deserializer: U64VarIntDeserializer, + pub sender_blocks: MassaSender<(PeerId, Vec<u8>)>, + pub sender_endorsements: MassaSender<(PeerId, Vec<u8>)>, + pub sender_operations: MassaSender<(PeerId, Vec<u8>)>, + pub sender_peers: MassaSender<(PeerId, Vec<u8>)>, +}

    Fields§

    §id_deserializer: U64VarIntDeserializer§sender_blocks: MassaSender<(PeerId, Vec<u8>)>§sender_endorsements: MassaSender<(PeerId, Vec<u8>)>§sender_operations: MassaSender<(PeerId, Vec<u8>)>§sender_peers: MassaSender<(PeerId, Vec<u8>)>

    Trait Implementations§

    source§

    impl Clone for MessagesHandler

    source§

    fn clone(&self) -> MessagesHandler

    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 InitConnectionHandler<PeerId, Context, MessagesHandler> for MassaHandshake

    source§

    fn perform_handshake( &mut self, context: &Context, endpoint: &mut Endpoint, listeners: &HashMap<SocketAddr, TransportType>, messages_handler: MessagesHandler -) -> PeerNetResult<PeerId>

    source§

    fn fallback_function( +) -> PeerNetResult<PeerId>

    source§

    fn fallback_function( &mut self, context: &Context, endpoint: &mut Endpoint, _listeners: &HashMap<SocketAddr, TransportType> -) -> PeerNetResult<()>

    source§

    impl MessagesHandler<PeerId> for MessagesHandler

    source§

    fn handle(&self, data: &[u8], peer_id: &PeerId) -> PeerNetResult<()>

    Handle the message received from the network

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> PeerNetResult<()>

    source§

    impl MessagesHandler<PeerId> for MessagesHandler

    source§

    fn handle(&self, data: &[u8], peer_id: &PeerId) -> PeerNetResult<()>

    Handle the message received from the network

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> ArchivePointee for T

    §

    type ArchivedMetadata = ()

    The archived version of the pointer metadata for this type.
    §

    fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata

    Converts some archived metadata to the pointer metadata for itself.
    source§

    impl<T> Borrow<T> for Twhere diff --git a/massa_protocol_worker/messages/struct.MessagesSerializer.html b/massa_protocol_worker/messages/struct.MessagesSerializer.html index 192e494a065..f4139cdd5bb 100644 --- a/massa_protocol_worker/messages/struct.MessagesSerializer.html +++ b/massa_protocol_worker/messages/struct.MessagesSerializer.html @@ -1,10 +1,10 @@ MessagesSerializer in massa_protocol_worker::messages - Rust
    pub struct MessagesSerializer {
    -    id_serializer: U64VarIntSerializer,
    +    id_serializer: U64VarIntSerializer,
         block_message_serializer: Option<BlockMessageSerializer>,
         operation_message_serializer: Option<OperationMessageSerializer>,
         endorsement_message_serializer: Option<EndorsementMessageSerializer>,
         peer_management_message_serializer: Option<PeerManagementMessageSerializer>,
    -}

    Fields§

    §id_serializer: U64VarIntSerializer§block_message_serializer: Option<BlockMessageSerializer>§operation_message_serializer: Option<OperationMessageSerializer>§endorsement_message_serializer: Option<EndorsementMessageSerializer>§peer_management_message_serializer: Option<PeerManagementMessageSerializer>

    Implementations§

    source§

    impl MessagesSerializer

    source

    pub fn new() -> Self

    source

    pub fn with_block_message_serializer( +}

    Fields§

    §id_serializer: U64VarIntSerializer§block_message_serializer: Option<BlockMessageSerializer>§operation_message_serializer: Option<OperationMessageSerializer>§endorsement_message_serializer: Option<EndorsementMessageSerializer>§peer_management_message_serializer: Option<PeerManagementMessageSerializer>

    Implementations§

    source§

    impl MessagesSerializer

    source

    pub fn new() -> Self

    source

    pub fn with_block_message_serializer( self, block_message_serializer: BlockMessageSerializer ) -> Self

    source

    pub fn with_operation_message_serializer( diff --git a/massa_protocol_worker/sig_verifier/fn.verify_sigs_batch.html b/massa_protocol_worker/sig_verifier/fn.verify_sigs_batch.html index a03268c7779..a97d4e8ae94 100644 --- a/massa_protocol_worker/sig_verifier/fn.verify_sigs_batch.html +++ b/massa_protocol_worker/sig_verifier/fn.verify_sigs_batch.html @@ -1,5 +1,5 @@ verify_sigs_batch in massa_protocol_worker::sig_verifier - Rust
    pub fn verify_sigs_batch(
         ops: &[(Hash, Signature, PublicKey)]
    -) -> Result<(), ProtocolError>
    Expand description

    Efficiently verifies a batch of signatures in parallel. +) -> Result<(), ProtocolError>

    Expand description

    Efficiently verifies a batch of signatures in parallel. Returns an error if at least one of them fails to verify.

    \ No newline at end of file diff --git a/massa_protocol_worker/worker/fn.create_protocol_controller.html b/massa_protocol_worker/worker/fn.create_protocol_controller.html index a085174acdb..3341a318616 100644 --- a/massa_protocol_worker/worker/fn.create_protocol_controller.html +++ b/massa_protocol_worker/worker/fn.create_protocol_controller.html @@ -1,5 +1,5 @@ create_protocol_controller in massa_protocol_worker::worker - Rust
    pub fn create_protocol_controller(
    -    config: ProtocolConfig
    -) -> (Box<dyn ProtocolController>, ProtocolChannels)
    Expand description

    This function exists because consensus need the protocol controller and we need consensus controller. + config: ProtocolConfig +) -> (Box<dyn ProtocolController>, ProtocolChannels)

    Expand description

    This function exists because consensus need the protocol controller and we need consensus controller. Someone has to be created first.

    \ No newline at end of file diff --git a/massa_protocol_worker/worker/fn.start_protocol_controller.html b/massa_protocol_worker/worker/fn.start_protocol_controller.html index 750b510a38e..6f5d7da39d6 100644 --- a/massa_protocol_worker/worker/fn.start_protocol_controller.html +++ b/massa_protocol_worker/worker/fn.start_protocol_controller.html @@ -1,14 +1,14 @@ start_protocol_controller in massa_protocol_worker::worker - Rust
    pub fn start_protocol_controller(
    -    config: ProtocolConfig,
    +    config: ProtocolConfig,
         selector_controller: Box<dyn SelectorController>,
    -    consensus_controller: Box<dyn ConsensusController>,
    -    bootstrap_peers: Option<BootstrapPeers>,
    +    consensus_controller: Box<dyn ConsensusController>,
    +    bootstrap_peers: Option<BootstrapPeers>,
         pool_controller: Box<dyn PoolController>,
         storage: Storage,
         protocol_channels: ProtocolChannels,
         mip_store: MipStore,
         massa_metrics: MassaMetrics
    -) -> Result<(Box<dyn ProtocolManager>, KeyPair, NodeId), ProtocolError>
    Expand description

    start a new ProtocolController from a ProtocolConfig

    +) -> Result<(Box<dyn ProtocolManager>, KeyPair, NodeId), ProtocolError>
    Expand description

    start a new ProtocolController from a ProtocolConfig

    Arguments

    source§

    fn get_nb_out_connections(&self) -> usize

    source§

    fn get_nb_in_connections(&self) -> usize

    source§

    fn shutdown_connection(&mut self, peer_id: &PeerId)

    source§

    fn get_peers_connections_bandwidth(&self) -> HashMap<String, (u64, u64)>

    source§

    fn get_peer_ids_out_connection_queue(&self) -> HashSet<SocketAddr>

    Implementors§

    \ No newline at end of file diff --git a/massa_protocol_worker/wrap_network/trait.NetworkController.html b/massa_protocol_worker/wrap_network/trait.NetworkController.html index 4c0f6248df1..ed114ab7db4 100644 --- a/massa_protocol_worker/wrap_network/trait.NetworkController.html +++ b/massa_protocol_worker/wrap_network/trait.NetworkController.html @@ -5,29 +5,29 @@ &mut self, transport_type: TransportType, addr: SocketAddr - ) -> Result<(), ProtocolError>; + ) -> Result<(), ProtocolError>; fn stop_listener( &mut self, transport_type: TransportType, addr: SocketAddr - ) -> Result<(), ProtocolError>; + ) -> Result<(), ProtocolError>; fn try_connect( &mut self, addr: SocketAddr, timeout: Duration - ) -> Result<(), ProtocolError>; + ) -> Result<(), ProtocolError>; fn get_total_bytes_received(&self) -> u64; fn get_total_bytes_sent(&self) -> u64; }

    Required Methods§

    source

    fn get_active_connections(&self) -> Box<dyn ActiveConnectionsTrait>

    source

    fn start_listener( &mut self, transport_type: TransportType, addr: SocketAddr -) -> Result<(), ProtocolError>

    source

    fn stop_listener( +) -> Result<(), ProtocolError>

    source

    fn stop_listener( &mut self, transport_type: TransportType, addr: SocketAddr -) -> Result<(), ProtocolError>

    source

    fn try_connect( +) -> Result<(), ProtocolError>

    source

    fn try_connect( &mut self, addr: SocketAddr, timeout: Duration -) -> Result<(), ProtocolError>

    source

    fn get_total_bytes_received(&self) -> u64

    source

    fn get_total_bytes_sent(&self) -> u64

    Implementors§

    \ No newline at end of file +) -> Result<(), ProtocolError>

    source

    fn get_total_bytes_received(&self) -> u64

    source

    fn get_total_bytes_sent(&self) -> u64

    Implementors§

    \ No newline at end of file diff --git a/massa_protocol_worker/wrap_peer_db/trait.PeerDBTrait.html b/massa_protocol_worker/wrap_peer_db/trait.PeerDBTrait.html index 85b3cd8ca6f..2a8c8c0e7bb 100644 --- a/massa_protocol_worker/wrap_peer_db/trait.PeerDBTrait.html +++ b/massa_protocol_worker/wrap_peer_db/trait.PeerDBTrait.html @@ -1,7 +1,7 @@ PeerDBTrait in massa_protocol_worker::wrap_peer_db - Rust
    pub trait PeerDBTrait: Send + Sync {
     
    Show 19 methods // Required methods - fn ban_peer(&mut self, peer_id: &PeerId); - fn unban_peer(&mut self, peer_id: &PeerId); + fn ban_peer(&mut self, peer_id: &PeerId); + fn unban_peer(&mut self, peer_id: &PeerId); fn clone_box(&self) -> Box<dyn PeerDBTrait>; fn get_oldest_peer( &self, @@ -11,11 +11,11 @@ fn get_rand_peers_to_send( &self, nb_peers: usize - ) -> Vec<(PeerId, HashMap<SocketAddr, TransportType>)>; + ) -> Vec<(PeerId, HashMap<SocketAddr, TransportType>)>; fn get_banned_peer_count(&self) -> u64; fn get_known_peer_count(&self) -> u64; - fn get_peers(&self) -> &HashMap<PeerId, PeerInfo>; - fn get_peers_mut(&mut self) -> &mut HashMap<PeerId, PeerInfo>; + fn get_peers(&self) -> &HashMap<PeerId, PeerInfo>; + fn get_peers_mut(&mut self) -> &mut HashMap<PeerId, PeerInfo>; fn get_connection_metadata_or_default( &self, addr: &SocketAddr @@ -29,14 +29,14 @@ fn get_peers_in_test(&self) -> &HashSet<SocketAddr>; fn insert_tested_address(&mut self, addr: &SocketAddr, time: MassaTime); fn get_tested_addresses(&self) -> &HashMap<SocketAddr, MassaTime>; -
    }

    Required Methods§

    source

    fn ban_peer(&mut self, peer_id: &PeerId)

    source

    fn unban_peer(&mut self, peer_id: &PeerId)

    source

    fn clone_box(&self) -> Box<dyn PeerDBTrait>

    source

    fn get_oldest_peer( +

    }

    Required Methods§

    source

    fn ban_peer(&mut self, peer_id: &PeerId)

    source

    fn unban_peer(&mut self, peer_id: &PeerId)

    source

    fn clone_box(&self) -> Box<dyn PeerDBTrait>

    source

    fn get_oldest_peer( &self, cooldown: Duration, in_test: &HashSet<SocketAddr> ) -> Option<SocketAddr>

    source

    fn get_rand_peers_to_send( &self, nb_peers: usize -) -> Vec<(PeerId, HashMap<SocketAddr, TransportType>)>

    source

    fn get_banned_peer_count(&self) -> u64

    source

    fn get_known_peer_count(&self) -> u64

    source

    fn get_peers(&self) -> &HashMap<PeerId, PeerInfo>

    source

    fn get_peers_mut(&mut self) -> &mut HashMap<PeerId, PeerInfo>

    source

    fn get_connection_metadata_or_default( +) -> Vec<(PeerId, HashMap<SocketAddr, TransportType>)>

    source

    fn get_banned_peer_count(&self) -> u64

    source

    fn get_known_peer_count(&self) -> u64

    source

    fn get_peers(&self) -> &HashMap<PeerId, PeerInfo>

    source

    fn get_peers_mut(&mut self) -> &mut HashMap<PeerId, PeerInfo>

    source

    fn get_connection_metadata_or_default( &self, addr: &SocketAddr ) -> ConnectionMetadata

    source

    fn set_try_connect_success_or_insert(&mut self, addr: &SocketAddr)

    source

    fn set_try_connect_failure_or_insert(&mut self, addr: &SocketAddr)

    source

    fn set_try_connect_test_success_or_insert(&mut self, addr: &SocketAddr)

    source

    fn set_try_connect_test_failure_or_insert(&mut self, addr: &SocketAddr)

    source

    fn insert_peer_in_test(&mut self, addr: &SocketAddr) -> bool

    source

    fn remove_peer_in_test(&mut self, addr: &SocketAddr) -> bool

    source

    fn get_peers_in_test(&self) -> &HashSet<SocketAddr>

    source

    fn insert_tested_address(&mut self, addr: &SocketAddr, time: MassaTime)

    source

    fn get_tested_addresses(&self) -> &HashMap<SocketAddr, MassaTime>

    Trait Implementations§

    source§

    impl Clone for Box<dyn PeerDBTrait>

    source§

    fn clone(&self) -> Box<dyn PeerDBTrait>

    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

    Implementors§

    \ No newline at end of file diff --git a/massa_versioning/versioning/enum.ComponentState.html b/massa_versioning/versioning/enum.ComponentState.html index 49ba7f76c07..ee6c8d2a4c6 100644 --- a/massa_versioning/versioning/enum.ComponentState.html +++ b/massa_versioning/versioning/enum.ComponentState.html @@ -6,16 +6,16 @@ Active(Active), Failed(Failed), }
    Expand description

    State machine for a Versioning component that tracks the deployment state

    -

    Variants§

    §

    Error

    §

    Defined(Defined)

    §

    Started(Started)

    §

    LockedIn(LockedIn)

    §

    Active(Active)

    §

    Failed(Failed)

    Implementations§

    Trait Implementations§

    source§

    impl Clone for ComponentState

    source§

    fn clone(&self) -> ComponentState

    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 ComponentState

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for ComponentState

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Deserializer<ComponentState> for ComponentStateDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Variants§

    §

    Error

    §

    Defined(Defined)

    §

    Started(Started)

    §

    LockedIn(LockedIn)

    §

    Active(Active)

    §

    Failed(Failed)

    Implementations§

    Trait Implementations§

    source§

    impl Clone for ComponentState

    source§

    fn clone(&self) -> ComponentState

    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 ComponentState

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for ComponentState

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Deserializer<ComponentState> for ComponentStateDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], ComponentState, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl From<&ComponentState> for ComponentStateTypeId

    source§

    fn from(value: &ComponentState) -> Self

    Converts to this type from the input type.
    source§

    impl PartialEq<ComponentState> for ComponentState

    source§

    fn eq(&self, other: &ComponentState) -> bool

    This method tests for self and other values to be equal, and is used +) -> IResult<&'a [u8], ComponentState, E>

    Deserialize a value T from a buffer of u8. Read more

    source§

    impl From<&ComponentState> for ComponentStateTypeId

    source§

    fn from(value: &ComponentState) -> Self

    Converts to this type from the input type.
    source§

    impl PartialEq<ComponentState> for ComponentState

    source§

    fn eq(&self, other: &ComponentState) -> 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 Serializer<ComponentState> for ComponentStateSerializer

    source§

    fn serialize( +sufficient, and should not be overridden without very good reason.

    source§

    impl Serializer<ComponentState> for ComponentStateSerializer

    source§

    fn serialize( &self, value: &ComponentState, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl Copy for ComponentState

    source§

    impl StructuralPartialEq for ComponentState

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl Copy for ComponentState

    source§

    impl StructuralPartialEq for ComponentState

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for Twhere T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_versioning/versioning/struct.AdvanceLW.html b/massa_versioning/versioning/struct.AdvanceLW.html index cde530599e9..9e3a0b4ddbe 100644 --- a/massa_versioning/versioning/struct.AdvanceLW.html +++ b/massa_versioning/versioning/struct.AdvanceLW.html @@ -3,21 +3,21 @@ pub now: MassaTime, }

    Fields§

    §threshold: Ratio<u64>

    % of past blocks with this version

    §now: MassaTime

    Current time (timestamp)

    -

    Trait Implementations§

    source§

    impl Clone for AdvanceLW

    source§

    fn clone(&self) -> AdvanceLW

    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 AdvanceLW

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Deserializer<AdvanceLW> for AdvanceLWDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Trait Implementations§

    source§

    impl Clone for AdvanceLW

    source§

    fn clone(&self) -> AdvanceLW

    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 AdvanceLW

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Deserializer<AdvanceLW> for AdvanceLWDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], AdvanceLW, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl From<&Advance> for AdvanceLW

    source§

    fn from(value: &Advance) -> Self

    Converts to this type from the input type.
    source§

    impl Ord for AdvanceLW

    source§

    fn cmp(&self, other: &Self) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Selfwhere +) -> IResult<&'a [u8], AdvanceLW, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl From<&Advance> for AdvanceLW

    source§

    fn from(value: &Advance) -> Self

    Converts to this type from the input type.
    source§

    impl Ord for AdvanceLW

    source§

    fn cmp(&self, other: &Self) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Selfwhere Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Selfwhere Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq<AdvanceLW> for AdvanceLW

    source§

    fn eq(&self, other: &Self) -> 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 PartialOrd<AdvanceLW> for AdvanceLW

    source§

    fn partial_cmp(&self, other: &Self) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    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 more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Serializer<AdvanceLW> for AdvanceLWSerializer

    source§

    impl Serializer<AdvanceLW> for AdvanceLWSerializer

    source§

    fn serialize( &self, value: &AdvanceLW, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl Eq for AdvanceLW

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    source§

    impl Eq for AdvanceLW

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for Twhere T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<Q, K> Comparable<K> for Qwhere diff --git a/massa_versioning/versioning/struct.MipInfo.html b/massa_versioning/versioning/struct.MipInfo.html index 171d2ddc839..e9340579a0a 100644 --- a/massa_versioning/versioning/struct.MipInfo.html +++ b/massa_versioning/versioning/struct.MipInfo.html @@ -12,21 +12,21 @@

    §start: MassaTime

    a timestamp at which the version gains its meaning (e.g. announced in block header)

    §timeout: MassaTime

    a timestamp at the which the deployment is considered failed

    §activation_delay: MassaTime

    Once deployment has been locked, wait for this duration before deployment is considered active

    -

    Trait Implementations§

    source§

    impl Clone for MipInfo

    source§

    fn clone(&self) -> MipInfo

    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 MipInfo

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Deserializer<MipInfo> for MipInfoDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Trait Implementations§

    source§

    impl Clone for MipInfo

    source§

    fn clone(&self) -> MipInfo

    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 MipInfo

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Deserializer<MipInfo> for MipInfoDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], MipInfo, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl From<&MipInfo> for MipInfo

    source§

    fn from(value: &MipInfo) -> Self

    Converts to this type from the input type.
    source§

    impl Ord for MipInfo

    source§

    fn cmp(&self, other: &Self) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Selfwhere +) -> IResult<&'a [u8], MipInfo, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl From<&MipInfo> for MipInfo

    source§

    fn from(value: &MipInfo) -> Self

    Converts to this type from the input type.
    source§

    impl Ord for MipInfo

    source§

    fn cmp(&self, other: &Self) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Selfwhere Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Selfwhere Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq<MipInfo> for MipInfo

    source§

    fn eq(&self, other: &Self) -> 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 PartialOrd<MipInfo> for MipInfo

    source§

    fn partial_cmp(&self, other: &Self) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    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 more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Serializer<MipInfo> for MipInfoSerializer

    source§

    impl Serializer<MipInfo> for MipInfoSerializer

    source§

    fn serialize( &self, value: &MipInfo, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl Eq for MipInfo

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl Eq for MipInfo

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for Twhere T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<Q, K> Comparable<K> for Qwhere diff --git a/massa_versioning/versioning/struct.MipState.html b/massa_versioning/versioning/struct.MipState.html index cf7ce250df3..ca0c112e217 100644 --- a/massa_versioning/versioning/struct.MipState.html +++ b/massa_versioning/versioning/struct.MipState.html @@ -24,16 +24,16 @@ TODO: add doc for start & timeout parameter? why do we need them?

    source

    pub fn activation_at(&self, mip_info: &MipInfo) -> Option<MassaTime>

    Return the time when state will go from LockedIn to Active, None if not already LockedIn

    source

    pub fn is_final(&self) -> bool

    Return True if state can not change anymore (e.g. Active, Failed or Error)

    -

    Trait Implementations§

    source§

    impl Clone for MipState

    source§

    fn clone(&self) -> MipState

    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 MipState

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Deserializer<MipState> for MipStateDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Trait Implementations§

    source§

    impl Clone for MipState

    source§

    fn clone(&self) -> MipState

    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 MipState

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Deserializer<MipState> for MipStateDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], MipState, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl PartialEq<MipState> for MipState

    source§

    fn eq(&self, other: &MipState) -> bool

    This method tests for self and other values to be equal, and is used +) -> IResult<&'a [u8], MipState, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl PartialEq<MipState> for MipState

    source§

    fn eq(&self, other: &MipState) -> 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 Serializer<MipState> for MipStateSerializer

    source§

    fn serialize( +sufficient, and should not be overridden without very good reason.

    source§

    impl Serializer<MipState> for MipStateSerializer

    source§

    fn serialize( &self, value: &MipState, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl StructuralPartialEq for MipState

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl StructuralPartialEq for MipState

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for Twhere T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_versioning/versioning/struct.MipStore.html b/massa_versioning/versioning/struct.MipStore.html index 64f31d325b0..8a0c806bc31 100644 --- a/massa_versioning/versioning/struct.MipStore.html +++ b/massa_versioning/versioning/struct.MipStore.html @@ -47,7 +47,7 @@ db_batch: &mut DBBatch, db_versioning_batch: &mut DBBatch, between: Option<(&MassaTime, &MassaTime)> -) -> Result<(), SerializeError>

    source

    pub fn extend_from_db( +) -> Result<(), SerializeError>

    source

    pub fn extend_from_db( &mut self, db: ShareableMassaDBController ) -> Result<(Vec<MipInfo>, BTreeMap<MipInfo, MipState>), ExtendFromDbError>

    source

    pub fn reset_db(&self, db: ShareableMassaDBController)

    source

    pub fn try_from_db( diff --git a/massa_versioning/versioning/struct.MipStoreRaw.html b/massa_versioning/versioning/struct.MipStoreRaw.html index 92fcdd7c5d1..43ba3ad2e90 100644 --- a/massa_versioning/versioning/struct.MipStoreRaw.html +++ b/massa_versioning/versioning/struct.MipStoreRaw.html @@ -54,7 +54,7 @@ batch: &mut DBBatch, versioning_batch: &mut DBBatch, between: Option<(&MassaTime, &MassaTime)> -) -> Result<(), SerializeError>

    Get MIP store changes between 2 timestamps - used by the db to update the disk

    +) -> Result<(), SerializeError>

    Get MIP store changes between 2 timestamps - used by the db to update the disk

    source

    fn extend_from_db( &mut self, db: ShareableMassaDBController @@ -63,16 +63,16 @@ db: ShareableMassaDBController, cfg: MipStatsConfig ) -> Result<Self, ExtendFromDbError>

    Create a MIP store raw with what is written on the disk

    -

    Trait Implementations§

    source§

    impl Clone for MipStoreRaw

    source§

    fn clone(&self) -> MipStoreRaw

    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 MipStoreRaw

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Deserializer<MipStoreRaw> for MipStoreRawDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Trait Implementations§

    source§

    impl Clone for MipStoreRaw

    source§

    fn clone(&self) -> MipStoreRaw

    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 MipStoreRaw

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Deserializer<MipStoreRaw> for MipStoreRawDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], MipStoreRaw, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl PartialEq<MipStoreRaw> for MipStoreRaw

    source§

    fn eq(&self, other: &MipStoreRaw) -> bool

    This method tests for self and other values to be equal, and is used +) -> IResult<&'a [u8], MipStoreRaw, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl PartialEq<MipStoreRaw> for MipStoreRaw

    source§

    fn eq(&self, other: &MipStoreRaw) -> 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 Serializer<MipStoreRaw> for MipStoreRawSerializer

    source§

    fn serialize( +sufficient, and should not be overridden without very good reason.

    source§

    impl Serializer<MipStoreRaw> for MipStoreRawSerializer

    source§

    fn serialize( &self, value: &MipStoreRaw, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl<const N: usize> TryFrom<([(MipInfo, MipState); N], MipStatsConfig)> for MipStoreRaw

    §

    type Error = UpdateWithError

    The type returned in the event of a conversion error.
    source§

    fn try_from( +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl<const N: usize> TryFrom<([(MipInfo, MipState); N], MipStatsConfig)> for MipStoreRaw

    §

    type Error = UpdateWithError

    The type returned in the event of a conversion error.
    source§

    fn try_from( (value, cfg): ([(MipInfo, MipState); N], MipStatsConfig) ) -> Result<Self, Self::Error>

    Performs the conversion.
    source§

    impl StructuralPartialEq for MipStoreRaw

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for Twhere diff --git a/massa_versioning/versioning/struct.MipStoreStats.html b/massa_versioning/versioning/struct.MipStoreStats.html index 5d0d0268b0f..7e7d2f5c562 100644 --- a/massa_versioning/versioning/struct.MipStoreStats.html +++ b/massa_versioning/versioning/struct.MipStoreStats.html @@ -3,16 +3,16 @@ pub(crate) latest_announcements: VecDeque<u32>, pub(crate) network_version_counters: HashMap<u32, u64>, }
    Expand description

    In order for a MIP to be accepted, we compute statistics about other node ‘network’ version announcement

    -

    Fields§

    §config: MipStatsConfig§latest_announcements: VecDeque<u32>§network_version_counters: HashMap<u32, u64>

    Implementations§

    source§

    impl MipStoreStats

    source

    pub(crate) fn new(config: MipStatsConfig) -> Self

    source

    fn reset(&mut self)

    Trait Implementations§

    source§

    impl Clone for MipStoreStats

    source§

    fn clone(&self) -> MipStoreStats

    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 MipStoreStats

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Deserializer<MipStoreStats> for MipStoreStatsDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Fields§

    §config: MipStatsConfig§latest_announcements: VecDeque<u32>§network_version_counters: HashMap<u32, u64>

    Implementations§

    source§

    impl MipStoreStats

    source

    pub(crate) fn new(config: MipStatsConfig) -> Self

    source

    fn reset(&mut self)

    Trait Implementations§

    source§

    impl Clone for MipStoreStats

    source§

    fn clone(&self) -> MipStoreStats

    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 MipStoreStats

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Deserializer<MipStoreStats> for MipStoreStatsDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], MipStoreStats, E>

    Deserialize a value T from a buffer of u8. Read more
    source§

    impl PartialEq<MipStoreStats> for MipStoreStats

    source§

    fn eq(&self, other: &MipStoreStats) -> bool

    This method tests for self and other values to be equal, and is used +) -> IResult<&'a [u8], MipStoreStats, E>

    Deserialize a value T from a buffer of u8. Read more

    source§

    impl PartialEq<MipStoreStats> for MipStoreStats

    source§

    fn eq(&self, other: &MipStoreStats) -> 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 Serializer<MipStoreStats> for MipStoreStatsSerializer

    source§

    fn serialize( +sufficient, and should not be overridden without very good reason.

    source§

    impl Serializer<MipStoreStats> for MipStoreStatsSerializer

    source§

    fn serialize( &self, value: &MipStoreStats, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more
    source§

    impl StructuralPartialEq for MipStoreStats

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    source§

    impl StructuralPartialEq for MipStoreStats

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for Twhere T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_versioning/versioning_ser_der/struct.AdvanceLWDeserializer.html b/massa_versioning/versioning_ser_der/struct.AdvanceLWDeserializer.html index a219b60d1ad..dcb98d795bf 100644 --- a/massa_versioning/versioning_ser_der/struct.AdvanceLWDeserializer.html +++ b/massa_versioning/versioning_ser_der/struct.AdvanceLWDeserializer.html @@ -1,12 +1,12 @@ AdvanceLWDeserializer in massa_versioning::versioning_ser_der - Rust
    pub struct AdvanceLWDeserializer {
    -    ratio_deserializer: RatioDeserializer<u64, U64VarIntDeserializer>,
    +    ratio_deserializer: RatioDeserializer<u64, U64VarIntDeserializer>,
         time_deserializer: MassaTimeDeserializer,
     }
    Expand description

    A Deserializer for AdvanceLW

    -

    Fields§

    §ratio_deserializer: RatioDeserializer<u64, U64VarIntDeserializer>§time_deserializer: MassaTimeDeserializer

    Implementations§

    source§

    impl AdvanceLWDeserializer

    source

    pub fn new() -> Self

    Creates a new AdvanceLWDeserializer

    -

    Trait Implementations§

    source§

    impl Default for AdvanceLWDeserializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Deserializer<AdvanceLW> for AdvanceLWDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Fields§

    §ratio_deserializer: RatioDeserializer<u64, U64VarIntDeserializer>§time_deserializer: MassaTimeDeserializer

    Implementations§

    source§

    impl AdvanceLWDeserializer

    source

    pub fn new() -> Self

    Creates a new AdvanceLWDeserializer

    +

    Trait Implementations§

    source§

    impl Default for AdvanceLWDeserializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Deserializer<AdvanceLW> for AdvanceLWDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], AdvanceLW, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], AdvanceLW, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for Twhere T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_versioning/versioning_ser_der/struct.AdvanceLWSerializer.html b/massa_versioning/versioning_ser_der/struct.AdvanceLWSerializer.html index 72db8cfe130..e8025206bea 100644 --- a/massa_versioning/versioning_ser_der/struct.AdvanceLWSerializer.html +++ b/massa_versioning/versioning_ser_der/struct.AdvanceLWSerializer.html @@ -1,13 +1,13 @@ AdvanceLWSerializer in massa_versioning::versioning_ser_der - Rust
    pub struct AdvanceLWSerializer {
    -    ratio_serializer: RatioSerializer<u64, U64VarIntSerializer>,
    +    ratio_serializer: RatioSerializer<u64, U64VarIntSerializer>,
         time_serializer: MassaTimeSerializer,
     }
    Expand description

    Serializer for AdvanceLW

    -

    Fields§

    §ratio_serializer: RatioSerializer<u64, U64VarIntSerializer>§time_serializer: MassaTimeSerializer

    Implementations§

    source§

    impl AdvanceLWSerializer

    source

    pub fn new() -> Self

    Creates a new Serializer

    -

    Trait Implementations§

    source§

    impl Default for AdvanceLWSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<AdvanceLW> for AdvanceLWSerializer

    Fields§

    §ratio_serializer: RatioSerializer<u64, U64VarIntSerializer>§time_serializer: MassaTimeSerializer

    Implementations§

    source§

    impl AdvanceLWSerializer

    source

    pub fn new() -> Self

    Creates a new Serializer

    +

    Trait Implementations§

    source§

    impl Default for AdvanceLWSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<AdvanceLW> for AdvanceLWSerializer

    source§

    fn serialize( &self, value: &AdvanceLW, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for Twhere T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_versioning/versioning_ser_der/struct.ComponentStateDeserializer.html b/massa_versioning/versioning_ser_der/struct.ComponentStateDeserializer.html index 475dd309982..e700fe06e60 100644 --- a/massa_versioning/versioning_ser_der/struct.ComponentStateDeserializer.html +++ b/massa_versioning/versioning_ser_der/struct.ComponentStateDeserializer.html @@ -1,13 +1,13 @@ ComponentStateDeserializer in massa_versioning::versioning_ser_der - Rust
    pub struct ComponentStateDeserializer {
    -    state_deserializer: U32VarIntDeserializer,
    -    ratio_deserializer: RatioDeserializer<u64, U64VarIntDeserializer>,
    +    state_deserializer: U32VarIntDeserializer,
    +    ratio_deserializer: RatioDeserializer<u64, U64VarIntDeserializer>,
         time_deserializer: MassaTimeDeserializer,
     }
    Expand description

    A Deserializer for ComponentState`

    -

    Fields§

    §state_deserializer: U32VarIntDeserializer§ratio_deserializer: RatioDeserializer<u64, U64VarIntDeserializer>§time_deserializer: MassaTimeDeserializer

    Implementations§

    source§

    impl ComponentStateDeserializer

    source

    pub fn new() -> Self

    Creates a new ``

    -

    Trait Implementations§

    source§

    impl Default for ComponentStateDeserializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Deserializer<ComponentState> for ComponentStateDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Fields§

    §state_deserializer: U32VarIntDeserializer§ratio_deserializer: RatioDeserializer<u64, U64VarIntDeserializer>§time_deserializer: MassaTimeDeserializer

    Implementations§

    source§

    impl ComponentStateDeserializer

    source

    pub fn new() -> Self

    Creates a new ``

    +

    Trait Implementations§

    source§

    impl Default for ComponentStateDeserializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Deserializer<ComponentState> for ComponentStateDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], ComponentState, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], ComponentState, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for Twhere T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_versioning/versioning_ser_der/struct.ComponentStateSerializer.html b/massa_versioning/versioning_ser_der/struct.ComponentStateSerializer.html index 0e81f68d7f3..6fd88d39007 100644 --- a/massa_versioning/versioning_ser_der/struct.ComponentStateSerializer.html +++ b/massa_versioning/versioning_ser_der/struct.ComponentStateSerializer.html @@ -1,14 +1,14 @@ ComponentStateSerializer in massa_versioning::versioning_ser_der - Rust
    pub struct ComponentStateSerializer {
    -    u32_serializer: U32VarIntSerializer,
    -    ratio_serializer: RatioSerializer<u64, U64VarIntSerializer>,
    +    u32_serializer: U32VarIntSerializer,
    +    ratio_serializer: RatioSerializer<u64, U64VarIntSerializer>,
         time_serializer: MassaTimeSerializer,
     }
    Expand description

    Serializer for ComponentState

    -

    Fields§

    §u32_serializer: U32VarIntSerializer§ratio_serializer: RatioSerializer<u64, U64VarIntSerializer>§time_serializer: MassaTimeSerializer

    Implementations§

    source§

    impl ComponentStateSerializer

    source

    pub fn new() -> Self

    Creates a new Serializer

    -

    Trait Implementations§

    source§

    impl Default for ComponentStateSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<ComponentState> for ComponentStateSerializer

    Fields§

    §u32_serializer: U32VarIntSerializer§ratio_serializer: RatioSerializer<u64, U64VarIntSerializer>§time_serializer: MassaTimeSerializer

    Implementations§

    source§

    impl ComponentStateSerializer

    source

    pub fn new() -> Self

    Creates a new Serializer

    +

    Trait Implementations§

    source§

    impl Default for ComponentStateSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<ComponentState> for ComponentStateSerializer

    source§

    fn serialize( &self, value: &ComponentState, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for Twhere T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_versioning/versioning_ser_der/struct.MipInfoDeserializer.html b/massa_versioning/versioning_ser_der/struct.MipInfoDeserializer.html index f0b8e408f4d..38c85f8ec71 100644 --- a/massa_versioning/versioning_ser_der/struct.MipInfoDeserializer.html +++ b/massa_versioning/versioning_ser_der/struct.MipInfoDeserializer.html @@ -1,14 +1,14 @@ MipInfoDeserializer in massa_versioning::versioning_ser_der - Rust
    pub struct MipInfoDeserializer {
    -    u32_deserializer: U32VarIntDeserializer,
    -    name_len_deserializer: U32VarIntDeserializer,
    -    components_len_deserializer: U32VarIntDeserializer,
    +    u32_deserializer: U32VarIntDeserializer,
    +    name_len_deserializer: U32VarIntDeserializer,
    +    components_len_deserializer: U32VarIntDeserializer,
         time_deserializer: MassaTimeDeserializer,
     }
    Expand description

    Deserializer for MipInfo

    -

    Fields§

    §u32_deserializer: U32VarIntDeserializer§name_len_deserializer: U32VarIntDeserializer§components_len_deserializer: U32VarIntDeserializer§time_deserializer: MassaTimeDeserializer

    Implementations§

    source§

    impl MipInfoDeserializer

    source

    pub fn new() -> Self

    Creates a new MipInfoDeserializer

    -

    Trait Implementations§

    source§

    impl Default for MipInfoDeserializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Deserializer<MipInfo> for MipInfoDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Fields§

    §u32_deserializer: U32VarIntDeserializer§name_len_deserializer: U32VarIntDeserializer§components_len_deserializer: U32VarIntDeserializer§time_deserializer: MassaTimeDeserializer

    Implementations§

    source§

    impl MipInfoDeserializer

    source

    pub fn new() -> Self

    Creates a new MipInfoDeserializer

    +

    Trait Implementations§

    source§

    impl Default for MipInfoDeserializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Deserializer<MipInfo> for MipInfoDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], MipInfo, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], MipInfo, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for Twhere T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_versioning/versioning_ser_der/struct.MipInfoSerializer.html b/massa_versioning/versioning_ser_der/struct.MipInfoSerializer.html index b7b563f5cbe..a6be32caf87 100644 --- a/massa_versioning/versioning_ser_der/struct.MipInfoSerializer.html +++ b/massa_versioning/versioning_ser_der/struct.MipInfoSerializer.html @@ -1,13 +1,13 @@ MipInfoSerializer in massa_versioning::versioning_ser_der - Rust
    pub struct MipInfoSerializer {
    -    u32_serializer: U32VarIntSerializer,
    +    u32_serializer: U32VarIntSerializer,
         time_serializer: MassaTimeSerializer,
     }
    Expand description

    Serializer for MipInfo

    -

    Fields§

    §u32_serializer: U32VarIntSerializer§time_serializer: MassaTimeSerializer

    Implementations§

    source§

    impl MipInfoSerializer

    source

    pub fn new() -> Self

    Creates a new Serializer

    -

    Trait Implementations§

    source§

    impl Default for MipInfoSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<MipInfo> for MipInfoSerializer

    Fields§

    §u32_serializer: U32VarIntSerializer§time_serializer: MassaTimeSerializer

    Implementations§

    source§

    impl MipInfoSerializer

    source

    pub fn new() -> Self

    Creates a new Serializer

    +

    Trait Implementations§

    source§

    impl Default for MipInfoSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<MipInfo> for MipInfoSerializer

    source§

    fn serialize( &self, value: &MipInfo, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for Twhere T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_versioning/versioning_ser_der/struct.MipStateDeserializer.html b/massa_versioning/versioning_ser_der/struct.MipStateDeserializer.html index 744164012ca..26dc203e06c 100644 --- a/massa_versioning/versioning_ser_der/struct.MipStateDeserializer.html +++ b/massa_versioning/versioning_ser_der/struct.MipStateDeserializer.html @@ -1,14 +1,14 @@ MipStateDeserializer in massa_versioning::versioning_ser_der - Rust
    pub struct MipStateDeserializer {
         state_deserializer: ComponentStateDeserializer,
         advance_deserializer: AdvanceLWDeserializer,
    -    state_id_deserializer: U32VarIntDeserializer,
    -    u32_deserializer: U32VarIntDeserializer,
    +    state_id_deserializer: U32VarIntDeserializer,
    +    u32_deserializer: U32VarIntDeserializer,
     }
    Expand description

    A Deserializer for MipState

    -

    Fields§

    §state_deserializer: ComponentStateDeserializer§advance_deserializer: AdvanceLWDeserializer§state_id_deserializer: U32VarIntDeserializer§u32_deserializer: U32VarIntDeserializer

    Implementations§

    source§

    impl MipStateDeserializer

    source

    pub fn new() -> Self

    Creates a new MipStateDeserializer

    -

    Trait Implementations§

    source§

    impl Default for MipStateDeserializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Deserializer<MipState> for MipStateDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Fields§

    §state_deserializer: ComponentStateDeserializer§advance_deserializer: AdvanceLWDeserializer§state_id_deserializer: U32VarIntDeserializer§u32_deserializer: U32VarIntDeserializer

    Implementations§

    source§

    impl MipStateDeserializer

    source

    pub fn new() -> Self

    Creates a new MipStateDeserializer

    +

    Trait Implementations§

    source§

    impl Default for MipStateDeserializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Deserializer<MipState> for MipStateDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], MipState, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], MipState, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for Twhere T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_versioning/versioning_ser_der/struct.MipStateSerializer.html b/massa_versioning/versioning_ser_der/struct.MipStateSerializer.html index 50e1049dee3..e8015836efe 100644 --- a/massa_versioning/versioning_ser_der/struct.MipStateSerializer.html +++ b/massa_versioning/versioning_ser_der/struct.MipStateSerializer.html @@ -1,14 +1,14 @@ MipStateSerializer in massa_versioning::versioning_ser_der - Rust
    pub struct MipStateSerializer {
         state_serializer: ComponentStateSerializer,
         advance_serializer: AdvanceLWSerializer,
    -    u32_serializer: U32VarIntSerializer,
    +    u32_serializer: U32VarIntSerializer,
     }
    Expand description

    Serializer for MipState

    -

    Fields§

    §state_serializer: ComponentStateSerializer§advance_serializer: AdvanceLWSerializer§u32_serializer: U32VarIntSerializer

    Implementations§

    source§

    impl MipStateSerializer

    source

    pub fn new() -> Self

    Creates a new MipStateSerializer

    -

    Trait Implementations§

    source§

    impl Default for MipStateSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<MipState> for MipStateSerializer

    Fields§

    §state_serializer: ComponentStateSerializer§advance_serializer: AdvanceLWSerializer§u32_serializer: U32VarIntSerializer

    Implementations§

    source§

    impl MipStateSerializer

    source

    pub fn new() -> Self

    Creates a new MipStateSerializer

    +

    Trait Implementations§

    source§

    impl Default for MipStateSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<MipState> for MipStateSerializer

    source§

    fn serialize( &self, value: &MipState, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for Twhere T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_versioning/versioning_ser_der/struct.MipStoreRawDeserializer.html b/massa_versioning/versioning_ser_der/struct.MipStoreRawDeserializer.html index 0ec55b5dcc7..8ac56ff4808 100644 --- a/massa_versioning/versioning_ser_der/struct.MipStoreRawDeserializer.html +++ b/massa_versioning/versioning_ser_der/struct.MipStoreRawDeserializer.html @@ -1,17 +1,17 @@ MipStoreRawDeserializer in massa_versioning::versioning_ser_der - Rust
    pub struct MipStoreRawDeserializer {
    -    entry_count_deserializer: U32VarIntDeserializer,
    +    entry_count_deserializer: U32VarIntDeserializer,
         info_deserializer: MipInfoDeserializer,
         state_deserializer: MipStateDeserializer,
         stats_deserializer: MipStoreStatsDeserializer,
     }
    Expand description

    A Deserializer for `VersioningStoreRaw

    -

    Fields§

    §entry_count_deserializer: U32VarIntDeserializer§info_deserializer: MipInfoDeserializer§state_deserializer: MipStateDeserializer§stats_deserializer: MipStoreStatsDeserializer

    Implementations§

    source§

    impl MipStoreRawDeserializer

    source

    pub fn new( +

    Fields§

    §entry_count_deserializer: U32VarIntDeserializer§info_deserializer: MipInfoDeserializer§state_deserializer: MipStateDeserializer§stats_deserializer: MipStoreStatsDeserializer

    Implementations§

    source§

    impl MipStoreRawDeserializer

    source

    pub fn new( block_count_considered: usize, warn_announced_version_ratio: Ratio<u64> ) -> Self

    Creates a new ``

    -

    Trait Implementations§

    source§

    impl Deserializer<MipStoreRaw> for MipStoreRawDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Trait Implementations§

    source§

    impl Deserializer<MipStoreRaw> for MipStoreRawDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], MipStoreRaw, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], MipStoreRaw, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for Twhere T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_versioning/versioning_ser_der/struct.MipStoreRawSerializer.html b/massa_versioning/versioning_ser_der/struct.MipStoreRawSerializer.html index 66773735f50..2a4e950aa9f 100644 --- a/massa_versioning/versioning_ser_der/struct.MipStoreRawSerializer.html +++ b/massa_versioning/versioning_ser_der/struct.MipStoreRawSerializer.html @@ -1,15 +1,15 @@ MipStoreRawSerializer in massa_versioning::versioning_ser_der - Rust
    pub struct MipStoreRawSerializer {
    -    u32_serializer: U32VarIntSerializer,
    +    u32_serializer: U32VarIntSerializer,
         info_serializer: MipInfoSerializer,
         state_serializer: MipStateSerializer,
         stats_serializer: MipStoreStatsSerializer,
     }
    Expand description

    Serializer for VersioningStoreRaw

    -

    Fields§

    §u32_serializer: U32VarIntSerializer§info_serializer: MipInfoSerializer§state_serializer: MipStateSerializer§stats_serializer: MipStoreStatsSerializer

    Implementations§

    source§

    impl MipStoreRawSerializer

    source

    pub fn new() -> Self

    Creates a new Serializer

    -

    Trait Implementations§

    source§

    impl Default for MipStoreRawSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<MipStoreRaw> for MipStoreRawSerializer

    Fields§

    §u32_serializer: U32VarIntSerializer§info_serializer: MipInfoSerializer§state_serializer: MipStateSerializer§stats_serializer: MipStoreStatsSerializer

    Implementations§

    source§

    impl MipStoreRawSerializer

    source

    pub fn new() -> Self

    Creates a new Serializer

    +

    Trait Implementations§

    source§

    impl Default for MipStoreRawSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<MipStoreRaw> for MipStoreRawSerializer

    source§

    fn serialize( &self, value: &MipStoreRaw, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for Twhere T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_versioning/versioning_ser_der/struct.MipStoreStatsDeserializer.html b/massa_versioning/versioning_ser_der/struct.MipStoreStatsDeserializer.html index d7197a26e94..e1a25d8bffe 100644 --- a/massa_versioning/versioning_ser_der/struct.MipStoreStatsDeserializer.html +++ b/massa_versioning/versioning_ser_der/struct.MipStoreStatsDeserializer.html @@ -1,16 +1,16 @@ MipStoreStatsDeserializer in massa_versioning::versioning_ser_der - Rust
    pub struct MipStoreStatsDeserializer {
         config: MipStatsConfig,
    -    u32_deserializer: U32VarIntDeserializer,
    -    u64_deserializer: U64VarIntDeserializer,
    +    u32_deserializer: U32VarIntDeserializer,
    +    u64_deserializer: U64VarIntDeserializer,
     }
    Expand description

    A Deserializer for `MipStoreStats

    -

    Fields§

    §config: MipStatsConfig§u32_deserializer: U32VarIntDeserializer§u64_deserializer: U64VarIntDeserializer

    Implementations§

    source§

    impl MipStoreStatsDeserializer

    source

    pub fn new( +

    Fields§

    §config: MipStatsConfig§u32_deserializer: U32VarIntDeserializer§u64_deserializer: U64VarIntDeserializer

    Implementations§

    source§

    impl MipStoreStatsDeserializer

    source

    pub fn new( block_count_considered: usize, warn_announced_version_ratio: Ratio<u64> ) -> Self

    Creates a new ``

    -

    Trait Implementations§

    source§

    impl Deserializer<MipStoreStats> for MipStoreStatsDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( +

    Trait Implementations§

    source§

    impl Deserializer<MipStoreStats> for MipStoreStatsDeserializer

    source§

    fn deserialize<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( &self, buffer: &'a [u8] -) -> IResult<&'a [u8], MipStoreStats, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> IResult<&'a [u8], MipStoreStats, E>

    Deserialize a value T from a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for Twhere T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/massa_versioning/versioning_ser_der/struct.MipStoreStatsSerializer.html b/massa_versioning/versioning_ser_der/struct.MipStoreStatsSerializer.html index 5c3d19c5c4a..0fd3341262b 100644 --- a/massa_versioning/versioning_ser_der/struct.MipStoreStatsSerializer.html +++ b/massa_versioning/versioning_ser_der/struct.MipStoreStatsSerializer.html @@ -1,13 +1,13 @@ MipStoreStatsSerializer in massa_versioning::versioning_ser_der - Rust
    pub struct MipStoreStatsSerializer {
    -    u32_serializer: U32VarIntSerializer,
    -    u64_serializer: U64VarIntSerializer,
    +    u32_serializer: U32VarIntSerializer,
    +    u64_serializer: U64VarIntSerializer,
     }
    Expand description

    Serializer for VersioningStoreRaw

    -

    Fields§

    §u32_serializer: U32VarIntSerializer§u64_serializer: U64VarIntSerializer

    Implementations§

    source§

    impl MipStoreStatsSerializer

    source

    pub fn new() -> Self

    Creates a new Serializer

    -

    Trait Implementations§

    source§

    impl Default for MipStoreStatsSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<MipStoreStats> for MipStoreStatsSerializer

    Fields§

    §u32_serializer: U32VarIntSerializer§u64_serializer: U64VarIntSerializer

    Implementations§

    source§

    impl MipStoreStatsSerializer

    source

    pub fn new() -> Self

    Creates a new Serializer

    +

    Trait Implementations§

    source§

    impl Default for MipStoreStatsSerializer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Serializer<MipStoreStats> for MipStoreStatsSerializer

    source§

    fn serialize( &self, value: &MipStoreStats, buffer: &mut Vec<u8> -) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> Result<(), SerializeError>

    Serialize a value T into a buffer of u8. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for Twhere T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> Twhere diff --git a/settings.html b/settings.html index 5bbd3682de4..65e31a20026 100644 --- a/settings.html +++ b/settings.html @@ -1 +1 @@ -Rustdoc settings

    Rustdoc settings

    Back
    \ No newline at end of file +Rustdoc settings

    Rustdoc settings

    Back
    \ No newline at end of file diff --git a/src/massa_execution_worker/speculative_executed_denunciations.rs.html b/src/massa_execution_worker/speculative_executed_denunciations.rs.html index 8693f2ca128..8144699d23f 100644 --- a/src/massa_execution_worker/speculative_executed_denunciations.rs.html +++ b/src/massa_execution_worker/speculative_executed_denunciations.rs.html @@ -89,8 +89,6 @@ 89 90 91 -92 -93

    //! Copyright (c) 2023 MASSA LABS <info@massa.net>
     
     //! Speculative list of previously executed denunciations, to prevent reuse.
    @@ -166,11 +164,9 @@
                 HistorySearchResult::Present(_) => {
                     return true;
                 }
    -            HistorySearchResult::Absent => {
    -                return false;
    -            }
                 HistorySearchResult::NoInfo => {}
    -        }
    +            HistorySearchResult::Absent => unreachable!(), // fetch_executed_denunciation does not return Absent
    +        }
     
             // check in the final state
             self.final_state
    diff --git a/src/massa_execution_worker/speculative_executed_ops.rs.html b/src/massa_execution_worker/speculative_executed_ops.rs.html
    index f1e9c497a13..5148d26c88b 100644
    --- a/src/massa_execution_worker/speculative_executed_ops.rs.html
    +++ b/src/massa_execution_worker/speculative_executed_ops.rs.html
    @@ -92,8 +92,6 @@
     92
     93
     94
    -95
    -96
     
    //! Copyright (c) 2022 MASSA LABS <info@massa.net>
     
     //! Speculative list of previously executed operations, to prevent reuse.
    @@ -163,11 +161,9 @@
                 HistorySearchResult::Present(_) => {
                     return true;
                 }
    -            HistorySearchResult::Absent => {
    -                return false;
    -            }
                 HistorySearchResult::NoInfo => {}
    -        }
    +            HistorySearchResult::Absent => unreachable!(), // fetch_executed_op does not return Absent
    +        }
     
             // check in the final state
             self.final_state.read().executed_ops_contains(op_id)