pub struct HyperliquidHttpClient { /* private fields */ }
Expand description
Provides a lower-level HTTP client for connecting to the Hyperliquid REST API.
This client wraps the underlying HttpClient
to handle functionality
specific to Hyperliquid, such as request signing (for authenticated endpoints),
forming request URLs, and deserializing responses into specific data models.
Implementations§
Source§impl HyperliquidHttpClient
impl HyperliquidHttpClient
Sourcepub fn new(is_testnet: bool, timeout_secs: Option<u64>) -> Self
pub fn new(is_testnet: bool, timeout_secs: Option<u64>) -> Self
Creates a new HyperliquidHttpClient
using the default Hyperliquid HTTP URL,
optionally overridden with a custom timeout.
This version of the client has no credentials, so it can only call publicly accessible endpoints.
Sourcepub fn with_credentials(secrets: &Secrets, timeout_secs: Option<u64>) -> Self
pub fn with_credentials(secrets: &Secrets, timeout_secs: Option<u64>) -> Self
Creates a new HyperliquidHttpClient
configured with credentials
for authenticated requests.
Sourcepub fn from_env() -> Result<Self>
pub fn from_env() -> Result<Self>
Creates an authenticated client from environment variables.
§Errors
Returns Error::Auth
if required environment variables
are not set.
Sourcepub fn with_rate_limits(self) -> Self
pub fn with_rate_limits(self) -> Self
Configure rate limiting parameters (chainable).
Sourcepub fn is_testnet(&self) -> bool
pub fn is_testnet(&self) -> bool
Returns whether this client is configured for testnet.
Sourcepub fn get_user_address(&self) -> Result<String>
pub fn get_user_address(&self) -> Result<String>
Gets the user address derived from the private key (if client has credentials).
§Errors
Returns Error::Auth
if the client has no signer configured.
Sourcepub fn add_instrument(&self, instrument: InstrumentAny)
pub fn add_instrument(&self, instrument: InstrumentAny)
Add an instrument to the internal cache for report generation.
This is required for parsing orders, fills, and positions into reports. Instruments are stored under two keys:
- The Nautilus symbol (e.g., “BTC-USD-PERP”)
- The Hyperliquid coin identifier (base currency, e.g., “BTC” or “vntls:vCURSOR”)
§Panics
Panics if the instrument lock cannot be acquired.
Sourcepub fn set_account_id(&mut self, account_id: AccountId)
pub fn set_account_id(&mut self, account_id: AccountId)
Set the account ID for this client.
This is required for generating reports with the correct account ID.
Sourcepub async fn info_meta(&self) -> Result<HyperliquidMeta>
pub async fn info_meta(&self) -> Result<HyperliquidMeta>
Get metadata about available markets.
Sourcepub async fn get_spot_meta(&self) -> Result<SpotMeta>
pub async fn get_spot_meta(&self) -> Result<SpotMeta>
Get complete spot metadata (tokens and pairs).
Sourcepub async fn get_perp_meta_and_ctxs(&self) -> Result<PerpMetaAndCtxs>
pub async fn get_perp_meta_and_ctxs(&self) -> Result<PerpMetaAndCtxs>
Get perpetuals metadata with asset contexts (for price precision refinement).
Sourcepub async fn get_spot_meta_and_ctxs(&self) -> Result<SpotMetaAndCtxs>
pub async fn get_spot_meta_and_ctxs(&self) -> Result<SpotMetaAndCtxs>
Get spot metadata with asset contexts (for price precision refinement).
Sourcepub async fn request_instruments(&self) -> Result<Vec<InstrumentAny>>
pub async fn request_instruments(&self) -> Result<Vec<InstrumentAny>>
Fetch and parse all available instrument definitions from Hyperliquid.
Sourcepub async fn info_l2_book(&self, coin: &str) -> Result<HyperliquidL2Book>
pub async fn info_l2_book(&self, coin: &str) -> Result<HyperliquidL2Book>
Get L2 order book for a coin.
Sourcepub async fn info_user_fills(&self, user: &str) -> Result<HyperliquidFills>
pub async fn info_user_fills(&self, user: &str) -> Result<HyperliquidFills>
Get user fills (trading history).
Sourcepub async fn info_order_status(
&self,
user: &str,
oid: u64,
) -> Result<HyperliquidOrderStatus>
pub async fn info_order_status( &self, user: &str, oid: u64, ) -> Result<HyperliquidOrderStatus>
Get order status for a user.
Sourcepub async fn info_open_orders(&self, user: &str) -> Result<Value>
pub async fn info_open_orders(&self, user: &str) -> Result<Value>
Get all open orders for a user.
Sourcepub async fn info_frontend_open_orders(&self, user: &str) -> Result<Value>
pub async fn info_frontend_open_orders(&self, user: &str) -> Result<Value>
Get frontend open orders (includes more detail) for a user.
Sourcepub async fn info_clearinghouse_state(&self, user: &str) -> Result<Value>
pub async fn info_clearinghouse_state(&self, user: &str) -> Result<Value>
Get clearinghouse state (balances, positions, margin) for a user.
Sourcepub async fn info_candle_snapshot(
&self,
coin: &str,
interval: &str,
start_time: u64,
end_time: u64,
) -> Result<HyperliquidCandleSnapshot>
pub async fn info_candle_snapshot( &self, coin: &str, interval: &str, start_time: u64, end_time: u64, ) -> Result<HyperliquidCandleSnapshot>
Get candle/bar data for a coin.
§Arguments
coin
- The coin symbol (e.g., “BTC”)interval
- The timeframe (e.g., “1m”, “5m”, “15m”, “1h”, “4h”, “1d”)start_time
- Start timestamp in millisecondsend_time
- End timestamp in milliseconds
Sourcepub async fn send_info_request_raw(
&self,
request: &InfoRequest,
) -> Result<Value>
pub async fn send_info_request_raw( &self, request: &InfoRequest, ) -> Result<Value>
Generic info request method that returns raw JSON (useful for new endpoints and testing).
Sourcepub async fn post_action(
&self,
action: &ExchangeAction,
) -> Result<HyperliquidExchangeResponse>
pub async fn post_action( &self, action: &ExchangeAction, ) -> Result<HyperliquidExchangeResponse>
Send a signed action to the exchange.
Sourcepub async fn submit_order(&self, order: &OrderAny) -> Result<OrderStatusReport>
pub async fn submit_order(&self, order: &OrderAny) -> Result<OrderStatusReport>
Submit a single order to the Hyperliquid exchange.
Uses the existing order conversion logic from common::parse::order_to_hyperliquid_request
to avoid code duplication and ensure consistency.
§Errors
Returns an error if credentials are missing, order validation fails, serialization fails, or the API returns an error.
Sourcepub async fn submit_orders(
&self,
orders: &[&OrderAny],
) -> Result<Vec<OrderStatusReport>>
pub async fn submit_orders( &self, orders: &[&OrderAny], ) -> Result<Vec<OrderStatusReport>>
Submit multiple orders to the Hyperliquid exchange in a single request.
Uses the existing order conversion logic from common::parse::orders_to_hyperliquid_requests
to avoid code duplication and ensure consistency.
§Errors
Returns an error if credentials are missing, order validation fails, serialization fails, or the API returns an error.
Sourcepub async fn request_order_status_reports(
&self,
user: &str,
instrument_id: Option<InstrumentId>,
) -> Result<Vec<OrderStatusReport>>
pub async fn request_order_status_reports( &self, user: &str, instrument_id: Option<InstrumentId>, ) -> Result<Vec<OrderStatusReport>>
Request order status reports for a user.
Fetches open orders via info_frontend_open_orders
and parses them into OrderStatusReports.
This method requires instruments to be added to the client cache via add_instrument()
.
For vault tokens (starting with “vntls:”) that are not in the cache, synthetic instruments will be created automatically.
§Errors
Returns an error if the API request fails or parsing fails.
Sourcepub async fn request_fill_reports(
&self,
user: &str,
instrument_id: Option<InstrumentId>,
) -> Result<Vec<FillReport>>
pub async fn request_fill_reports( &self, user: &str, instrument_id: Option<InstrumentId>, ) -> Result<Vec<FillReport>>
Request fill reports for a user.
Fetches user fills via info_user_fills
and parses them into FillReports.
This method requires instruments to be added to the client cache via add_instrument()
.
For vault tokens (starting with “vntls:”) that are not in the cache, synthetic instruments will be created automatically.
§Errors
Returns an error if the API request fails or parsing fails.
Sourcepub async fn request_position_status_reports(
&self,
user: &str,
instrument_id: Option<InstrumentId>,
) -> Result<Vec<PositionStatusReport>>
pub async fn request_position_status_reports( &self, user: &str, instrument_id: Option<InstrumentId>, ) -> Result<Vec<PositionStatusReport>>
Request position status reports for a user.
Fetches clearinghouse state via info_clearinghouse_state
and parses positions into PositionStatusReports.
This method requires instruments to be added to the client cache via add_instrument()
.
For vault tokens (starting with “vntls:”) that are not in the cache, synthetic instruments will be created automatically.
§Errors
Returns an error if the API request fails or parsing fails.
Sourcepub async fn rest_limiter_snapshot(&self) -> RateLimitSnapshot
pub async fn rest_limiter_snapshot(&self) -> RateLimitSnapshot
Best-effort gauge for diagnostics/metrics
Trait Implementations§
Source§impl Clone for HyperliquidHttpClient
impl Clone for HyperliquidHttpClient
Source§fn clone(&self) -> HyperliquidHttpClient
fn clone(&self) -> HyperliquidHttpClient
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for HyperliquidHttpClient
impl Debug for HyperliquidHttpClient
Source§impl Default for HyperliquidHttpClient
impl Default for HyperliquidHttpClient
Source§impl<'py> IntoPyObject<'py> for HyperliquidHttpClient
impl<'py> IntoPyObject<'py> for HyperliquidHttpClient
Source§type Target = HyperliquidHttpClient
type Target = HyperliquidHttpClient
Source§type Output = Bound<'py, <HyperliquidHttpClient as IntoPyObject<'py>>::Target>
type Output = Bound<'py, <HyperliquidHttpClient as IntoPyObject<'py>>::Target>
Source§fn into_pyobject(
self,
py: Python<'py>,
) -> Result<<Self as IntoPyObject<'_>>::Output, <Self as IntoPyObject<'_>>::Error>
fn into_pyobject( self, py: Python<'py>, ) -> Result<<Self as IntoPyObject<'_>>::Output, <Self as IntoPyObject<'_>>::Error>
Source§impl PyClass for HyperliquidHttpClient
impl PyClass for HyperliquidHttpClient
Source§impl PyClassImpl for HyperliquidHttpClient
impl PyClassImpl for HyperliquidHttpClient
Source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
Source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
Source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
Source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
Source§const IS_IMMUTABLE_TYPE: bool = false
const IS_IMMUTABLE_TYPE: bool = false
Source§const RAW_DOC: &'static CStr = /// Provides a lower-level HTTP client for connecting to the [Hyperliquid](https://hyperliquid.xyz/) REST API.
///
/// This client wraps the underlying `HttpClient` to handle functionality
/// specific to Hyperliquid, such as request signing (for authenticated endpoints),
/// forming request URLs, and deserializing responses into specific data models.
const RAW_DOC: &'static CStr = /// Provides a lower-level HTTP client for connecting to the [Hyperliquid](https://hyperliquid.xyz/) REST API. /// /// This client wraps the underlying `HttpClient` to handle functionality /// specific to Hyperliquid, such as request signing (for authenticated endpoints), /// forming request URLs, and deserializing responses into specific data models.
Source§const DOC: &'static CStr
const DOC: &'static CStr
text_signature
if a constructor is defined. Read moreSource§type ThreadChecker = SendablePyClass<HyperliquidHttpClient>
type ThreadChecker = SendablePyClass<HyperliquidHttpClient>
Source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Source§type BaseNativeType = PyAny
type BaseNativeType = PyAny
PyAny
by default, and when you declare
#[pyclass(extends=PyDict)]
, it’s PyDict
.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
Source§impl PyClassNewTextSignature for HyperliquidHttpClient
impl PyClassNewTextSignature for HyperliquidHttpClient
const TEXT_SIGNATURE: &'static str = "(is_testnet=False, timeout_secs=None)"
Source§impl<'a, 'holder, 'py> PyFunctionArgument<'a, 'holder, 'py, false> for &'holder HyperliquidHttpClient
impl<'a, 'holder, 'py> PyFunctionArgument<'a, 'holder, 'py, false> for &'holder HyperliquidHttpClient
Source§impl<'a, 'holder, 'py> PyFunctionArgument<'a, 'holder, 'py, false> for &'holder mut HyperliquidHttpClient
impl<'a, 'holder, 'py> PyFunctionArgument<'a, 'holder, 'py, false> for &'holder mut HyperliquidHttpClient
Source§impl PyMethods<HyperliquidHttpClient> for PyClassImplCollector<HyperliquidHttpClient>
impl PyMethods<HyperliquidHttpClient> for PyClassImplCollector<HyperliquidHttpClient>
fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for HyperliquidHttpClient
impl PyTypeInfo for HyperliquidHttpClient
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
§fn type_object(py: Python<'_>) -> Bound<'_, PyType>
fn type_object(py: Python<'_>) -> Bound<'_, PyType>
§fn is_type_of(object: &Bound<'_, PyAny>) -> bool
fn is_type_of(object: &Bound<'_, PyAny>) -> bool
object
is an instance of this type or a subclass of this type.§fn is_exact_type_of(object: &Bound<'_, PyAny>) -> bool
fn is_exact_type_of(object: &Bound<'_, PyAny>) -> bool
object
is an instance of this type.impl DerefToPyAny for HyperliquidHttpClient
Auto Trait Implementations§
impl Freeze for HyperliquidHttpClient
impl !RefUnwindSafe for HyperliquidHttpClient
impl Send for HyperliquidHttpClient
impl Sync for HyperliquidHttpClient
impl Unpin for HyperliquidHttpClient
impl !UnwindSafe for HyperliquidHttpClient
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,
§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,
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> FromPyObject<'_> for Twhere
T: PyClass + Clone,
impl<T> FromPyObject<'_> for Twhere
T: PyClass + Clone,
§fn extract_bound(obj: &Bound<'_, PyAny>) -> Result<T, PyErr>
fn extract_bound(obj: &Bound<'_, PyAny>) -> Result<T, PyErr>
§impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
§fn from_py_object_bound(ob: Borrowed<'_, 'py, PyAny>) -> Result<T, PyErr>
fn from_py_object_bound(ob: Borrowed<'_, 'py, PyAny>) -> Result<T, PyErr>
§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<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
§fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
self
into an owned Python object, dropping type information.§fn into_py_any(self, py: Python<'py>) -> Result<Py<PyAny>, PyErr>
fn into_py_any(self, py: Python<'py>) -> Result<Py<PyAny>, PyErr>
self
into an owned Python object, dropping type information and unbinding it
from the 'py
lifetime.§fn into_pyobject_or_pyerr(self, py: Python<'py>) -> Result<Self::Output, PyErr>
fn into_pyobject_or_pyerr(self, py: Python<'py>) -> Result<Self::Output, PyErr>
self
into a Python object. Read moreSource§impl<'py, T> IntoPyObjectNautilusExt<'py> for Twhere
T: IntoPyObjectExt<'py>,
impl<'py, T> IntoPyObjectNautilusExt<'py> for Twhere
T: IntoPyObjectExt<'py>,
Source§fn into_py_any_unwrap(self, py: Python<'py>) -> Py<PyAny>
fn into_py_any_unwrap(self, py: Python<'py>) -> Py<PyAny>
§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> PyErrArguments for T
impl<T> PyErrArguments for T
§impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
§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.