#[non_exhaustive]pub struct TransactionEffects {Show 14 fields
pub bcs: Option<Bcs>,
pub digest: Option<String>,
pub version: Option<i32>,
pub status: Option<ExecutionStatus>,
pub epoch: Option<u64>,
pub gas_used: Option<GasCostSummary>,
pub transaction_digest: Option<String>,
pub gas_object: Option<ChangedObject>,
pub events_digest: Option<String>,
pub dependencies: Vec<String>,
pub lamport_version: Option<u64>,
pub changed_objects: Vec<ChangedObject>,
pub unchanged_consensus_objects: Vec<UnchangedConsensusObject>,
pub auxiliary_data_digest: Option<String>,
}
Expand description
The effects of executing a transaction.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.bcs: Option<Bcs>
This TransactionEffects serialized as BCS.
digest: Option<String>
The digest of this TransactionEffects.
version: Option<i32>
Version of this TransactionEffects.
status: Option<ExecutionStatus>
The status of the execution.
epoch: Option<u64>
The epoch when this transaction was executed.
gas_used: Option<GasCostSummary>
The gas used by this transaction.
transaction_digest: Option<String>
The transaction digest.
gas_object: Option<ChangedObject>
Information about the gas object. Also present in the changed_objects
vector.
System transaction that don’t require gas will leave this as None
.
events_digest: Option<String>
The digest of the events emitted during execution,
can be None
if the transaction does not emit any event.
dependencies: Vec<String>
The set of transaction digests this transaction depends on.
lamport_version: Option<u64>
The version number of all the written objects (excluding packages) by this transaction.
changed_objects: Vec<ChangedObject>
Objects whose state are changed by this transaction.
unchanged_consensus_objects: Vec<UnchangedConsensusObject>
Consensus objects that are not mutated in this transaction. Unlike owned objects, read-only consensus objects’ version are not committed in the transaction, and in order for a node to catch up and execute it without consensus sequencing, the version needs to be committed in the effects.
auxiliary_data_digest: Option<String>
Auxiliary data that are not protocol-critical, generated as part of the effects but are stored separately. Storing it separately allows us to avoid bloating the effects with data that are not critical. It also provides more flexibility on the format and type of the data.
Implementations§
Source§impl TransactionEffects
impl TransactionEffects
pub const BCS_FIELD: &'static MessageField
pub const DIGEST_FIELD: &'static MessageField
pub const VERSION_FIELD: &'static MessageField
pub const STATUS_FIELD: &'static MessageField
pub const EPOCH_FIELD: &'static MessageField
pub const GAS_USED_FIELD: &'static MessageField
pub const TRANSACTION_DIGEST_FIELD: &'static MessageField
pub const GAS_OBJECT_FIELD: &'static MessageField
pub const EVENTS_DIGEST_FIELD: &'static MessageField
pub const DEPENDENCIES_FIELD: &'static MessageField
pub const LAMPORT_VERSION_FIELD: &'static MessageField
pub const CHANGED_OBJECTS_FIELD: &'static MessageField
pub const UNCHANGED_CONSENSUS_OBJECTS_FIELD: &'static MessageField
pub const AUXILIARY_DATA_DIGEST_FIELD: &'static MessageField
Source§impl TransactionEffects
impl TransactionEffects
pub fn path_builder() -> TransactionEffectsFieldPathBuilder
Source§impl TransactionEffects
impl TransactionEffects
pub const fn const_default() -> Self
Sourcepub fn bcs_opt_mut(&mut self) -> Option<&mut Bcs>
pub fn bcs_opt_mut(&mut self) -> Option<&mut Bcs>
Sourcepub fn bcs_mut(&mut self) -> &mut Bcs
pub fn bcs_mut(&mut self) -> &mut Bcs
Returns a mutable reference to bcs
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn digest_opt_mut(&mut self) -> Option<&mut String>
pub fn digest_opt_mut(&mut self) -> Option<&mut String>
Sourcepub fn digest_mut(&mut self) -> &mut String
pub fn digest_mut(&mut self) -> &mut String
Returns a mutable reference to digest
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn digest_opt(&self) -> Option<&str>
pub fn digest_opt(&self) -> Option<&str>
Sourcepub fn set_digest<T: Into<String>>(&mut self, field: T)
pub fn set_digest<T: Into<String>>(&mut self, field: T)
Sets digest
with the provided value.
Sourcepub fn with_digest<T: Into<String>>(self, field: T) -> Self
pub fn with_digest<T: Into<String>>(self, field: T) -> Self
Sets digest
with the provided value.
Sourcepub fn version_opt_mut(&mut self) -> Option<&mut i32>
pub fn version_opt_mut(&mut self) -> Option<&mut i32>
Sourcepub fn version_mut(&mut self) -> &mut i32
pub fn version_mut(&mut self) -> &mut i32
Returns a mutable reference to version
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn version_opt(&self) -> Option<i32>
pub fn version_opt(&self) -> Option<i32>
Sourcepub fn set_version<T: Into<i32>>(&mut self, field: T)
pub fn set_version<T: Into<i32>>(&mut self, field: T)
Sets version
with the provided value.
Sourcepub fn with_version<T: Into<i32>>(self, field: T) -> Self
pub fn with_version<T: Into<i32>>(self, field: T) -> Self
Sets version
with the provided value.
Sourcepub fn status(&self) -> &ExecutionStatus
pub fn status(&self) -> &ExecutionStatus
Returns the value of status
, or the default value if status
is unset.
Sourcepub fn status_opt_mut(&mut self) -> Option<&mut ExecutionStatus>
pub fn status_opt_mut(&mut self) -> Option<&mut ExecutionStatus>
Sourcepub fn status_mut(&mut self) -> &mut ExecutionStatus
pub fn status_mut(&mut self) -> &mut ExecutionStatus
Returns a mutable reference to status
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn status_opt(&self) -> Option<&ExecutionStatus>
pub fn status_opt(&self) -> Option<&ExecutionStatus>
Sourcepub fn set_status<T: Into<ExecutionStatus>>(&mut self, field: T)
pub fn set_status<T: Into<ExecutionStatus>>(&mut self, field: T)
Sets status
with the provided value.
Sourcepub fn with_status<T: Into<ExecutionStatus>>(self, field: T) -> Self
pub fn with_status<T: Into<ExecutionStatus>>(self, field: T) -> Self
Sets status
with the provided value.
Sourcepub fn epoch_opt_mut(&mut self) -> Option<&mut u64>
pub fn epoch_opt_mut(&mut self) -> Option<&mut u64>
Sourcepub fn epoch_mut(&mut self) -> &mut u64
pub fn epoch_mut(&mut self) -> &mut u64
Returns a mutable reference to epoch
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn with_epoch<T: Into<u64>>(self, field: T) -> Self
pub fn with_epoch<T: Into<u64>>(self, field: T) -> Self
Sets epoch
with the provided value.
Sourcepub fn gas_used(&self) -> &GasCostSummary
pub fn gas_used(&self) -> &GasCostSummary
Returns the value of gas_used
, or the default value if gas_used
is unset.
Sourcepub fn gas_used_opt_mut(&mut self) -> Option<&mut GasCostSummary>
pub fn gas_used_opt_mut(&mut self) -> Option<&mut GasCostSummary>
Sourcepub fn gas_used_mut(&mut self) -> &mut GasCostSummary
pub fn gas_used_mut(&mut self) -> &mut GasCostSummary
Returns a mutable reference to gas_used
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn gas_used_opt(&self) -> Option<&GasCostSummary>
pub fn gas_used_opt(&self) -> Option<&GasCostSummary>
Sourcepub fn set_gas_used<T: Into<GasCostSummary>>(&mut self, field: T)
pub fn set_gas_used<T: Into<GasCostSummary>>(&mut self, field: T)
Sets gas_used
with the provided value.
Sourcepub fn with_gas_used<T: Into<GasCostSummary>>(self, field: T) -> Self
pub fn with_gas_used<T: Into<GasCostSummary>>(self, field: T) -> Self
Sets gas_used
with the provided value.
Sourcepub fn transaction_digest_opt_mut(&mut self) -> Option<&mut String>
pub fn transaction_digest_opt_mut(&mut self) -> Option<&mut String>
Sourcepub fn transaction_digest_mut(&mut self) -> &mut String
pub fn transaction_digest_mut(&mut self) -> &mut String
Returns a mutable reference to transaction_digest
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn transaction_digest_opt(&self) -> Option<&str>
pub fn transaction_digest_opt(&self) -> Option<&str>
Sourcepub fn set_transaction_digest<T: Into<String>>(&mut self, field: T)
pub fn set_transaction_digest<T: Into<String>>(&mut self, field: T)
Sets transaction_digest
with the provided value.
Sourcepub fn with_transaction_digest<T: Into<String>>(self, field: T) -> Self
pub fn with_transaction_digest<T: Into<String>>(self, field: T) -> Self
Sets transaction_digest
with the provided value.
Sourcepub fn gas_object(&self) -> &ChangedObject
pub fn gas_object(&self) -> &ChangedObject
Returns the value of gas_object
, or the default value if gas_object
is unset.
Sourcepub fn gas_object_opt_mut(&mut self) -> Option<&mut ChangedObject>
pub fn gas_object_opt_mut(&mut self) -> Option<&mut ChangedObject>
Sourcepub fn gas_object_mut(&mut self) -> &mut ChangedObject
pub fn gas_object_mut(&mut self) -> &mut ChangedObject
Returns a mutable reference to gas_object
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn gas_object_opt(&self) -> Option<&ChangedObject>
pub fn gas_object_opt(&self) -> Option<&ChangedObject>
Sourcepub fn set_gas_object<T: Into<ChangedObject>>(&mut self, field: T)
pub fn set_gas_object<T: Into<ChangedObject>>(&mut self, field: T)
Sets gas_object
with the provided value.
Sourcepub fn with_gas_object<T: Into<ChangedObject>>(self, field: T) -> Self
pub fn with_gas_object<T: Into<ChangedObject>>(self, field: T) -> Self
Sets gas_object
with the provided value.
Sourcepub fn events_digest_opt_mut(&mut self) -> Option<&mut String>
pub fn events_digest_opt_mut(&mut self) -> Option<&mut String>
Sourcepub fn events_digest_mut(&mut self) -> &mut String
pub fn events_digest_mut(&mut self) -> &mut String
Returns a mutable reference to events_digest
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn events_digest_opt(&self) -> Option<&str>
pub fn events_digest_opt(&self) -> Option<&str>
Sourcepub fn set_events_digest<T: Into<String>>(&mut self, field: T)
pub fn set_events_digest<T: Into<String>>(&mut self, field: T)
Sets events_digest
with the provided value.
Sourcepub fn with_events_digest<T: Into<String>>(self, field: T) -> Self
pub fn with_events_digest<T: Into<String>>(self, field: T) -> Self
Sets events_digest
with the provided value.
Sourcepub fn dependencies(&self) -> &[String]
pub fn dependencies(&self) -> &[String]
Returns the value of dependencies
, or the default value if dependencies
is unset.
Sourcepub fn dependencies_mut(&mut self) -> &mut Vec<String>
pub fn dependencies_mut(&mut self) -> &mut Vec<String>
Returns a mutable reference to dependencies
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn set_dependencies(&mut self, field: Vec<String>)
pub fn set_dependencies(&mut self, field: Vec<String>)
Sets dependencies
with the provided value.
Sourcepub fn with_dependencies(self, field: Vec<String>) -> Self
pub fn with_dependencies(self, field: Vec<String>) -> Self
Sets dependencies
with the provided value.
Sourcepub fn lamport_version_opt_mut(&mut self) -> Option<&mut u64>
pub fn lamport_version_opt_mut(&mut self) -> Option<&mut u64>
Sourcepub fn lamport_version_mut(&mut self) -> &mut u64
pub fn lamport_version_mut(&mut self) -> &mut u64
Returns a mutable reference to lamport_version
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn lamport_version_opt(&self) -> Option<u64>
pub fn lamport_version_opt(&self) -> Option<u64>
Sourcepub fn set_lamport_version<T: Into<u64>>(&mut self, field: T)
pub fn set_lamport_version<T: Into<u64>>(&mut self, field: T)
Sets lamport_version
with the provided value.
Sourcepub fn with_lamport_version<T: Into<u64>>(self, field: T) -> Self
pub fn with_lamport_version<T: Into<u64>>(self, field: T) -> Self
Sets lamport_version
with the provided value.
Sourcepub fn changed_objects(&self) -> &[ChangedObject]
pub fn changed_objects(&self) -> &[ChangedObject]
Returns the value of changed_objects
, or the default value if changed_objects
is unset.
Sourcepub fn changed_objects_mut(&mut self) -> &mut Vec<ChangedObject>
pub fn changed_objects_mut(&mut self) -> &mut Vec<ChangedObject>
Returns a mutable reference to changed_objects
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn set_changed_objects(&mut self, field: Vec<ChangedObject>)
pub fn set_changed_objects(&mut self, field: Vec<ChangedObject>)
Sets changed_objects
with the provided value.
Sourcepub fn with_changed_objects(self, field: Vec<ChangedObject>) -> Self
pub fn with_changed_objects(self, field: Vec<ChangedObject>) -> Self
Sets changed_objects
with the provided value.
Sourcepub fn unchanged_consensus_objects(&self) -> &[UnchangedConsensusObject]
pub fn unchanged_consensus_objects(&self) -> &[UnchangedConsensusObject]
Returns the value of unchanged_consensus_objects
, or the default value if unchanged_consensus_objects
is unset.
Sourcepub fn unchanged_consensus_objects_mut(
&mut self,
) -> &mut Vec<UnchangedConsensusObject>
pub fn unchanged_consensus_objects_mut( &mut self, ) -> &mut Vec<UnchangedConsensusObject>
Returns a mutable reference to unchanged_consensus_objects
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn set_unchanged_consensus_objects(
&mut self,
field: Vec<UnchangedConsensusObject>,
)
pub fn set_unchanged_consensus_objects( &mut self, field: Vec<UnchangedConsensusObject>, )
Sets unchanged_consensus_objects
with the provided value.
Sourcepub fn with_unchanged_consensus_objects(
self,
field: Vec<UnchangedConsensusObject>,
) -> Self
pub fn with_unchanged_consensus_objects( self, field: Vec<UnchangedConsensusObject>, ) -> Self
Sets unchanged_consensus_objects
with the provided value.
Sourcepub fn auxiliary_data_digest_opt_mut(&mut self) -> Option<&mut String>
pub fn auxiliary_data_digest_opt_mut(&mut self) -> Option<&mut String>
Sourcepub fn auxiliary_data_digest_mut(&mut self) -> &mut String
pub fn auxiliary_data_digest_mut(&mut self) -> &mut String
Returns a mutable reference to auxiliary_data_digest
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn auxiliary_data_digest_opt(&self) -> Option<&str>
pub fn auxiliary_data_digest_opt(&self) -> Option<&str>
Sourcepub fn set_auxiliary_data_digest<T: Into<String>>(&mut self, field: T)
pub fn set_auxiliary_data_digest<T: Into<String>>(&mut self, field: T)
Sets auxiliary_data_digest
with the provided value.
Sourcepub fn with_auxiliary_data_digest<T: Into<String>>(self, field: T) -> Self
pub fn with_auxiliary_data_digest<T: Into<String>>(self, field: T) -> Self
Sets auxiliary_data_digest
with the provided value.
Source§impl TransactionEffects
impl TransactionEffects
Sourcepub fn digest(&self) -> &str
pub fn digest(&self) -> &str
Returns the value of digest
, or the default value if digest
is unset.
Sourcepub fn version(&self) -> i32
pub fn version(&self) -> i32
Returns the value of version
, or the default value if version
is unset.
Sourcepub fn transaction_digest(&self) -> &str
pub fn transaction_digest(&self) -> &str
Returns the value of transaction_digest
, or the default value if transaction_digest
is unset.
Sourcepub fn events_digest(&self) -> &str
pub fn events_digest(&self) -> &str
Returns the value of events_digest
, or the default value if events_digest
is unset.
Sourcepub fn lamport_version(&self) -> u64
pub fn lamport_version(&self) -> u64
Returns the value of lamport_version
, or the default value if lamport_version
is unset.
Sourcepub fn auxiliary_data_digest(&self) -> &str
pub fn auxiliary_data_digest(&self) -> &str
Returns the value of auxiliary_data_digest
, or the default value if auxiliary_data_digest
is unset.
Trait Implementations§
Source§impl Clone for TransactionEffects
impl Clone for TransactionEffects
Source§fn clone(&self) -> TransactionEffects
fn clone(&self) -> TransactionEffects
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TransactionEffects
impl Debug for TransactionEffects
Source§impl Default for TransactionEffects
impl Default for TransactionEffects
§impl<'de> Deserialize<'de> for TransactionEffects
impl<'de> Deserialize<'de> for TransactionEffects
§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl From<TransactionEffects> for TransactionEffects
impl From<TransactionEffects> for TransactionEffects
Source§fn from(value: TransactionEffects) -> Self
fn from(value: TransactionEffects) -> Self
Source§impl Merge<&TransactionEffects> for TransactionEffects
impl Merge<&TransactionEffects> for TransactionEffects
fn merge(&mut self, source: &TransactionEffects, mask: &FieldMaskTree)
fn merge_from(source: T, mask: &FieldMaskTree) -> Selfwhere
Self: Default,
Source§impl Merge<&TransactionEffects> for TransactionEffects
impl Merge<&TransactionEffects> for TransactionEffects
fn merge(&mut self, _: &TransactionEffects, mask: &FieldMaskTree)
fn merge_from(source: T, mask: &FieldMaskTree) -> Selfwhere
Self: Default,
Source§impl Merge<&TransactionEffectsV1> for TransactionEffects
impl Merge<&TransactionEffectsV1> for TransactionEffects
fn merge(&mut self, _: &TransactionEffectsV1, mask: &FieldMaskTree)
fn merge_from(source: T, mask: &FieldMaskTree) -> Selfwhere
Self: Default,
Source§impl Merge<&TransactionEffectsV2> for TransactionEffects
impl Merge<&TransactionEffectsV2> for TransactionEffects
fn merge(&mut self, _: &TransactionEffectsV2, mask: &FieldMaskTree)
fn merge_from(source: T, mask: &FieldMaskTree) -> Selfwhere
Self: Default,
Source§impl Message for TransactionEffects
impl Message for TransactionEffects
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.Source§impl MessageFields for TransactionEffects
impl MessageFields for TransactionEffects
const FIELDS: &'static [&'static MessageField]
Source§impl PartialEq for TransactionEffects
impl PartialEq for TransactionEffects
§impl Serialize for TransactionEffects
impl Serialize for TransactionEffects
Source§impl TryFrom<&TransactionEffects> for TransactionEffects
impl TryFrom<&TransactionEffects> for TransactionEffects
Source§type Error = TryFromProtoError
type Error = TryFromProtoError
impl StructuralPartialEq for TransactionEffects
Auto Trait Implementations§
impl !Freeze for TransactionEffects
impl RefUnwindSafe for TransactionEffects
impl Send for TransactionEffects
impl Sync for TransactionEffects
impl Unpin for TransactionEffects
impl UnwindSafe for TransactionEffects
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moreSource§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,
§impl<T> Conv for T
impl<T> Conv for T
§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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request
§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered
].§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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§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.