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:
- The proposal is not for an old view
- The proposal has been correctly signed by the leader of the current view
- The justify QC is valid
- 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
Vid disperse share has been received from the network; handled by the consensus task
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:
- The proposal is not for an old view
- The proposal has been correctly signed by the leader of the current view
- 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>
impl<TYPES: NodeType> HotShotEvent<TYPES>
sourcepub fn view_number(&self) -> Option<TYPES::View>
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>
impl<TYPES: Clone + NodeType> Clone for HotShotEvent<TYPES>
source§fn clone(&self) -> HotShotEvent<TYPES>
fn clone(&self) -> HotShotEvent<TYPES>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<TYPES: Debug + NodeType> Debug for HotShotEvent<TYPES>
impl<TYPES: Debug + NodeType> Debug for HotShotEvent<TYPES>
source§impl<TYPES: NodeType> Display for HotShotEvent<TYPES>
impl<TYPES: NodeType> Display for HotShotEvent<TYPES>
source§impl<TYPES: PartialEq + NodeType> PartialEq for HotShotEvent<TYPES>
impl<TYPES: PartialEq + NodeType> PartialEq for HotShotEvent<TYPES>
source§impl<TYPES: NodeType> TaskEvent for HotShotEvent<TYPES>
impl<TYPES: NodeType> TaskEvent for HotShotEvent<TYPES>
source§fn shutdown_event() -> Self
fn shutdown_event() -> Self
impl<TYPES: Eq + NodeType> Eq for HotShotEvent<TYPES>
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> Conv for T
impl<T> Conv for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self
to use its LowerExp
implementation when
Debug
-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self
to use its LowerHex
implementation when
Debug
-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self
to use its Octal
implementation when Debug
-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self
to use its Pointer
implementation when
Debug
-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self
to use its UpperExp
implementation when
Debug
-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self
to use its UpperHex
implementation when
Debug
-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
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) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
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
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
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
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
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
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.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
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.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
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.