Struct Info

Source
pub struct Info {
    pub client: Client,
    pub chain: Chain,
}
Expand description

Endpoint to fetch information about the exchange and specific users.

Fields§

§client: Client§chain: Chain

Implementations§

Source§

impl Info

Source

pub async fn metadata(&self) -> Result<Universe>

Retrieve exchange metadata

Examples found in repository?
examples/info/perps.rs (line 61)
60async fn metadata(info: &Info) {
61    let metadata = info.metadata().await.unwrap();
62    println!("{SEP}\nMetadata \n{:?}{SEP}", metadata.universe);
63}
Source

pub async fn mids(&self) -> Result<HashMap<String, String>>

Retrieve all mids for all actively traded coins

Examples found in repository?
examples/info/perps.rs (line 66)
65async fn mids(info: &Info) {
66    let mids = info.mids().await.unwrap();
67    println!("Mids \n{:?}{SEP}", mids);
68}
Source

pub async fn contexts(&self) -> Result<Vec<AssetContext>>

Retrieve asset contexts i.e mark price, current funding, open interest, etc

Examples found in repository?
examples/info/perps.rs (line 71)
70async fn contexts(info: &Info) {
71    let contexts = info.contexts().await.unwrap();
72    println!("Asset Contexts \n{:?}{SEP}", contexts);
73}
Source

pub async fn user_state(&self, user: Address) -> Result<UserState>

Retrieve a user’s state to see user’s open positions and margin summary

§Arguments
  • user - The user’s address in 42-character hexadecimal format; e.g. 0x0000000000000000000000000000000000000000
Examples found in repository?
examples/info/perps.rs (line 76)
75async fn user_state(info: &Info, user: Address) {
76    let user_state = info.user_state(user).await.unwrap();
77    println!("User state for {user} \n{:?}{SEP}", user_state);
78}
More examples
Hide additional examples
examples/leverage.rs (line 44)
7async fn main() {
8    // Key was randomly generated for testing and shouldn't be used with any real funds
9    let wallet: Arc<LocalWallet> = Arc::new(
10        "e908f86dbb4d55ac876378565aafeabc187f6690f046459397b17d9b9a19688e"
11            .parse()
12            .unwrap(),
13    );
14
15    let exchange: Exchange = Hyperliquid::new(Chain::Dev);
16
17    let leverage = 2;
18    let asset = 4;
19    let is_cross = false;
20
21    println!("Updating leverage to {}x ...", leverage);
22
23    let res = exchange
24        .update_leverage(wallet.clone(), leverage, asset, is_cross)
25        .await
26        .unwrap();
27
28    println!("Response: {:?}", res);
29
30    let margin = 1;
31
32    println!("--\nUpdating isolated margin for ETH to {margin}% ...");
33
34    let res = exchange
35        .update_isolated_margin(wallet.clone(), asset, true, margin)
36        .await
37        .unwrap();
38
39    println!("Response: {:?}", res);
40
41    let info: Info = Hyperliquid::new(Chain::Dev);
42
43    // user state
44    let res = info.user_state(wallet.address()).await.unwrap();
45
46    println!("--\nUser state: {:?}", res);
47}
Source

pub async fn user_states(&self, users: Vec<Address>) -> Result<Vec<UserState>>

Retrieve a user’s state to see user’s open positions and margin summary in batch

§Arguments
  • users - A list of user addresses in 42-character hexadecimal format
Examples found in repository?
examples/info/perps.rs (line 81)
80async fn batch_user_states(info: &Info, users: Vec<Address>) {
81    let user_states = info.user_states(users.clone()).await.unwrap();
82    println!("User states for {:?} \n{:?}{SEP}", users, user_states);
83}
Source

pub async fn open_orders(&self, user: Address) -> Result<Vec<OpenOrder>>

Retrieve a user’s open orders

§Arguments
  • user - The user’s address in 42-character hexadecimal format; e.g. 0x0000000000000000000000000000000000000000
Examples found in repository?
examples/info/perps.rs (line 86)
85async fn open_orders(info: &Info, user: Address) {
86    let open_orders = info.open_orders(user).await.unwrap();
87    println!("Open orders for {user} \n{:?}{SEP}", open_orders);
88}
Source

pub async fn frontend_open_orders( &self, user: Address, ) -> Result<Vec<FrontendOpenOrders>>

Retrieve a user’s open orders with additional frontend info. This is useful for displaying orders in a UI

§Arguments
  • user - The user’s address in 42-character hexadecimal format; e.g. 0x0000000000000000000000000000000000000000
Examples found in repository?
examples/info/perps.rs (line 91)
90async fn frontend_open_orders(info: &Info, user: Address) {
91    let open_orders = info.frontend_open_orders(user).await.unwrap();
92    println!("Frontend Open orders for {user} \n{:?}{SEP}", open_orders);
93}
Source

pub async fn user_fills(&self, user: Address) -> Result<Vec<UserFill>>

Retrieve a user’s Userfills

§Arguments
  • user - The user’s address in 42-character hexadecimal format; e.g. 0x0000000000000000000000000000000000000000
Examples found in repository?
examples/info/perps.rs (line 96)
95async fn user_fills(info: &Info, user: Address) {
96    let user_fills = info.user_fills(user).await.unwrap();
97    println!("User fills for {user} \n{:?}{SEP}", user_fills);
98}
Source

pub async fn user_fills_by_time( &self, user: Address, start_time: u64, end_time: Option<u64>, ) -> Result<Vec<UserFill>>

Retrieve a user’s fills by time

§Arguments
  • user - The user’s address in 42-character hexadecimal format; e.g. 0x0000000000000000000000000000000000000000
  • start_time - Start time in milliseconds, inclusive
  • end_time - End time in milliseconds, inclusive. If None, it will default to the current time
§Note
  • Number of fills is limited to 2000
Examples found in repository?
examples/info/perps.rs (line 101)
100async fn user_fills_by_time(info: &Info, user: Address, start_time: u64, end_time: Option<u64>) {
101    let user_fills = info.user_fills_by_time(user, start_time, end_time).await;
102    // .unwrap();
103    println!("User fills by time for {user} \n{:?}{SEP}", user_fills);
104}
Source

pub async fn user_funding( &self, user: Address, start_time: u64, end_time: Option<u64>, ) -> Result<Vec<UserFunding>>

Retrieve a user’s funding history

§Arguments
  • user - The user’s address in 42-character hexadecimal format; e.g. 0x0000000000000000000000000000000000000000
  • start_time - Start time in milliseconds, inclusive
  • end_time - End time in milliseconds, inclusive. If None, it will default to the current time
Examples found in repository?
examples/info/perps.rs (line 111)
106async fn user_funding(info: &Info, user: Address) {
107    let start_timestamp = 1690540602225;
108    let end_timestamp = 1690569402225;
109
110    let user_funding = info
111        .user_funding(user, start_timestamp, Some(end_timestamp))
112        .await
113        .unwrap();
114    println!(
115        "User funding for {user} between {start_timestamp} and {end_timestamp} \n{:?}{SEP}",
116        user_funding
117    );
118}
Source

pub async fn funding_history( &self, coin: String, start_time: u64, end_time: Option<u64>, ) -> Result<Vec<FundingHistory>>

Retrieve historical funding rates for a coin

§Arguments
  • coin - The coin to retrieve funding history for e.g BTC, ETH, etc
  • start_time - Start time in milliseconds, inclusive
  • end_time - End time in milliseconds, inclusive. If None, it will default to the current time
Examples found in repository?
examples/info/perps.rs (line 127)
120async fn funding_history(info: &Info) {
121    let coin = "ETH";
122
123    let start_timestamp = 1690540602225;
124    let end_timestamp = 1690569402225;
125
126    let funding_history = info
127        .funding_history(coin.to_string(), start_timestamp, Some(end_timestamp))
128        .await
129        .unwrap();
130    println!(
131        "Funding history for {coin} between {start_timestamp} and {end_timestamp} \n{:?}{SEP}",
132        funding_history
133    );
134}
Source

pub async fn l2_book(&self, coin: String) -> Result<L2Book>

Retrieve the L2 order book for a coin

§Arguments
  • coin - The coin to retrieve the L2 order book for e.g BTC, ETH, etc
Examples found in repository?
examples/info/perps.rs (line 139)
136async fn l2_book(info: &Info) {
137    let coin = "ETH";
138
139    let l2_book = info.l2_book(coin.to_string()).await.unwrap();
140    println!("L2 book for {coin} \n{:?}{SEP}", l2_book);
141}
Source

pub async fn recent_trades(&self, coin: String) -> Result<Vec<RecentTrades>>

Retrieve the recent trades for a coin

§Arguments
  • coin - The coin to retrieve the recent trades for
Examples found in repository?
examples/info/perps.rs (line 146)
143async fn recent_trades(info: &Info) {
144    let coin = "ETH";
145
146    let recent_trades = info.recent_trades(coin.to_string()).await.unwrap();
147    println!("Recent trades for {coin} \n{:?}{SEP}", recent_trades);
148}
Source

pub async fn candle_snapshot( &self, coin: String, interval: String, start_time: u64, end_time: u64, ) -> Result<Vec<CandleSnapshot>>

Retrieve candle snapshot for a coin

§Arguments
  • coin - The coin to retrieve the candle snapshot for e.g BTC, ETH, etc
  • interval - The interval to retrieve the candle snapshot for
  • start_time - Start time in milliseconds, inclusive
  • end_time - End time in milliseconds, inclusive.
Examples found in repository?
examples/info/perps.rs (lines 157-162)
150async fn candle_snapshot(info: &Info) {
151    let coin = "ETH";
152    let interval = "15m";
153    let start_timestamp = 1690540602225;
154    let end_timestamp = 1690569402225;
155
156    let snapshot = info
157        .candle_snapshot(
158            coin.to_string(),
159            interval.to_string(),
160            start_timestamp,
161            end_timestamp,
162        )
163        .await
164        .unwrap();
165    println!("Candle snapshot for {coin} between {start_timestamp} and {end_timestamp} with interval {interval} \n{:?}{SEP}",snapshot);
166}
Source

pub async fn order_status(&self, user: Address, oid: Oid) -> Result<OrderStatus>

Query the status of an order by oid or cloid

§Arguments
  • user - The user’s address in 42-character hexadecimal format; e.g. 0x0000000000000000000000000000000000000000
  • oid - The order id either u64 representing the order id or 16-byte hex string representing the client order id
Examples found in repository?
examples/info/perps.rs (line 192)
168async fn order_status(info: &Info, exchange: &Exchange, wallet: Arc<LocalWallet>) {
169    let user = wallet.address();
170    let vault_address = None;
171    let cloid = Uuid::new_v4();
172    let order = OrderRequest {
173        asset: 4,
174        is_buy: true,
175        reduce_only: false,
176        limit_px: parse_price(2800.0),
177        sz: parse_size(0.0331, 4),
178        order_type: OrderType::Limit(Limit { tif: Tif::Gtc }),
179        cloid: Some(cloid),
180    };
181
182    println!("Placing order with cloid: {}{SEP}", cloid.simple());
183    let response = exchange
184        .place_order(wallet, vec![order], vault_address)
185        .await
186        .expect("Failed to place order");
187
188    println!("Response: {:?}", response);
189
190    tokio::time::sleep(tokio::time::Duration::from_secs(3)).await;
191
192    let order_status = info.order_status(user, Oid::Cloid(cloid)).await.unwrap();
193
194    println!(
195        "Order status for {} \n{:?}{SEP}",
196        cloid.simple(),
197        order_status
198    );
199}
More examples
Hide additional examples
examples/order-status.rs (line 78)
17async fn main() {
18    // Key was randomly generated for testing and shouldn't be used with any real funds
19    let wallet: Arc<LocalWallet> = Arc::new(
20        "e908f86dbb4d55ac876378565aafeabc187f6690f046459397b17d9b9a19688e"
21            .parse()
22            .unwrap(),
23    );
24
25    let exchange: Exchange = Hyperliquid::new(Chain::Dev);
26    let info: Info = Hyperliquid::new(Chain::Dev);
27
28    let asset = 4;
29    let sz_decimals = 4;
30
31    let order_type = OrderType::Limit(Limit { tif: Tif::Gtc });
32
33    let order = OrderRequest {
34        asset,
35        is_buy: true,
36        reduce_only: false,
37        limit_px: parse_price(2800.0),
38        sz: parse_size(0.0331, sz_decimals),
39        order_type,
40        cloid: None,
41    };
42
43    let vault_address = None;
44
45    println!("Placing order...");
46    let response = exchange
47        .place_order(wallet.clone(), vec![order], vault_address)
48        .await
49        .expect("Failed to place order");
50
51    let response = match response {
52        Response::Ok(order) => order,
53        Response::Err(error) => panic!("Failed to place order: {:?}", error),
54    };
55
56    println!("Response: {:?}", response.data);
57
58    let status_type = &response.data.unwrap();
59
60    let status = match status_type {
61        StatusType::Statuses(statuses) => &statuses[0],
62        _ => {
63            panic!("Failed to place order: {:?}", status_type);
64        }
65    };
66
67    let oid = match status {
68        Status::Filled(order) => order.oid,
69        Status::Resting(order) => order.oid,
70        _ => panic!("Order is not filled or resting"),
71    };
72
73    println!("-----------------");
74
75    println!("Fetching order {} status...", oid);
76
77    let status = info
78        .order_status(wallet.address(), Oid::Order(oid))
79        .await
80        .expect("Failed to fetch order status");
81
82    println!("Order status: {:#?}", status.order);
83}
Source

pub async fn sub_accounts( &self, user: Address, ) -> Result<Option<Vec<SubAccount>>>

Query user sub-accounts

§Arguments
  • user - The user’s address in 42-character hexadecimal format; e.g. 0x0000000000000000000000000000000000000000
Examples found in repository?
examples/info/perps.rs (line 202)
201async fn sub_accounts(info: &Info, user: Address) {
202    let sub_accounts = info.sub_accounts(user).await.unwrap();
203    println!("Sub accounts for {user} \n{:?}{SEP}", sub_accounts);
204}
Source§

impl Info

Source

pub async fn spot_meta(&self) -> Result<SpotMeta>

Retrieve spot metadata

Examples found in repository?
examples/info/spot.rs (line 32)
31async fn spot_meta(info: &Info) {
32    let spot_meta = info.spot_meta().await.unwrap();
33    println!("{SEP}\nSpot Metadata \n{:?}{SEP}", spot_meta);
34}
Source

pub async fn spot_meta_and_asset_ctxs( &self, ) -> Result<Vec<SpotMetaAndAssetCtxs>>

Retrieve spot asset contexts

Examples found in repository?
examples/info/spot.rs (line 37)
36async fn spot_meta_and_asset_ctxs(info: &Info) {
37    let spot_asset_ctxs = info.spot_meta_and_asset_ctxs().await.unwrap();
38    println!("Spot Asset Contexts \n{:?}{SEP}", spot_asset_ctxs);
39}
Source

pub async fn spot_clearinghouse_state( &self, user: Address, ) -> Result<UserSpotState>

Retrieve a user’s token balances

§Arguments
  • user - The user’s address in 42-character hexadecimal format; e.g. 0x0000000000000000000000000000000000000000
Examples found in repository?
examples/info/spot.rs (line 42)
41async fn spot_clearinghouse_state(info: &Info, user: Address) {
42    let states = info.spot_clearinghouse_state(user).await.unwrap();
43    println!("User spot state for {user} \n{:?}{SEP}", states);
44}

Trait Implementations§

Source§

impl Hyperliquid for Info

Source§

fn new(chain: Chain) -> Self

Source§

fn new_with_config(chain: Chain, config: &Config) -> Self

Auto Trait Implementations§

§

impl Freeze for Info

§

impl !RefUnwindSafe for Info

§

impl Send for Info

§

impl Sync for Info

§

impl Unpin for Info

§

impl !UnwindSafe for Info

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> Conv for T

Source§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
Source§

impl<T> FmtForward for T

Source§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
Source§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
Source§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
Source§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
Source§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
Source§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
Source§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
Source§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
Source§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pipe for T
where T: ?Sized,

Source§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
Source§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
Source§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
Source§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
Source§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
Source§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
Source§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Tap for T

Source§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
Source§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
Source§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
Source§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
Source§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
Source§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
Source§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
Source§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
Source§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
Source§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
Source§

impl<T> TryConv for T

Source§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> JsonSchemaMaybe for T