pub struct ConsensusApi {Show 20 fields
pub cfg: ServerConfig,
pub db: Database,
pub modules: ServerModuleRegistry,
pub client_cfg: ClientConfig,
pub force_api_secret: Option<String>,
pub submission_sender: Sender<ConsensusItem>,
pub shutdown_receiver: Receiver<Option<ScheduledShutdown>>,
pub shutdown_sender: Sender<Option<ScheduledShutdown>>,
pub ord_latency_receiver: Receiver<Option<Duration>>,
pub accepted_item_receiver: Receiver<()>,
pub completed_session_receiver: Receiver<Option<Arc<CachedSessionOutcome>>>,
pub p2p_status_receivers: P2PStatusReceivers,
pub ci_status_receivers: BTreeMap<PeerId, Receiver<Option<u64>>>,
pub bitcoin_rpc_connection: ServerBitcoinRpcMonitor,
pub supported_api_versions: SupportedApiVersionsSummary,
pub auth_ui: Option<ApiAuth>,
pub auth_api: Option<ApiAuth>,
pub code_version_str: String,
pub code_version_hash: String,
pub task_group: TaskGroup,
}Fields§
§cfg: ServerConfigOur server configuration
db: DatabaseDatabase for serving the API
modules: ServerModuleRegistryModules registered with the federation
client_cfg: ClientConfigCached client config
force_api_secret: Option<String>§submission_sender: Sender<ConsensusItem>For sending API events to consensus such as transactions
shutdown_receiver: Receiver<Option<ScheduledShutdown>>§shutdown_sender: Sender<Option<ScheduledShutdown>>§ord_latency_receiver: Receiver<Option<Duration>>§accepted_item_receiver: Receiver<()>Notified whenever consensus accepts an item.
completed_session_receiver: Receiver<Option<Arc<CachedSessionOutcome>>>Notified whenever consensus completes a session.
p2p_status_receivers: P2PStatusReceivers§ci_status_receivers: BTreeMap<PeerId, Receiver<Option<u64>>>§bitcoin_rpc_connection: ServerBitcoinRpcMonitor§supported_api_versions: SupportedApiVersionsSummary§auth_ui: Option<ApiAuth>§auth_api: Option<ApiAuth>§code_version_str: String§code_version_hash: String§task_group: TaskGroupImplementations§
Source§impl ConsensusApi
impl ConsensusApi
pub fn api_versions_summary(&self) -> &SupportedApiVersionsSummary
pub fn get_active_api_secret(&self) -> Option<String>
pub async fn submit_transaction( &self, transaction: Transaction, ) -> Result<TransactionId, TransactionError>
pub async fn await_transaction( &self, txid: TransactionId, ) -> (Vec<ModuleInstanceId>, DatabaseTransaction<'_, Committable>)
pub async fn await_output_outcome( &self, outpoint: OutPoint, ) -> Result<SerdeModuleEncoding<DynOutputOutcome>>
pub async fn await_outputs_outcomes( &self, outpoint_range: OutPointRange, ) -> Result<Vec<Option<SerdeModuleEncoding<DynOutputOutcome>>>>
pub fn session_count(&self) -> u64
async fn await_session_outcome( &self, index: u64, format: OutcomeFormat, ) -> Arc<Value>
pub async fn session_status(&self, session_index: u64) -> SessionStatusV2
pub fn get_federation_status(&self) -> ApiResult<LegacyFederationStatus>
fn shutdown(&self, index: Option<u64>)
Sourcefn shutdown_after_current_session(&self)
fn shutdown_after_current_session(&self)
Schedules a shutdown for the session that is running now. The consensus loop shuts down at the first session boundary at or after the scheduled session, so a session that completes while this request is handled defers the shutdown to the end of the next one instead of cancelling it. Repeating the request never moves a shutdown that is already due by then to a later session.
Unlike shutdown, the resulting stop is reported as
ShutdownRequest::AfterCurrentSession, so the process running the
server can tell it apart from a shutdown scheduled for a given session.
async fn get_federation_audit(&self) -> ApiResult<AuditSummary>
Sourcefn get_guardian_config_backup(
&self,
_auth: &GuardianAuthToken,
) -> GuardianConfigBackup
fn get_guardian_config_backup( &self, _auth: &GuardianAuthToken, ) -> GuardianConfigBackup
Uses the in-memory config to write a config backup tar archive that guardians can download. Private keys are stored as plaintext JSON. Operators should rely on disk encryption for at-rest protection.
async fn handle_backup_request( &self, dbtx: &mut DatabaseTransaction<'_>, request: SignedBackupRequest, ) -> Result<(), ApiError>
async fn handle_recover_request( &self, dbtx: &mut DatabaseTransaction<'_>, id: PublicKey, ) -> Option<ClientBackupSnapshot>
Sourceasync fn api_announcements(&self) -> BTreeMap<PeerId, SignedApiAnnouncement>
async fn api_announcements(&self) -> BTreeMap<PeerId, SignedApiAnnouncement>
List API URL announcements from all peers we have received them from (at least ourselves)
Sourcefn fedimintd_version(&self) -> String
fn fedimintd_version(&self) -> String
Returns the tagged fedimintd version currently running
Sourceasync fn submit_api_announcement(
&self,
peer_id: PeerId,
announcement: SignedApiAnnouncement,
) -> Result<(), ApiError>
async fn submit_api_announcement( &self, peer_id: PeerId, announcement: SignedApiAnnouncement, ) -> Result<(), ApiError>
Add an API URL announcement from a peer to our database to be returned
by ConsensusApi::api_announcements.
async fn sign_api_announcement(&self, new_url: SafeUrl) -> SignedApiAnnouncement
async fn guardian_metadata_list( &self, ) -> BTreeMap<PeerId, SignedGuardianMetadata>
async fn submit_guardian_metadata( &self, peer_id: PeerId, metadata: SignedGuardianMetadata, ) -> Result<(), ApiError>
async fn sign_guardian_metadata( &self, new_metadata: GuardianMetadata, ) -> SignedGuardianMetadata
async fn get_invite_code(&self, api_secret: Option<String>) -> InviteCode
Trait Implementations§
Source§impl Clone for ConsensusApi
impl Clone for ConsensusApi
Source§fn clone(&self) -> ConsensusApi
fn clone(&self) -> ConsensusApi
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl HasApiContext<ConsensusApi> for ConsensusApi
impl HasApiContext<ConsensusApi> for ConsensusApi
fn context<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ApiRequestErased,
id: Option<ModuleInstanceId>,
) -> Pin<Box<dyn Future<Output = (&ConsensusApi, ApiEndpointContext)> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl HasApiContext<DynServerModule> for ConsensusApi
impl HasApiContext<DynServerModule> for ConsensusApi
fn context<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ApiRequestErased,
id: Option<ModuleInstanceId>,
) -> Pin<Box<dyn Future<Output = (&DynServerModule, ApiEndpointContext)> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl IDashboardApi for ConsensusApi
impl IDashboardApi for ConsensusApi
Source§fn auth_ui(&self) -> Option<ApiAuth>
fn auth_ui(&self) -> Option<ApiAuth>
None means the UI
is served without a login form.Source§fn guardian_id<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = PeerId> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn guardian_id<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = PeerId> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn guardian_names<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = BTreeMap<PeerId, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn guardian_names<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = BTreeMap<PeerId, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn federation_name<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn federation_name<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn session_count<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = u64> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn session_count<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = u64> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn get_session_status<'life0, 'async_trait>(
&'life0 self,
session_idx: u64,
) -> Pin<Box<dyn Future<Output = SessionStatusV2> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_session_status<'life0, 'async_trait>(
&'life0 self,
session_idx: u64,
) -> Pin<Box<dyn Future<Output = SessionStatusV2> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn consensus_ord_latency<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Option<Duration>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn consensus_ord_latency<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Option<Duration>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn p2p_connection_status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = BTreeMap<PeerId, Option<P2PConnectionStatus>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn p2p_connection_status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = BTreeMap<PeerId, Option<P2PConnectionStatus>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn federation_invite_code<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn federation_invite_code<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn federation_audit<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = AuditSummary> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn federation_audit<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = AuditSummary> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn bitcoin_rpc_url<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = SafeUrl> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn bitcoin_rpc_url<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = SafeUrl> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn bitcoin_rpc_status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Option<ServerBitcoinRpcStatus>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn bitcoin_rpc_status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Option<ServerBitcoinRpcStatus>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn download_guardian_config_backup<'life0, 'life1, 'async_trait>(
&'life0 self,
guardian_auth: &'life1 GuardianAuthToken,
) -> Pin<Box<dyn Future<Output = GuardianConfigBackup> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn download_guardian_config_backup<'life0, 'life1, 'async_trait>(
&'life0 self,
guardian_auth: &'life1 GuardianAuthToken,
) -> Pin<Box<dyn Future<Output = GuardianConfigBackup> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_module_by_kind(&self, kind: ModuleKind) -> Option<&DynServerModule>
fn get_module_by_kind(&self, kind: ModuleKind) -> Option<&DynServerModule>
Source§fn fedimintd_version<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fedimintd_version<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn fedimintd_version_hash<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fedimintd_version_hash<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
None if it is not
available (e.g. it was built outside a git checkout).Auto Trait Implementations§
impl !Freeze for ConsensusApi
impl !RefUnwindSafe for ConsensusApi
impl Send for ConsensusApi
impl Sync for ConsensusApi
impl Unpin for ConsensusApi
impl !UnwindSafe for ConsensusApi
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync 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,
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> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> PossiblyOption<T> for T
impl<T> PossiblyOption<T> 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.