Enum hotshot_task_impls::events::HotShotEvent

source ·
pub enum HotShotEvent<TYPES: NodeType> {
Show 59 variants Shutdown, QuorumProposalRecv(Proposal<TYPES, QuorumProposal2<TYPES>>, TYPES::SignatureKey), QuorumVoteRecv(QuorumVote2<TYPES>), TimeoutVoteRecv(TimeoutVote2<TYPES>), TimeoutVoteSend(TimeoutVote2<TYPES>), DaProposalRecv(Proposal<TYPES, DaProposal2<TYPES>>, TYPES::SignatureKey), DaProposalValidated(Proposal<TYPES, DaProposal2<TYPES>>, TYPES::SignatureKey), DaVoteRecv(DaVote2<TYPES>), DaCertificateRecv(DaCertificate2<TYPES>), DaCertificateValidated(DaCertificate2<TYPES>), QuorumProposalSend(Proposal<TYPES, QuorumProposal2<TYPES>>, TYPES::SignatureKey), QuorumVoteSend(QuorumVote2<TYPES>), ExtendedQuorumVoteSend(QuorumVote2<TYPES>), QuorumProposalValidated(Proposal<TYPES, QuorumProposal2<TYPES>>, Leaf2<TYPES>), QuorumProposalRequestSend(ProposalRequestPayload<TYPES>, <TYPES::SignatureKey as SignatureKey>::PureAssembledSignatureType), QuorumProposalRequestRecv(ProposalRequestPayload<TYPES>, <TYPES::SignatureKey as SignatureKey>::PureAssembledSignatureType), QuorumProposalResponseSend(TYPES::SignatureKey, Proposal<TYPES, QuorumProposal2<TYPES>>), QuorumProposalResponseRecv(Proposal<TYPES, QuorumProposal2<TYPES>>), DaProposalSend(Proposal<TYPES, DaProposal2<TYPES>>, TYPES::SignatureKey), DaVoteSend(DaVote2<TYPES>), QcFormed(Either<QuorumCertificate<TYPES>, TimeoutCertificate<TYPES>>), Qc2Formed(Either<QuorumCertificate2<TYPES>, TimeoutCertificate2<TYPES>>), NextEpochQc2Formed(Either<NextEpochQuorumCertificate2<TYPES>, TimeoutCertificate<TYPES>>), DacSend(DaCertificate2<TYPES>, TYPES::SignatureKey), ViewChange(TYPES::View, TYPES::Epoch), ViewSyncTimeout(TYPES::View, u64, ViewSyncPhase), ViewSyncPreCommitVoteRecv(ViewSyncPreCommitVote2<TYPES>), ViewSyncCommitVoteRecv(ViewSyncCommitVote2<TYPES>), ViewSyncFinalizeVoteRecv(ViewSyncFinalizeVote2<TYPES>), ViewSyncPreCommitVoteSend(ViewSyncPreCommitVote2<TYPES>), ViewSyncCommitVoteSend(ViewSyncCommitVote2<TYPES>), ViewSyncFinalizeVoteSend(ViewSyncFinalizeVote2<TYPES>), ViewSyncPreCommitCertificateRecv(ViewSyncPreCommitCertificate2<TYPES>), ViewSyncCommitCertificateRecv(ViewSyncCommitCertificate2<TYPES>), ViewSyncFinalizeCertificateRecv(ViewSyncFinalizeCertificate2<TYPES>), ViewSyncPreCommitCertificateSend(ViewSyncPreCommitCertificate2<TYPES>, TYPES::SignatureKey), ViewSyncCommitCertificateSend(ViewSyncCommitCertificate2<TYPES>, TYPES::SignatureKey), ViewSyncFinalizeCertificateSend(ViewSyncFinalizeCertificate2<TYPES>, TYPES::SignatureKey), ViewSyncTrigger(TYPES::View), Timeout(TYPES::View, TYPES::Epoch), TransactionsRecv(Vec<TYPES::Transaction>), TransactionSend(TYPES::Transaction, TYPES::SignatureKey), SendPayloadCommitmentAndMetadata(VidCommitment, BuilderCommitment, <TYPES::BlockPayload as BlockPayload<TYPES>>::Metadata, TYPES::View, Vec1<BuilderFee<TYPES>>, Option<TYPES::AuctionResult>), BlockRecv(PackedBundle<TYPES>), VidDisperseSend(Proposal<TYPES, VidDisperse<TYPES>>, TYPES::SignatureKey), VidShareRecv(TYPES::SignatureKey, Proposal<TYPES, VidDisperseShare2<TYPES>>), VidShareValidated(Proposal<TYPES, VidDisperseShare2<TYPES>>), UpgradeProposalRecv(Proposal<TYPES, UpgradeProposal<TYPES>>, TYPES::SignatureKey), UpgradeProposalSend(Proposal<TYPES, UpgradeProposal<TYPES>>, TYPES::SignatureKey), UpgradeVoteRecv(UpgradeVote<TYPES>), UpgradeVoteSend(UpgradeVote<TYPES>), UpgradeCertificateFormed(UpgradeCertificate<TYPES>), QuorumProposalPreliminarilyValidated(Proposal<TYPES, QuorumProposal2<TYPES>>), VidRequestSend(DataRequest<TYPES>, TYPES::SignatureKey, TYPES::SignatureKey), VidRequestRecv(DataRequest<TYPES>, TYPES::SignatureKey), VidResponseSend(TYPES::SignatureKey, TYPES::SignatureKey, Proposal<TYPES, VidDisperseShare2<TYPES>>), VidResponseRecv(TYPES::SignatureKey, Proposal<TYPES, VidDisperseShare2<TYPES>>), HighQcRecv(QuorumCertificate2<TYPES>, TYPES::SignatureKey), HighQcSend(QuorumCertificate2<TYPES>, TYPES::SignatureKey, TYPES::SignatureKey),
}
Expand description

All of the possible events that can be passed between Sequencing HotShot tasks

Variants§

§

Shutdown

Shutdown the task

§

QuorumProposalRecv(Proposal<TYPES, QuorumProposal2<TYPES>>, TYPES::SignatureKey)

A quorum proposal has been received from the network; handled by the consensus task

§

QuorumVoteRecv(QuorumVote2<TYPES>)

A quorum vote has been received from the network; handled by the consensus task

§

TimeoutVoteRecv(TimeoutVote2<TYPES>)

A timeout vote received from the network; handled by consensus task

§

TimeoutVoteSend(TimeoutVote2<TYPES>)

Send a timeout vote to the network; emitted by consensus task replicas

§

DaProposalRecv(Proposal<TYPES, DaProposal2<TYPES>>, TYPES::SignatureKey)

A DA proposal has been received from the network; handled by the DA task

§

DaProposalValidated(Proposal<TYPES, DaProposal2<TYPES>>, TYPES::SignatureKey)

A DA proposal has been validated; handled by the DA task and VID task

§

DaVoteRecv(DaVote2<TYPES>)

A DA vote has been received by the network; handled by the DA task

§

DaCertificateRecv(DaCertificate2<TYPES>)

A Data Availability Certificate (DAC) has been received by the network; handled by the consensus task

§

DaCertificateValidated(DaCertificate2<TYPES>)

A DAC is validated.

§

QuorumProposalSend(Proposal<TYPES, QuorumProposal2<TYPES>>, TYPES::SignatureKey)

Send a quorum proposal to the network; emitted by the leader in the consensus task

§

QuorumVoteSend(QuorumVote2<TYPES>)

Send a quorum vote to the next leader; emitted by a replica in the consensus task after seeing a valid quorum proposal

§

ExtendedQuorumVoteSend(QuorumVote2<TYPES>)

Broadcast a quorum vote to form an eQC; emitted by a replica in the consensus task after seeing a valid quorum proposal

§

QuorumProposalValidated(Proposal<TYPES, QuorumProposal2<TYPES>>, Leaf2<TYPES>)

A quorum proposal with the given parent leaf is validated. The full validation checks include:

  1. The proposal is not for an old view
  2. The proposal has been correctly signed by the leader of the current view
  3. The justify QC is valid
  4. The proposal passes either liveness or safety check.
§

QuorumProposalRequestSend(ProposalRequestPayload<TYPES>, <TYPES::SignatureKey as SignatureKey>::PureAssembledSignatureType)

A quorum proposal is missing for a view that we need.

§

QuorumProposalRequestRecv(ProposalRequestPayload<TYPES>, <TYPES::SignatureKey as SignatureKey>::PureAssembledSignatureType)

A quorum proposal was requested by a node for a view.

§

QuorumProposalResponseSend(TYPES::SignatureKey, Proposal<TYPES, QuorumProposal2<TYPES>>)

A quorum proposal was missing for a view. As the leader, we send a reply to the recipient with their key.

§

QuorumProposalResponseRecv(Proposal<TYPES, QuorumProposal2<TYPES>>)

A quorum proposal was requested by a node for a view.

§

DaProposalSend(Proposal<TYPES, DaProposal2<TYPES>>, TYPES::SignatureKey)

Send a DA proposal to the DA committee; emitted by the DA leader (which is the same node as the leader of view v + 1) in the DA task

§

DaVoteSend(DaVote2<TYPES>)

Send a DA vote to the DA leader; emitted by DA committee members in the DA task after seeing a valid DA proposal

§

QcFormed(Either<QuorumCertificate<TYPES>, TimeoutCertificate<TYPES>>)

The next leader has collected enough votes to form a QC; emitted by the next leader in the consensus task; an internal event only

§

Qc2Formed(Either<QuorumCertificate2<TYPES>, TimeoutCertificate2<TYPES>>)

The next leader has collected enough votes to form a QC; emitted by the next leader in the consensus task; an internal event only

§

NextEpochQc2Formed(Either<NextEpochQuorumCertificate2<TYPES>, TimeoutCertificate<TYPES>>)

The next leader has collected enough votes from the next epoch nodes to form a QC; emitted by the next leader in the consensus task; an internal event only

§

DacSend(DaCertificate2<TYPES>, TYPES::SignatureKey)

The DA leader has collected enough votes to form a DAC; emitted by the DA leader in the DA task; sent to the entire network via the networking task

§

ViewChange(TYPES::View, TYPES::Epoch)

The current view has changed; emitted by the replica in the consensus task or replica in the view sync task; received by almost all other tasks

§

ViewSyncTimeout(TYPES::View, u64, ViewSyncPhase)

Timeout for the view sync protocol; emitted by a replica in the view sync task

§

ViewSyncPreCommitVoteRecv(ViewSyncPreCommitVote2<TYPES>)

Receive a ViewSyncPreCommitVote from the network; received by a relay in the view sync task

§

ViewSyncCommitVoteRecv(ViewSyncCommitVote2<TYPES>)

Receive a ViewSyncCommitVote from the network; received by a relay in the view sync task

§

ViewSyncFinalizeVoteRecv(ViewSyncFinalizeVote2<TYPES>)

Receive a ViewSyncFinalizeVote from the network; received by a relay in the view sync task

§

ViewSyncPreCommitVoteSend(ViewSyncPreCommitVote2<TYPES>)

Send a ViewSyncPreCommitVote from the network; emitted by a replica in the view sync task

§

ViewSyncCommitVoteSend(ViewSyncCommitVote2<TYPES>)

Send a ViewSyncCommitVote from the network; emitted by a replica in the view sync task

§

ViewSyncFinalizeVoteSend(ViewSyncFinalizeVote2<TYPES>)

Send a ViewSyncFinalizeVote from the network; emitted by a replica in the view sync task

§

ViewSyncPreCommitCertificateRecv(ViewSyncPreCommitCertificate2<TYPES>)

Receive a ViewSyncPreCommitCertificate from the network; received by a replica in the view sync task

§

ViewSyncCommitCertificateRecv(ViewSyncCommitCertificate2<TYPES>)

Receive a ViewSyncCommitCertificate from the network; received by a replica in the view sync task

§

ViewSyncFinalizeCertificateRecv(ViewSyncFinalizeCertificate2<TYPES>)

Receive a ViewSyncFinalizeCertificate from the network; received by a replica in the view sync task

§

ViewSyncPreCommitCertificateSend(ViewSyncPreCommitCertificate2<TYPES>, TYPES::SignatureKey)

Send a ViewSyncPreCommitCertificate from the network; emitted by a relay in the view sync task

§

ViewSyncCommitCertificateSend(ViewSyncCommitCertificate2<TYPES>, TYPES::SignatureKey)

Send a ViewSyncCommitCertificate from the network; emitted by a relay in the view sync task

§

ViewSyncFinalizeCertificateSend(ViewSyncFinalizeCertificate2<TYPES>, TYPES::SignatureKey)

Send a ViewSyncFinalizeCertificate from the network; emitted by a relay in the view sync task

§

ViewSyncTrigger(TYPES::View)

Trigger the start of the view sync protocol; emitted by view sync task; internal trigger only

§

Timeout(TYPES::View, TYPES::Epoch)

A consensus view has timed out; emitted by a replica in the consensus task; received by the view sync task; internal event only

§

TransactionsRecv(Vec<TYPES::Transaction>)

Receive transactions from the network

§

TransactionSend(TYPES::Transaction, TYPES::SignatureKey)

Send transactions to the network

§

SendPayloadCommitmentAndMetadata(VidCommitment, BuilderCommitment, <TYPES::BlockPayload as BlockPayload<TYPES>>::Metadata, TYPES::View, Vec1<BuilderFee<TYPES>>, Option<TYPES::AuctionResult>)

Event to send block payload commitment and metadata from DA leader to the quorum; internal event only

§

BlockRecv(PackedBundle<TYPES>)

Event when the transactions task has sequenced transactions. Contains the encoded transactions, the metadata, and the view number

§

VidDisperseSend(Proposal<TYPES, VidDisperse<TYPES>>, TYPES::SignatureKey)

Send VID shares to VID storage nodes; emitted by the DA leader

Like HotShotEvent::DaProposalSend.

§

VidShareRecv(TYPES::SignatureKey, Proposal<TYPES, VidDisperseShare2<TYPES>>)

Vid disperse share has been received from the network; handled by the consensus task

Like HotShotEvent::DaProposalRecv.

§

VidShareValidated(Proposal<TYPES, VidDisperseShare2<TYPES>>)

VID share data is validated.

§

UpgradeProposalRecv(Proposal<TYPES, UpgradeProposal<TYPES>>, TYPES::SignatureKey)

Upgrade proposal has been received from the network

§

UpgradeProposalSend(Proposal<TYPES, UpgradeProposal<TYPES>>, TYPES::SignatureKey)

Upgrade proposal has been sent to the network

§

UpgradeVoteRecv(UpgradeVote<TYPES>)

Upgrade vote has been received from the network

§

UpgradeVoteSend(UpgradeVote<TYPES>)

Upgrade vote has been sent to the network

§

UpgradeCertificateFormed(UpgradeCertificate<TYPES>)

Upgrade certificate has been sent to the network

§

QuorumProposalPreliminarilyValidated(Proposal<TYPES, QuorumProposal2<TYPES>>)

A quorum proposal has been preliminarily validated. The preliminary checks include:

  1. The proposal is not for an old view
  2. The proposal has been correctly signed by the leader of the current view
  3. The justify QC is valid
§

VidRequestSend(DataRequest<TYPES>, TYPES::SignatureKey, TYPES::SignatureKey)

Send a VID request to the network; emitted to on of the members of DA committee. Includes the data request, node’s public key and signature as well as public key of DA committee who we want to send to.

§

VidRequestRecv(DataRequest<TYPES>, TYPES::SignatureKey)

Receive a VID request from the network; Received by a node in the DA committee. Includes the data request and nodes public key.

§

VidResponseSend(TYPES::SignatureKey, TYPES::SignatureKey, Proposal<TYPES, VidDisperseShare2<TYPES>>)

Send a VID response to the network; emitted to the sending node. Includes nodes public key, recipient public key, and vid disperse

Tuple Fields

§0: TYPES::SignatureKey

Sender key

§1: TYPES::SignatureKey

Recipient key

§2: Proposal<TYPES, VidDisperseShare2<TYPES>>
§

VidResponseRecv(TYPES::SignatureKey, Proposal<TYPES, VidDisperseShare2<TYPES>>)

Receive a VID response from the network; received by the node that triggered the VID request.

§

HighQcRecv(QuorumCertificate2<TYPES>, TYPES::SignatureKey)

A replica send us a High QC

§

HighQcSend(QuorumCertificate2<TYPES>, TYPES::SignatureKey, TYPES::SignatureKey)

Send our HighQc to the next leader, should go to the same leader as our vote

Implementations§

source§

impl<TYPES: NodeType> HotShotEvent<TYPES>

source

pub fn view_number(&self) -> Option<TYPES::View>

Return the view number for a hotshot event if present

Trait Implementations§

source§

impl<TYPES: Clone + NodeType> Clone for HotShotEvent<TYPES>
where TYPES::SignatureKey: Clone, TYPES::View: Clone, TYPES::Epoch: Clone, TYPES::Transaction: Clone, TYPES::BlockPayload: Clone, TYPES::AuctionResult: Clone,

source§

fn clone(&self) -> HotShotEvent<TYPES>

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

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

Performs copy-assignment from source. Read more
source§

impl<TYPES: Debug + NodeType> Debug for HotShotEvent<TYPES>
where TYPES::SignatureKey: Debug, TYPES::View: Debug, TYPES::Epoch: Debug, TYPES::Transaction: Debug, TYPES::BlockPayload: Debug, TYPES::AuctionResult: Debug,

source§

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

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

impl<TYPES: NodeType> Display for HotShotEvent<TYPES>

source§

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

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

impl<TYPES: PartialEq + NodeType> PartialEq for HotShotEvent<TYPES>
where TYPES::SignatureKey: PartialEq, TYPES::View: PartialEq, TYPES::Epoch: PartialEq, TYPES::Transaction: PartialEq, TYPES::BlockPayload: PartialEq, TYPES::AuctionResult: PartialEq,

source§

fn eq(&self, other: &HotShotEvent<TYPES>) -> bool

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

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

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

impl<TYPES: NodeType> TaskEvent for HotShotEvent<TYPES>

source§

fn shutdown_event() -> Self

The shutdown signal for this event type Read more
source§

impl<TYPES: Eq + NodeType> Eq for HotShotEvent<TYPES>
where TYPES::SignatureKey: Eq, TYPES::View: Eq, TYPES::Epoch: Eq, TYPES::Transaction: Eq, TYPES::BlockPayload: Eq, TYPES::AuctionResult: Eq,

source§

impl<TYPES: NodeType> StructuralPartialEq for HotShotEvent<TYPES>

Auto Trait Implementations§

§

impl<TYPES> Freeze for HotShotEvent<TYPES>
where <TYPES as NodeType>::SignatureKey: Freeze, <<TYPES as NodeType>::SignatureKey as SignatureKey>::PureAssembledSignatureType: Freeze, <TYPES as NodeType>::View: Freeze, <TYPES as NodeType>::Epoch: Freeze, <TYPES as NodeType>::Transaction: Freeze, <<TYPES as NodeType>::BlockPayload as BlockPayload<TYPES>>::Metadata: Freeze, <TYPES as NodeType>::BlockHeader: Freeze, <TYPES as NodeType>::AuctionResult: Freeze, <<TYPES as NodeType>::SignatureKey as SignatureKey>::QcType: Freeze, <TYPES as NodeType>::BlockPayload: Freeze,

§

impl<TYPES> RefUnwindSafe for HotShotEvent<TYPES>
where <TYPES as NodeType>::SignatureKey: RefUnwindSafe, <<TYPES as NodeType>::SignatureKey as SignatureKey>::PureAssembledSignatureType: RefUnwindSafe, <TYPES as NodeType>::View: RefUnwindSafe, <TYPES as NodeType>::Epoch: RefUnwindSafe, <TYPES as NodeType>::Transaction: RefUnwindSafe, <<TYPES as NodeType>::BlockPayload as BlockPayload<TYPES>>::Metadata: RefUnwindSafe, <TYPES as NodeType>::BlockHeader: RefUnwindSafe, <TYPES as NodeType>::AuctionResult: RefUnwindSafe, TYPES: RefUnwindSafe, <<TYPES as NodeType>::SignatureKey as SignatureKey>::QcType: RefUnwindSafe, <TYPES as NodeType>::BlockPayload: RefUnwindSafe, <TYPES as NodeType>::BuilderSignatureKey: RefUnwindSafe, <<TYPES as NodeType>::BuilderSignatureKey as BuilderSignatureKey>::BuilderSignature: RefUnwindSafe,

§

impl<TYPES> Send for HotShotEvent<TYPES>

§

impl<TYPES> Sync for HotShotEvent<TYPES>

§

impl<TYPES> Unpin for HotShotEvent<TYPES>
where <TYPES as NodeType>::SignatureKey: Unpin, <<TYPES as NodeType>::SignatureKey as SignatureKey>::PureAssembledSignatureType: Unpin, <TYPES as NodeType>::View: Unpin, <TYPES as NodeType>::Epoch: Unpin, <TYPES as NodeType>::Transaction: Unpin, <<TYPES as NodeType>::BlockPayload as BlockPayload<TYPES>>::Metadata: Unpin, <TYPES as NodeType>::BlockHeader: Unpin, <TYPES as NodeType>::AuctionResult: Unpin, TYPES: Unpin, <<TYPES as NodeType>::SignatureKey as SignatureKey>::QcType: Unpin, <TYPES as NodeType>::BlockPayload: Unpin, <TYPES as NodeType>::BuilderSignatureKey: Unpin, <<TYPES as NodeType>::BuilderSignatureKey as BuilderSignatureKey>::BuilderSignature: Unpin,

§

impl<TYPES> UnwindSafe for HotShotEvent<TYPES>
where <TYPES as NodeType>::SignatureKey: UnwindSafe + RefUnwindSafe, <<TYPES as NodeType>::SignatureKey as SignatureKey>::PureAssembledSignatureType: UnwindSafe, <TYPES as NodeType>::View: UnwindSafe, <TYPES as NodeType>::Epoch: UnwindSafe, <TYPES as NodeType>::Transaction: UnwindSafe, <<TYPES as NodeType>::BlockPayload as BlockPayload<TYPES>>::Metadata: UnwindSafe, <TYPES as NodeType>::BlockHeader: UnwindSafe, <TYPES as NodeType>::AuctionResult: UnwindSafe, TYPES: UnwindSafe, <<TYPES as NodeType>::SignatureKey as SignatureKey>::QcType: UnwindSafe, <TYPES as NodeType>::BlockPayload: UnwindSafe, <TYPES as NodeType>::BuilderSignatureKey: UnwindSafe, <<TYPES as NodeType>::BuilderSignatureKey as BuilderSignatureKey>::BuilderSignature: UnwindSafe,

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

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

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
source§

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

§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<T> FmtForward for T

§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

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

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

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

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
§

impl<T> Tap for T

§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
source§

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

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

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

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

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
§

impl<T> TryConv for T

§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
source§

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

source§

type Error = Infallible

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

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

Performs the conversion.
source§

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

source§

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

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

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

Performs the conversion.
§

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

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T