<!DOCTYPE html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><metaname="generator"content="rustdoc"><metaname="description"content="API documentation for the Rust `PerpMarket` struct in crate `mango_v4`."><metaname="keywords"content="rust, rustlang, rust-lang, PerpMarket"><title>PerpMarket in mango_v4::state - Rust</title><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../SourceSerif4-Regular.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../FiraSans-Regular.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../FiraSans-Medium.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../SourceCodePro-Regular.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../SourceSerif4-Bold.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../SourceCodePro-Semibold.ttf.woff2"><linkrel="stylesheet"href="../../normalize.css"><linkrel="stylesheet"href="../../rustdoc.css"id="mainThemeStyle"><linkrel="stylesheet"href="../../ayu.css"disabled><linkrel="stylesheet"href="../../dark.css"disabled><linkrel="stylesheet"href="../../light.css"id="themeStyle"><scriptid="default-settings"></script><scriptsrc="../../storage.js"></script><scriptdefersrc="sidebar-items.js"></script><scriptdefersrc="../../main.js"></script><noscript><linkrel="stylesheet"href="../../noscript.css"></noscript><linkrel="alternate icon"type="image/png"href="../../favicon-16x16.png"><linkrel="alternate icon"type="image/png"href="../../favicon-32x32.png"><linkrel="icon"type="image/svg+xml"href="../../favicon.svg"></head><bodyclass="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="mobile-topbar"><buttonclass="sidebar-menu-toggle">☰</button><aclass="sidebar-logo"href="../../mango_v4/index.html"><divclass="logo-container"><imgclass="rust-logo"src="../../rust-logo.svg"alt="logo"></div></a><h2class="location"></h2></nav><navclass="sidebar"><aclass="sidebar-logo"href="../../mango_v4/index.html"><divclass="logo-container"><imgclass="rust-logo"src="../../rust-logo.svg"alt="logo"></div></a><h2class="location"><ahref="#">PerpMarket</a></h2><divclass="sidebar-elems"><section><divclass="block"><h3class="sidebar-title"><ahref="#fields">Fields</a></h3><ul><li><ahref="#structfield.asks">asks</a></li><li><ahref="#structfield.base_decimals">base_decimals</a></li><li><ahref="#structfield.base_liquidation_fee">base_liquidation_fee</a></li><li><ahref="#structfield.base_lot_size">base_lot_size</a></li><li><ahref="#structfield.bids">bids</a></li><li><ahref="#structfield.blocked1">blocked1</a></li><li><ahref="#structfield.bump">bump</a></li><li><ahref="#structfield.event_queue">event_queue</a></li><li><ahref="#structfield.fee_penalty">fee_penalty</a></li><li><ahref="#structfield.fees_accrued">fees_accrued</a></li><li><ahref="#structfield.fees_settled">fees_settled</a></li><li><ahref="#structfield.force_close">force_close</a></li><li><ahref="#structfield.funding_last_updated">funding_last_updated</a></li><li><ahref="#structfield.group">group</a></li><li><ahref="#structfield.group_insurance_fund">group_insurance_fund</a></li><li><ahref="#structfield.impact_quantity">impact_quantity</a></li><li><ahref="#structfield.init_base_asset_weight">init_base_asset_weight</a></li><li><ahref="#structfield.init_base_liab_weight">init_base_liab_weight</a></li><li><ahref="#structfield.init_overall_asset_weight">init_overall_asset_weight</a></li><li><ahref="#structfield.long_funding">long_funding</a></li><li><ahref="#structfield.maint_base_asset_weight">maint_base_asset_weight</a></li><li><ahref="#structfield.maint_base_liab_weight">maint_base_liab_weight</a></li><li><ahref="#structfield.maint_overall_asset_weight">maint_overall_asset_weight</a></li><li><ahref="#structfield.maker_fee">maker_fee</a></
</div><spanid="structfield.perp_market_index"class="structfield small-section-header"><ahref="#structfield.perp_market_index"class="anchor field"></a><code>perp_market_index: <aclass="type"href="type.PerpMarketIndex.html"title="type mango_v4::state::PerpMarketIndex">PerpMarketIndex</a></code></span><divclass="docblock"><p>Index of this perp market. Other data, like the MangoAccount’s PerpPosition
</div><spanid="structfield.blocked1"class="structfield small-section-header"><ahref="#structfield.blocked1"class="anchor field"></a><code>blocked1: <aclass="primitive"href="https://doc.rust-lang.org/1.65.0/std/primitive.u8.html">u8</a></code></span><divclass="docblock"><p>Field used to contain the trusted_market flag and is now unused.</p>
</div><spanid="structfield.group_insurance_fund"class="structfield small-section-header"><ahref="#structfield.group_insurance_fund"class="anchor field"></a><code>group_insurance_fund: <aclass="primitive"href="https://doc.rust-lang.org/1.65.0/std/primitive.u8.html">u8</a></code></span><divclass="docblock"><p>Is this market covered by the group insurance fund?</p>
</div><spanid="structfield.base_decimals"class="structfield small-section-header"><ahref="#structfield.base_decimals"class="anchor field"></a><code>base_decimals: <aclass="primitive"href="https://doc.rust-lang.org/1.65.0/std/primitive.u8.html">u8</a></code></span><divclass="docblock"><p>Number of decimals used for the base token.</p>
</div><spanid="structfield.name"class="structfield small-section-header"><ahref="#structfield.name"class="anchor field"></a><code>name: <aclass="primitive"href="https://doc.rust-lang.org/1.65.0/std/primitive.array.html">[</a><aclass="primitive"href="https://doc.rust-lang.org/1.65.0/std/primitive.u8.html">u8</a><aclass="primitive"href="https://doc.rust-lang.org/1.65.0/std/primitive.array.html">; 16]</a></code></span><divclass="docblock"><p>Name. Trailing zero bytes are ignored.</p>
</div><spanid="structfield.bids"class="structfield small-section-header"><ahref="#structfield.bids"class="anchor field"></a><code>bids: Pubkey</code></span><divclass="docblock"><p>Address of the BookSide account for bids</p>
</div><spanid="structfield.asks"class="structfield small-section-header"><ahref="#structfield.asks"class="anchor field"></a><code>asks: Pubkey</code></span><divclass="docblock"><p>Address of the BookSide account for asks</p>
</div><spanid="structfield.event_queue"class="structfield small-section-header"><ahref="#structfield.event_queue"class="anchor field"></a><code>event_queue: Pubkey</code></span><divclass="docblock"><p>Address of the EventQueue account</p>
</div><spanid="structfield.stable_price_model"class="structfield small-section-header"><ahref="#structfield.stable_price_model"class="anchor field"></a><code>stable_price_model: <aclass="struct"href="struct.StablePriceModel.html"title="struct mango_v4::state::StablePriceModel">StablePriceModel</a></code></span><divclass="docblock"><p>Maintains a stable price based on the oracle price that is less volatile.</p>
</div><spanid="structfield.quote_lot_size"class="structfield small-section-header"><ahref="#structfield.quote_lot_size"class="anchor field"></a><code>quote_lot_size: <aclass="primitive"href="https://doc.rust-lang.org/1.65.0/std/primitive.i64.html">i64</a></code></span><divclass="docblock"><p>Number of quote native in a quote lot. Must be a power of 10.</p>
</div><spanid="structfield.base_lot_size"class="structfield small-section-header"><ahref="#structfield.base_lot_size"class="anchor field"></a><code>base_lot_size: <aclass="primitive"href="https://doc.rust-lang.org/1.65.0/std/primitive.i64.html">i64</a></code></span><divclass="docblock"><p>Number of base native in a base lot. Must be a power of 10.</p>
</div><spanid="structfield.maint_base_asset_weight"class="structfield small-section-header"><ahref="#structfield.maint_base_asset_weight"class="anchor field"></a><code>maint_base_asset_weight: <aclass="type"href="https://docs.rs/fixed/~1.11/fixed/types/type.I80F48.html"title="type fixed::types::I80F48">I80F48</a></code></span><divclass="docblock"><p>These weights apply to the base position. The quote position has
</div><spanid="structfield.init_base_asset_weight"class="structfield small-section-header"><ahref="#structfield.init_base_asset_weight"class="anchor field"></a><code>init_base_asset_weight: <aclass="type"href="https://docs.rs/fixed/~1.11/fixed/types/type.I80F48.html"title="type fixed::types::I80F48">I80F48</a></code></span><spanid="structfield.maint_base_liab_weight"class="structfield small-section-header"><ahref="#structfield.maint_base_liab_weight"class="anchor field"></a><code>maint_base_liab_weight: <aclass="type"href="https://docs.rs/fixed/~1.11/fixed/types/type.I80F48.html"title="type fixed::types::I80F48">I80F48</a></code></span><spanid="structfield.init_base_liab_weight"class="structfield small-section-header"><ahref="#structfield.init_base_liab_weight"class="anchor field"></a><code>init_base_liab_weight: <aclass="type"href="https://docs.rs/fixed/~1.11/fixed/types/type.I80F48.html"title="type fixed::types::I80F48">I80F48</a></code></span><spanid="structfield.open_interest"class="structfield small-section-header"><ahref="#structfield.open_interest"class="anchor field"></a><code>open_interest: <aclass="primitive"href="https://doc.rust-lang.org/1.65.0/std/primitive.i64.html">i64</a></code></span><divclass="docblock"><p>Number of base lot pairs currently active in the market. Always >= 0.</p>
</div><spanid="structfield.seq_num"class="structfield small-section-header"><ahref="#structfield.seq_num"class="anchor field"></a><code>seq_num: <aclass="primitive"href="https://doc.rust-lang.org/1.65.0/std/primitive.u64.html">u64</a></code></span><divclass="docblock"><p>Total number of orders seen</p>
</div><spanid="structfield.registration_time"class="structfield small-section-header"><ahref="#structfield.registration_time"class="anchor field"></a><code>registration_time: <aclass="primitive"href="https://doc.rust-lang.org/1.65.0/std/primitive.u64.html">u64</a></code></span><divclass="docblock"><p>Timestamp in seconds that the market was registered at.</p>
</div><spanid="structfield.min_funding"class="structfield small-section-header"><ahref="#structfield.min_funding"class="anchor field"></a><code>min_funding: <aclass="type"href="https://docs.rs/fixed/~1.11/fixed/types/type.I80F48.html"title="type fixed::types::I80F48">I80F48</a></code></span><divclass="docblock"><p>Minimal funding rate per day, must be <= 0.</p>
</div><spanid="structfield.max_funding"class="structfield small-section-header"><ahref="#structfield.max_funding"class="anchor field"></a><code>max_funding: <aclass="type"href="https://docs.rs/fixed/~1.11/fixed/types/type.I80F48.html"title="type fixed::types::I80F48">I80F48</a></code></span><divclass="docblock"><p>Maximal funding rate per day, must be >= 0.</p>
</div><spanid="structfield.impact_quantity"class="structfield small-section-header"><ahref="#structfield.impact_quantity"class="anchor field"></a><code>impact_quantity: <aclass="primitive"href="https://doc.rust-lang.org/1.65.0/std/primitive.i64.html">i64</a></code></span><divclass="docblock"><p>For funding, get the impact price this many base lots deep into the book.</p>
</div><spanid="structfield.long_funding"class="structfield small-section-header"><ahref="#structfield.long_funding"class="anchor field"></a><code>long_funding: <aclass="type"href="https://docs.rs/fixed/~1.11/fixed/types/type.I80F48.html"title="type fixed::types::I80F48">I80F48</a></code></span><divclass="docblock"><p>Current long funding value. Increasing it means that every long base lot
</div><spanid="structfield.funding_last_updated"class="structfield small-section-header"><ahref="#structfield.funding_last_updated"class="anchor field"></a><code>funding_last_updated: <aclass="primitive"href="https://doc.rust-lang.org/1.65.0/std/primitive.u64.html">u64</a></code></span><divclass="docblock"><p>timestamp that funding was last updated in</p>
</div><spanid="structfield.maker_fee"class="structfield small-section-header"><ahref="#structfield.maker_fee"class="anchor field"></a><code>maker_fee: <aclass="type"href="https://docs.rs/fixed/~1.11/fixed/types/type.I80F48.html"title="type fixed::types::I80F48">I80F48</a></code></span><divclass="docblock"><p>Fee when matching maker orders. May be negative.</p>
</div><spanid="structfield.taker_fee"class="structfield small-section-header"><ahref="#structfield.taker_fee"class="anchor field"></a><code>taker_fee: <aclass="type"href="https://docs.rs/fixed/~1.11/fixed/types/type.I80F48.html"title="type fixed::types::I80F48">I80F48</a></code></span><divclass="docblock"><p>Fee for taker orders, may not be negative.</p>
</div><spanid="structfield.fees_accrued"class="structfield small-section-header"><ahref="#structfield.fees_accrued"class="anchor field"></a><code>fees_accrued: <aclass="type"href="https://docs.rs/fixed/~1.11/fixed/types/type.I80F48.html"title="type fixed::types::I80F48">I80F48</a></code></span><divclass="docblock"><p>Fees accrued in native quote currency</p>
</div><spanid="structfield.fees_settled"class="structfield small-section-header"><ahref="#structfield.fees_settled"class="anchor field"></a><code>fees_settled: <aclass="type"href="https://docs.rs/fixed/~1.11/fixed/types/type.I80F48.html"title="type fixed::types::I80F48">I80F48</a></code></span><divclass="docblock"><p>Fees settled in native quote currency</p>
</div><spanid="structfield.fee_penalty"class="structfield small-section-header"><ahref="#structfield.fee_penalty"class="anchor field"></a><code>fee_penalty: <aclass="primitive"href="https://doc.rust-lang.org/1.65.0/std/primitive.f32.html">f32</a></code></span><divclass="docblock"><p>Fee (in quote native) to charge for ioc orders</p>
</div><spanid="structfield.settle_fee_flat"class="structfield small-section-header"><ahref="#structfield.settle_fee_flat"class="anchor field"></a><code>settle_fee_flat: <aclass="primitive"href="https://doc.rust-lang.org/1.65.0/std/primitive.f32.html">f32</a></code></span><divclass="docblock"><p>In native units of settlement token, given to each settle call above the
</div><spanid="structfield.settle_fee_amount_threshold"class="structfield small-section-header"><ahref="#structfield.settle_fee_amount_threshold"class="anchor field"></a><code>settle_fee_amount_threshold: <aclass="primitive"href="https://doc.rust-lang.org/1.65.0/std/primitive.f32.html">f32</a></code></span><divclass="docblock"><p>Pnl settlement amount needed to be eligible for the flat fee.</p>
</div><spanid="structfield.settle_fee_fraction_low_health"class="structfield small-section-header"><ahref="#structfield.settle_fee_fraction_low_health"class="anchor field"></a><code>settle_fee_fraction_low_health: <aclass="primitive"href="https://doc.rust-lang.org/1.65.0/std/primitive.f32.html">f32</a></code></span><divclass="docblock"><p>Fraction of pnl to pay out as fee if +pnl account has low health.</p>
</div><spanid="structfield.settle_pnl_limit_factor"class="structfield small-section-header"><ahref="#structfield.settle_pnl_limit_factor"class="anchor field"></a><code>settle_pnl_limit_factor: <aclass="primitive"href="https://doc.rust-lang.org/1.65.0/std/primitive.f32.html">f32</a></code></span><divclass="docblock"><p>Controls the strictness of the settle limit.
</div><spanid="structfield.padding3"class="structfield small-section-header"><ahref="#structfield.padding3"class="anchor field"></a><code>padding3: <aclass="primitive"href="https://doc.rust-lang.org/1.65.0/std/primitive.array.html">[</a><aclass="primitive"href="https://doc.rust-lang.org/1.65.0/std/primitive.u8.html">u8</a><aclass="primitive"href="https://doc.rust-lang.org/1.65.0/std/primitive.array.html">; 4]</a></code></span><spanid="structfield.settle_pnl_limit_window_size_ts"class="structfield small-section-header"><ahref="#structfield.settle_pnl_limit_window_size_ts"class="anchor field"></a><code>settle_pnl_limit_window_size_ts: <aclass="primitive"href="https://doc.rust-lang.org/1.65.0/std/primitive.u64.html">u64</a></code></span><divclass="docblock"><p>Window size in seconds for the perp settlement limit</p>
</div><spanid="structfield.reduce_only"class="structfield small-section-header"><ahref="#structfield.reduce_only"class="anchor field"></a><code>reduce_only: <aclass="primitive"href="https://doc.rust-lang.org/1.65.0/std/primitive.u8.html">u8</a></code></span><divclass="docblock"><p>If true, users may no longer increase their market exposure. Only actions
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.lot_to_native_price"class="method has-srclink"><aclass="srclink rightside"href="../../src/mango_v4/state/perp_market.rs.html#354-357">source</a><h4class="code-header">pub fn <ahref="#method.lot_to_native_price"class="fnname">lot_to_native_price</a>(&self, price: <aclass="primitive"href="https://doc.rust-lang.org/1.65.0/std/primitive.i64.html">i64</a>) -><aclass="type"href="https://docs.rs/fixed/~1.11/fixed/types/type.I80F48.html"title="type fixed::types::I80F48">I80F48</a></h4></section></summary><divclass="docblock"><p>Convert from the price stored on the book to the price used in value calculations</p>
</div></details><sectionid="method.native_price_to_lot"class="method has-srclink"><aclass="srclink rightside"href="../../src/mango_v4/state/perp_market.rs.html#359-362">source</a><h4class="code-header">pub fn <ahref="#method.native_price_to_lot"class="fnname">native_price_to_lot</a>(&self, price: <aclass="type"href="https://docs.rs/fixed/~1.11/fixed/types/type.I80F48.html"title="type fixed::types::I80F48">I80F48</a>) -><aclass="primitive"href="https://doc.rust-lang.org/1.65.0/std/primitive.i64.html">i64</a></h4></section><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.inside_price_limit"class="method has-srclink"><aclass="srclink rightside"href="../../src/mango_v4/state/perp_market.rs.html#365-375">source</a><h4class="code-header">pub fn <ahref="#method.inside_price_limit"class="fnname">inside_price_limit</a>(<br> &self,<br> side: <aclass="enum"href="enum.Side.html"title="enum mango_v4::state::Side">Side</a>,<br> native_price: <aclass="type"href="https://docs.rs/fixed/~1.11/fixed/types/type.I80F48.html"title="type fixed::types::I80F48">I80F48</a>,<br> oracle_price: <aclass="type"href="https://docs.rs/fixed/~1.11/fixed/types/type.I80F48.html"title="type fixed::types::I80F48">I80F48</a><br>) -><aclass="primitive"href="https://doc.rust-lang.org/1.65.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Is <code>native_price</code> an acceptable order for the <code>side</code> of this market, given <code>oracle_price</code>?</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.socialize_loss"class="method has-srclink"><aclass="srclink rightside"href="../../src/mango_v4/state/perp_market.rs.html#378-395">source</a><h4class="code-header">pub fn <ahref="#method.socialize_loss"class="fnname">socialize_loss</a>(&mut self, loss: <aclass="type"href="https://docs.rs/fixed/~1.11/fixed/types/type.I80F48.html"title="type fixed::types::I80F48">I80F48</a>) -> Result<<aclass="type"href="https://docs.rs/fixed/~1.11/fixed/types/type.I80F48.html"title="type fixed::types::I80F48">I80F48</a>></h4></section></summary><divclass="docblock"><p>Socialize the loss in this account across all longs and shorts</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.compute_settle_fee"class="method has-srclink"><aclass="srclink rightside"href="../../src/mango_v4/state/perp_market.rs.html#399-437">source</a><h4class="code-header">pub fn <ahref="#method.compute_settle_fee"class="fnname">compute_settle_fee</a>(<br> &self,<br> settlement: <aclass="type"href="https://docs.rs/fixed/~1.11/fixed/types/type.I80F48.html"title="type fixed::types::I80F48">I80F48</a>,<br> source_liq_end_health: <aclass="type"href="https://docs.rs/fixed/~1.11/fixed/types/type.I80F48.html"title="type fixed::types::I80F48">I80F48</a>,<br> source_maint_health: <aclass="type"href="https://docs.rs/fixed/~1.11/fixed/types/type.I80F48.html"title="type fixed::types::I80F48">I80F48</a><br>) -> Result<<aclass="type"href="https://docs.rs/fixed/~1.11/fixed/types/type.I80F48.html"title="type fixed::types::I80F48">I80F48</a>></h4></section></summary><divclass="docblock"><p>Returns the fee for settling <code>settlement</code> when the negative-pnl side has the given
<ahref="CheckedBitPattern::is_valid_bit_pattern"><code>is_valid_bit_pattern</code></a>. <a>Read more</a></div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.is_valid_bit_pattern"class="method trait-impl has-srclink"><ahref="#method.is_valid_bit_pattern"class="anchor"></a><h4class="code-header">fn <aclass="fnname">is_valid_bit_pattern</a>(_bits: <aclass="primitive"href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&</a>T) -><aclass="primitive"href="https://doc.rust-lang.org/1.65.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass='docblock'>If this function returns true, then it must be valid to reinterpret <code>bits</code>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-Instrument-for-PerpMarket"class="impl has-srclink"><aclass="srclink rightside"href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#276">source</a><ahref="#impl-Instrument-for-PerpMarket"class="anchor"></a><h3class="code-header in-band">impl<T><aclass="trait"href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html"title="trait tracing::instrument::Instrument">Instrument</a> for T</h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.instrument"class="method trait-impl has-srclink"><aclass="srclink rightside"href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#82">source</a><ahref="#method.instrument"class="anchor"></a><h4class="code-header">fn <ahref="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html#method.instrument"class="fnname">instrument</a>(self, span: <aclass="struct"href="https://docs.rs/tracing/0.1.37/tracing/span/struct.Span.html"title="struct tracing::span::Span">Span</a>) -><aclass="struct"href="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.Instrumented.html"title="struct tracing::instrument::Instrumented">Instrumented</a><Self></h4></section></summary><divclass='docblock'>Instruments this type with the provided <ahref="https://docs.rs/tracing/0.1.37/tracing/span/struct.Span.html"title="Span"><code>Span</code></a>, returning an
<code>Instrumented</code> wrapper. <ahref="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html#method.instrument">Read more</a></div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.in_current_span"class="method trait-impl has-srclink"><aclass="srclink rightside"href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#121">source</a><ahref="#method.in_current_span"class="anchor"></a><h4class="code-header">fn <ahref="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html#method.in_current_span"class="fnname">in_current_span</a>(self) -><aclass="struct"href="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.Instrumented.html"title="struct tracing::instrument::Instrumented">Instrumented</a><Self></h4></section></summary><divclass='docblock'>Instruments this type with the <ahref="https://docs.rs/tracing/0.1.37/tracing/span/struct.Span.html#method.current">current</a><ahref="https://docs.rs/tracing/0.1.37/tracing/span/struct.Span.html"><code>Span</code></a>, returning an
<ahref="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.WithDispatch.html"title="WithDispatch"><code>WithDispatch</code></a> wrapper. <ahref="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber">Read more</a></div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.with_current_subscriber"class="method trait-impl has-srclink"><aclass="srclink rightside"href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#221">source</a><ahref="#method.with_current_subscriber"class="anchor"></a><h4class="code-header">fn <ahref="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber"class="fnname">with_current_subscriber</a>(self) -><aclass="struct"href="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.WithDispatch.html"title="struct tracing::instrument::WithDispatch">WithDispatch</a><Self></h4></section></summary><divclass='docblock'>Attaches the current <ahref="https://docs.rs/tracing/0.1.37/tracing/dispatcher/index.html#setting-the-default-subscriber">default</a><ahref="https://docs.rs/tracing-core/0.1.22/tracing_core/subscriber/trait.Subscriber.html"><code>Subscriber</code></a> to this type, returning a
<ahref="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.WithDispatch.html"title="WithDispatch"><code>WithDispatch</code></a> wrapper. <ahref="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber">Read more</a></div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-WrappingAs-for-PerpMarket"class="impl has-srclink"><aclass="srclink rightside"href="https://docs.rs/az/~1.2/src/az/lib.rs.html#818">source</a><ahref="#impl-WrappingAs-for-PerpMarket"class="anchor"></a><h3class="code-header in-band">impl<T><aclass="trait"href="https://docs.rs/az/~1.2/az/trait.WrappingAs.html"title="trait az::WrappingAs">WrappingAs</a> for T</h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.wrapping_as"class="method trait-impl has-srclink"><aclass="srclink rightside"href="https://docs.rs/az/~1.2/src/az/lib.rs.html#821-823">source</a><ahref="#method.wrapping_as"class="anchor"></a><h4class="code-header">fn <ahref="https://docs.rs/az/~1.2/az/trait.WrappingAs.html#tymethod.wrapping_as"class="fnname">wrapping_as</a><Dst>(self) -> Dst<spanclass="where fmt-newline">where<br> T: <aclass="trait"href="https://docs.rs/az/~1.2/az/trait.WrappingCast.html"title="trait az::WrappingCast">WrappingCast</a><Dst>,</span></h4></section></summary><divclass='docblock'>Casts the value.</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-WrappingCastFrom%3CSrc%3E-for-PerpMarket"class="impl has-srclink"><aclass="srclink rightside"href="https://docs.rs/az/~1.2/src/az/lib.rs.html#438">source</a><ahref="#impl-WrappingCastFrom%3CSrc%3E-for-PerpMarket"class="anchor"></a><h3class="code-header in-band">impl<Src, Dst><aclass="trait"href="https://docs.rs/az/~1.2/az/trait.WrappingCastFrom.html"title="trait az::WrappingCastFrom">WrappingCastFrom</a><Src> for Dst<spanclass="where fmt-newline">where<br> Src: <aclass="trait"href="https://docs.rs/az/~1.2/az/trait.WrappingCast.html"title="trait az::WrappingCast">WrappingCast</a><Dst>,</span></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.wrapping_cast_from"class="method trait-impl has-srclink"><aclass="srclink rightside"href="https://docs.rs/az/~1.2/src/az/lib.rs.html#441">source</a><ahref="#method.wrapping_cast_from"class="anchor"></a><h4class="code-header">fn <ahref="https://docs.rs/az/~1.2/az/trait.WrappingCastFrom.html#tymethod.wrapping_cast_from"class="fnname">wrapping_cast_from</a>(src: Src) -> Dst</h4></section></summary><divclass='docblock'>Casts the value.</div></details></div></details><sectionid="impl-AnyBitPattern-for-PerpMarket"class="impl has-srclink"><ahref="#impl-AnyBitPattern-for-PerpMarket"class="anchor"></a><h3class="code-header in-band">impl<T> AnyBitPattern for T<spanclass="where fmt-newline">where<br> T: Pod,</span></h3></section><sectionid="impl-NoUninit-for-PerpMarket"class="impl has-srclink"><ahref="#impl-NoUninit-for-PerpMarket"class="anchor"></a><h3class="code-header in-band">impl<T> NoUninit for T<spanclass="where fmt-newline">where<br> T: Pod,</span></h3></section></div></section></div></main><divid="rustdoc-vars"data-root-path="../../"data-current-crate="mango_v4"data-themes="ayu,dark,light"data-resource-suffix=""data-rustdoc-version="1.65.0 (897e37553 2022-11-02)"></div></body></html>