pub enum Scenarios {
Show 41 variants
SoloNodeSyncToGenesis(SoloNodeSyncToGenesis),
SoloNodeBootstrap(SoloNodeBootstrap),
SoloNodeSyncToGenesisCustom(SoloNodeSyncToGenesisCustom),
SoloNodeSyncRootSnarkedLedger(SoloNodeSyncRootSnarkedLedger),
SoloNodeBasicConnectivityInitialJoining(SoloNodeBasicConnectivityInitialJoining),
SoloNodeBasicConnectivityAcceptIncoming(SoloNodeBasicConnectivityAcceptIncoming),
MultiNodeSync4BlockProducers(MultiNodeSync4BlockProducers),
MultiNodeVrfGetCorrectLedgers(MultiNodeVrfGetCorrectLedgers),
MultiNodeVrfGetCorrectSlots(MultiNodeVrfGetCorrectSlots),
MultiNodeVrfEpochBoundsEvaluation(MultiNodeVrfEpochBoundsEvaluation),
MultiNodeVrfEpochBoundsCorrectLedger(MultiNodeVrfEpochBoundsCorrectLedger),
MultiNodeBasicConnectivityInitialJoining(MultiNodeBasicConnectivityInitialJoining),
MultiNodeBasicConnectivityPeerDiscovery(MultiNodeBasicConnectivityPeerDiscovery),
SimulationSmall(SimulationSmall),
SimulationSmallForeverRealTime(SimulationSmallForeverRealTime),
P2pReceiveMessage(P2pReceiveMessage),
P2pSignaling(P2pSignaling),
P2pConnectionDiscoveryRustNodeAsSeed(RustNodeAsSeed),
MultiNodePubsubPropagateBlock(MultiNodePubsubPropagateBlock),
RecordReplayBootstrap(RecordReplayBootstrap),
RecordReplayBlockProduction(RecordReplayBlockProduction),
RustToOCaml(RustToOCaml),
OCamlToRust(OCamlToRust),
OCamlToRustViaSeed(OCamlToRustViaSeed),
RustToOCamlViaSeed(RustToOCamlViaSeed),
KademliaBootstrap(KademliaBootstrap),
AcceptIncomingConnection(AcceptIncomingConnection),
MakeOutgoingConnection(MakeOutgoingConnection),
AcceptMultipleIncomingConnections(AcceptMultipleIncomingConnections),
MakeMultipleOutgoingConnections(MakeMultipleOutgoingConnections),
DontConnectToNodeWithSameId(DontConnectToNodeWithSameId),
DontConnectToInitialPeerWithSameId(DontConnectToInitialPeerWithSameId),
DontConnectToSelfInitialPeer(DontConnectToSelfInitialPeer),
SimultaneousConnections(SimultaneousConnections),
ConnectToInitialPeers(ConnectToInitialPeers),
ConnectToUnavailableInitialPeers(ConnectToUnavailableInitialPeers),
AllNodesConnectionsAreSymmetric(AllNodesConnectionsAreSymmetric),
ConnectToInitialPeersBecomeReady(ConnectToInitialPeersBecomeReady),
SeedConnectionsAreSymmetric(SeedConnectionsAreSymmetric),
MaxNumberOfPeersIncoming(MaxNumberOfPeersIncoming),
MaxNumberOfPeersIs1(MaxNumberOfPeersIs1),
}Variants§
SoloNodeSyncToGenesis(SoloNodeSyncToGenesis)
SoloNodeBootstrap(SoloNodeBootstrap)
SoloNodeSyncToGenesisCustom(SoloNodeSyncToGenesisCustom)
SoloNodeSyncRootSnarkedLedger(SoloNodeSyncRootSnarkedLedger)
SoloNodeBasicConnectivityInitialJoining(SoloNodeBasicConnectivityInitialJoining)
SoloNodeBasicConnectivityAcceptIncoming(SoloNodeBasicConnectivityAcceptIncoming)
MultiNodeSync4BlockProducers(MultiNodeSync4BlockProducers)
MultiNodeVrfGetCorrectLedgers(MultiNodeVrfGetCorrectLedgers)
MultiNodeVrfGetCorrectSlots(MultiNodeVrfGetCorrectSlots)
MultiNodeVrfEpochBoundsEvaluation(MultiNodeVrfEpochBoundsEvaluation)
MultiNodeVrfEpochBoundsCorrectLedger(MultiNodeVrfEpochBoundsCorrectLedger)
MultiNodeBasicConnectivityInitialJoining(MultiNodeBasicConnectivityInitialJoining)
MultiNodeBasicConnectivityPeerDiscovery(MultiNodeBasicConnectivityPeerDiscovery)
SimulationSmall(SimulationSmall)
SimulationSmallForeverRealTime(SimulationSmallForeverRealTime)
P2pReceiveMessage(P2pReceiveMessage)
P2pSignaling(P2pSignaling)
P2pConnectionDiscoveryRustNodeAsSeed(RustNodeAsSeed)
MultiNodePubsubPropagateBlock(MultiNodePubsubPropagateBlock)
RecordReplayBootstrap(RecordReplayBootstrap)
RecordReplayBlockProduction(RecordReplayBlockProduction)
RustToOCaml(RustToOCaml)
OCamlToRust(OCamlToRust)
OCamlToRustViaSeed(OCamlToRustViaSeed)
RustToOCamlViaSeed(RustToOCamlViaSeed)
KademliaBootstrap(KademliaBootstrap)
AcceptIncomingConnection(AcceptIncomingConnection)
MakeOutgoingConnection(MakeOutgoingConnection)
AcceptMultipleIncomingConnections(AcceptMultipleIncomingConnections)
MakeMultipleOutgoingConnections(MakeMultipleOutgoingConnections)
DontConnectToNodeWithSameId(DontConnectToNodeWithSameId)
DontConnectToInitialPeerWithSameId(DontConnectToInitialPeerWithSameId)
DontConnectToSelfInitialPeer(DontConnectToSelfInitialPeer)
SimultaneousConnections(SimultaneousConnections)
ConnectToInitialPeers(ConnectToInitialPeers)
AllNodesConnectionsAreSymmetric(AllNodesConnectionsAreSymmetric)
ConnectToInitialPeersBecomeReady(ConnectToInitialPeersBecomeReady)
SeedConnectionsAreSymmetric(SeedConnectionsAreSymmetric)
MaxNumberOfPeersIncoming(MaxNumberOfPeersIncoming)
MaxNumberOfPeersIs1(MaxNumberOfPeersIs1)
Implementations§
Source§impl Scenarios
impl Scenarios
pub fn iter() -> impl IntoIterator<Item = Scenarios>
pub fn find_by_name(name: &str) -> Option<Self>
fn skip(&self) -> bool
pub fn id(self) -> ScenarioId
pub fn to_str(self) -> &'static str
pub fn parent(self) -> Option<Self>
pub fn parent_id(self) -> Option<ScenarioId>
pub fn description(self) -> &'static str
pub fn default_cluster_config(self) -> Result<ClusterConfig, Error>
pub fn blank_scenario(self) -> Scenario
async fn run<F>(self, cluster: &mut Cluster, add_step: F)
pub async fn run_and_save(self, cluster: &mut Cluster)
pub async fn run_only(self, cluster: &mut Cluster)
async fn build_cluster_and_run_parents(self, config: ClusterConfig) -> Cluster
pub async fn run_and_save_from_scratch(self, config: ClusterConfig)
pub async fn run_only_from_scratch(self, config: ClusterConfig)
Trait Implementations§
Source§impl From<AcceptIncomingConnection> for Scenarios
impl From<AcceptIncomingConnection> for Scenarios
Source§fn from(original: AcceptIncomingConnection) -> Scenarios
fn from(original: AcceptIncomingConnection) -> Scenarios
Converts to this type from the input type.
Source§impl From<AcceptMultipleIncomingConnections> for Scenarios
impl From<AcceptMultipleIncomingConnections> for Scenarios
Source§fn from(original: AcceptMultipleIncomingConnections) -> Scenarios
fn from(original: AcceptMultipleIncomingConnections) -> Scenarios
Converts to this type from the input type.
Source§impl From<AllNodesConnectionsAreSymmetric> for Scenarios
impl From<AllNodesConnectionsAreSymmetric> for Scenarios
Source§fn from(original: AllNodesConnectionsAreSymmetric) -> Scenarios
fn from(original: AllNodesConnectionsAreSymmetric) -> Scenarios
Converts to this type from the input type.
Source§impl From<ConnectToInitialPeers> for Scenarios
impl From<ConnectToInitialPeers> for Scenarios
Source§fn from(original: ConnectToInitialPeers) -> Scenarios
fn from(original: ConnectToInitialPeers) -> Scenarios
Converts to this type from the input type.
Source§impl From<ConnectToInitialPeersBecomeReady> for Scenarios
impl From<ConnectToInitialPeersBecomeReady> for Scenarios
Source§fn from(original: ConnectToInitialPeersBecomeReady) -> Scenarios
fn from(original: ConnectToInitialPeersBecomeReady) -> Scenarios
Converts to this type from the input type.
Source§fn from(original: ConnectToUnavailableInitialPeers) -> Scenarios
fn from(original: ConnectToUnavailableInitialPeers) -> Scenarios
Converts to this type from the input type.
Source§impl From<DontConnectToInitialPeerWithSameId> for Scenarios
impl From<DontConnectToInitialPeerWithSameId> for Scenarios
Source§fn from(original: DontConnectToInitialPeerWithSameId) -> Scenarios
fn from(original: DontConnectToInitialPeerWithSameId) -> Scenarios
Converts to this type from the input type.
Source§impl From<DontConnectToNodeWithSameId> for Scenarios
impl From<DontConnectToNodeWithSameId> for Scenarios
Source§fn from(original: DontConnectToNodeWithSameId) -> Scenarios
fn from(original: DontConnectToNodeWithSameId) -> Scenarios
Converts to this type from the input type.
Source§impl From<DontConnectToSelfInitialPeer> for Scenarios
impl From<DontConnectToSelfInitialPeer> for Scenarios
Source§fn from(original: DontConnectToSelfInitialPeer) -> Scenarios
fn from(original: DontConnectToSelfInitialPeer) -> Scenarios
Converts to this type from the input type.
Source§impl From<KademliaBootstrap> for Scenarios
impl From<KademliaBootstrap> for Scenarios
Source§fn from(original: KademliaBootstrap) -> Scenarios
fn from(original: KademliaBootstrap) -> Scenarios
Converts to this type from the input type.
Source§impl From<MakeMultipleOutgoingConnections> for Scenarios
impl From<MakeMultipleOutgoingConnections> for Scenarios
Source§fn from(original: MakeMultipleOutgoingConnections) -> Scenarios
fn from(original: MakeMultipleOutgoingConnections) -> Scenarios
Converts to this type from the input type.
Source§impl From<MakeOutgoingConnection> for Scenarios
impl From<MakeOutgoingConnection> for Scenarios
Source§fn from(original: MakeOutgoingConnection) -> Scenarios
fn from(original: MakeOutgoingConnection) -> Scenarios
Converts to this type from the input type.
Source§impl From<MaxNumberOfPeersIncoming> for Scenarios
impl From<MaxNumberOfPeersIncoming> for Scenarios
Source§fn from(original: MaxNumberOfPeersIncoming) -> Scenarios
fn from(original: MaxNumberOfPeersIncoming) -> Scenarios
Converts to this type from the input type.
Source§impl From<MaxNumberOfPeersIs1> for Scenarios
impl From<MaxNumberOfPeersIs1> for Scenarios
Source§fn from(original: MaxNumberOfPeersIs1) -> Scenarios
fn from(original: MaxNumberOfPeersIs1) -> Scenarios
Converts to this type from the input type.
Source§impl From<MultiNodeBasicConnectivityInitialJoining> for Scenarios
impl From<MultiNodeBasicConnectivityInitialJoining> for Scenarios
Source§fn from(original: MultiNodeBasicConnectivityInitialJoining) -> Scenarios
fn from(original: MultiNodeBasicConnectivityInitialJoining) -> Scenarios
Converts to this type from the input type.
Source§impl From<MultiNodeBasicConnectivityPeerDiscovery> for Scenarios
impl From<MultiNodeBasicConnectivityPeerDiscovery> for Scenarios
Source§fn from(original: MultiNodeBasicConnectivityPeerDiscovery) -> Scenarios
fn from(original: MultiNodeBasicConnectivityPeerDiscovery) -> Scenarios
Converts to this type from the input type.
Source§impl From<MultiNodePubsubPropagateBlock> for Scenarios
impl From<MultiNodePubsubPropagateBlock> for Scenarios
Source§fn from(original: MultiNodePubsubPropagateBlock) -> Scenarios
fn from(original: MultiNodePubsubPropagateBlock) -> Scenarios
Converts to this type from the input type.
Source§impl From<MultiNodeSync4BlockProducers> for Scenarios
impl From<MultiNodeSync4BlockProducers> for Scenarios
Source§fn from(original: MultiNodeSync4BlockProducers) -> Scenarios
fn from(original: MultiNodeSync4BlockProducers) -> Scenarios
Converts to this type from the input type.
Source§impl From<MultiNodeVrfEpochBoundsCorrectLedger> for Scenarios
impl From<MultiNodeVrfEpochBoundsCorrectLedger> for Scenarios
Source§fn from(original: MultiNodeVrfEpochBoundsCorrectLedger) -> Scenarios
fn from(original: MultiNodeVrfEpochBoundsCorrectLedger) -> Scenarios
Converts to this type from the input type.
Source§impl From<MultiNodeVrfEpochBoundsEvaluation> for Scenarios
impl From<MultiNodeVrfEpochBoundsEvaluation> for Scenarios
Source§fn from(original: MultiNodeVrfEpochBoundsEvaluation) -> Scenarios
fn from(original: MultiNodeVrfEpochBoundsEvaluation) -> Scenarios
Converts to this type from the input type.
Source§impl From<MultiNodeVrfGetCorrectLedgers> for Scenarios
impl From<MultiNodeVrfGetCorrectLedgers> for Scenarios
Source§fn from(original: MultiNodeVrfGetCorrectLedgers) -> Scenarios
fn from(original: MultiNodeVrfGetCorrectLedgers) -> Scenarios
Converts to this type from the input type.
Source§impl From<MultiNodeVrfGetCorrectSlots> for Scenarios
impl From<MultiNodeVrfGetCorrectSlots> for Scenarios
Source§fn from(original: MultiNodeVrfGetCorrectSlots) -> Scenarios
fn from(original: MultiNodeVrfGetCorrectSlots) -> Scenarios
Converts to this type from the input type.
Source§impl From<OCamlToRust> for Scenarios
impl From<OCamlToRust> for Scenarios
Source§fn from(original: OCamlToRust) -> Scenarios
fn from(original: OCamlToRust) -> Scenarios
Converts to this type from the input type.
Source§impl From<OCamlToRustViaSeed> for Scenarios
impl From<OCamlToRustViaSeed> for Scenarios
Source§fn from(original: OCamlToRustViaSeed) -> Scenarios
fn from(original: OCamlToRustViaSeed) -> Scenarios
Converts to this type from the input type.
Source§impl From<P2pReceiveMessage> for Scenarios
impl From<P2pReceiveMessage> for Scenarios
Source§fn from(original: P2pReceiveMessage) -> Scenarios
fn from(original: P2pReceiveMessage) -> Scenarios
Converts to this type from the input type.
Source§impl From<P2pSignaling> for Scenarios
impl From<P2pSignaling> for Scenarios
Source§fn from(original: P2pSignaling) -> Scenarios
fn from(original: P2pSignaling) -> Scenarios
Converts to this type from the input type.
Source§impl From<RecordReplayBlockProduction> for Scenarios
impl From<RecordReplayBlockProduction> for Scenarios
Source§fn from(original: RecordReplayBlockProduction) -> Scenarios
fn from(original: RecordReplayBlockProduction) -> Scenarios
Converts to this type from the input type.
Source§impl From<RecordReplayBootstrap> for Scenarios
impl From<RecordReplayBootstrap> for Scenarios
Source§fn from(original: RecordReplayBootstrap) -> Scenarios
fn from(original: RecordReplayBootstrap) -> Scenarios
Converts to this type from the input type.
Source§impl From<RustNodeAsSeed> for Scenarios
impl From<RustNodeAsSeed> for Scenarios
Source§fn from(original: P2pConnectionDiscoveryRustNodeAsSeed) -> Scenarios
fn from(original: P2pConnectionDiscoveryRustNodeAsSeed) -> Scenarios
Converts to this type from the input type.
Source§impl From<RustToOCaml> for Scenarios
impl From<RustToOCaml> for Scenarios
Source§fn from(original: RustToOCaml) -> Scenarios
fn from(original: RustToOCaml) -> Scenarios
Converts to this type from the input type.
Source§impl From<RustToOCamlViaSeed> for Scenarios
impl From<RustToOCamlViaSeed> for Scenarios
Source§fn from(original: RustToOCamlViaSeed) -> Scenarios
fn from(original: RustToOCamlViaSeed) -> Scenarios
Converts to this type from the input type.
Source§impl From<Scenarios> for ScenarioId
Available on crate feature scenario-generators only.
impl From<Scenarios> for ScenarioId
Available on crate feature
scenario-generators only.Source§impl From<SeedConnectionsAreSymmetric> for Scenarios
impl From<SeedConnectionsAreSymmetric> for Scenarios
Source§fn from(original: SeedConnectionsAreSymmetric) -> Scenarios
fn from(original: SeedConnectionsAreSymmetric) -> Scenarios
Converts to this type from the input type.
Source§impl From<SimulationSmall> for Scenarios
impl From<SimulationSmall> for Scenarios
Source§fn from(original: SimulationSmall) -> Scenarios
fn from(original: SimulationSmall) -> Scenarios
Converts to this type from the input type.
Source§impl From<SimulationSmallForeverRealTime> for Scenarios
impl From<SimulationSmallForeverRealTime> for Scenarios
Source§fn from(original: SimulationSmallForeverRealTime) -> Scenarios
fn from(original: SimulationSmallForeverRealTime) -> Scenarios
Converts to this type from the input type.
Source§impl From<SimultaneousConnections> for Scenarios
impl From<SimultaneousConnections> for Scenarios
Source§fn from(original: SimultaneousConnections) -> Scenarios
fn from(original: SimultaneousConnections) -> Scenarios
Converts to this type from the input type.
Source§impl From<SoloNodeBasicConnectivityAcceptIncoming> for Scenarios
impl From<SoloNodeBasicConnectivityAcceptIncoming> for Scenarios
Source§fn from(original: SoloNodeBasicConnectivityAcceptIncoming) -> Scenarios
fn from(original: SoloNodeBasicConnectivityAcceptIncoming) -> Scenarios
Converts to this type from the input type.
Source§impl From<SoloNodeBasicConnectivityInitialJoining> for Scenarios
impl From<SoloNodeBasicConnectivityInitialJoining> for Scenarios
Source§fn from(original: SoloNodeBasicConnectivityInitialJoining) -> Scenarios
fn from(original: SoloNodeBasicConnectivityInitialJoining) -> Scenarios
Converts to this type from the input type.
Source§impl From<SoloNodeBootstrap> for Scenarios
impl From<SoloNodeBootstrap> for Scenarios
Source§fn from(original: SoloNodeBootstrap) -> Scenarios
fn from(original: SoloNodeBootstrap) -> Scenarios
Converts to this type from the input type.
Source§impl From<SoloNodeSyncRootSnarkedLedger> for Scenarios
impl From<SoloNodeSyncRootSnarkedLedger> for Scenarios
Source§fn from(original: SoloNodeSyncRootSnarkedLedger) -> Scenarios
fn from(original: SoloNodeSyncRootSnarkedLedger) -> Scenarios
Converts to this type from the input type.
Source§impl From<SoloNodeSyncToGenesis> for Scenarios
impl From<SoloNodeSyncToGenesis> for Scenarios
Source§fn from(original: SoloNodeSyncToGenesis) -> Scenarios
fn from(original: SoloNodeSyncToGenesis) -> Scenarios
Converts to this type from the input type.
Source§impl From<SoloNodeSyncToGenesisCustom> for Scenarios
impl From<SoloNodeSyncToGenesisCustom> for Scenarios
Source§fn from(original: SoloNodeSyncToGenesisCustom) -> Scenarios
fn from(original: SoloNodeSyncToGenesisCustom) -> Scenarios
Converts to this type from the input type.
Source§impl IntoEnumIterator for Scenarios
impl IntoEnumIterator for Scenarios
type Iterator = ScenariosIter
fn iter() -> ScenariosIter ⓘ
impl Copy for Scenarios
Auto Trait Implementations§
impl Freeze for Scenarios
impl RefUnwindSafe for Scenarios
impl Send for Scenarios
impl Sync for Scenarios
impl Unpin for Scenarios
impl UnwindSafe for Scenarios
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Conv for T
impl<T> Conv for T
§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,
Causes
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,
Causes
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,
Causes
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,
Causes
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,
Causes
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,
Causes
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,
Causes
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,
Causes
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,
Formats each item in a sequence. Read more
§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>
Creates a shared type from an unshared type.
§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,
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) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
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) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
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
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
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
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
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
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows
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
Immutable access to the
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
Mutable access to the
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
Immutable access to the
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
Mutable access to the
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
Immutable access to the
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
Mutable access to the
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
Calls
.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
Calls
.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
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
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
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
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
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
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
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
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls
.tap_deref() only in debug builds, and is erased in release
builds.