Struct ResponseError

Source
pub struct ResponseError {
    pub code: i32,
    pub msg: String,
    /* private fields */
}
Expand description

The error returned as a JSON from the Binance server. Errors consist of two parts: an error code and a message. Codes are universal, but messages can vary.

Fields§

§code: i32

The numeric code identifying the kind of an error.

§msg: String

The helper message for the particular case of an error.

Implementations§

Source§

impl Error

Source

pub const UNKNOWN: i32 = -1_000i32

An unknown error occurred while processing the request.

Source

pub const DISCONNECTED: i32 = -1_001i32

Internal error; unable to process your request. Please try again.

Source

pub const UNAUTHORIZED: i32 = -1_002i32

You are not authorized to execute this request.

Source

pub const TOO_MANY_REQUESTS: i32 = -1_003i32

Either of the following was happened:

  • Too many requests queued.
  • Too much request weight used; please use the websocket for live updates to avoid polling the API.
  • Way too much request weight used; IP banned. Please use the websocket for live updates to avoid bans.
Source

pub const UNEXPECTED_RESP: i32 = -1_006i32

An unexpected response was received from the message bus. Execution status unknown.

Source

pub const TIMEOUT: i32 = -1_007i32

Timeout waiting for response from backend server. Send status unknown; execution status unknown.

Source

pub const UNKNOWN_ORDER_COMPOSITION: i32 = -1_014i32

Unsupported order combination.

The most probable case is:

  • The orderType, timeInForce, stopPrice, and/or icebergQty combination isn’t allowed.
Source

pub const TOO_MANY_ORDERS: i32 = -1_015i32

Too many new orders.

Source

pub const SERVICE_SHUTTING_DOWN: i32 = -1_016i32

This service is no longer available.

Source

pub const UNSUPPORTED_OPERATION: i32 = -1_020i32

This operation is not supported.

Source

pub const INVALID_TIMESTAMP: i32 = -1_021i32

Either of the following was happened:

  • Timestamp for this request is outside of the recvWindow.
  • Timestamp for this request was 1000ms ahead of the server’s time.
Source

pub const INVALID_SIGNATURE: i32 = -1_022i32

Signature for this request is not valid.

Source§

impl Error

Source

pub const ILLEGAL_CHARS: i32 = -1_100i32

Illegal characters found in a parameter.

Source

pub const TOO_MANY_PARAMETERS: i32 = -1_101i32

Either of the following was happened:

  • Too many parameters sent for this endpoint.
  • Duplicate values for a parameter detected.
Source

pub const MANDATORY_PARAM_EMPTY_OR_MALFORMED: i32 = -1_102i32

Either of the following was happened:

  • A mandatory parameter was not sent, was empty/null, or malformed.
  • Either of the two parameters must be sent, but both were empty/null.
Source

pub const UNKNOWN_PARAM: i32 = -1_103i32

An unknown parameter was sent.

Source

pub const UNREAD_PARAMETERS: i32 = -1_104i32

Not all sent parameters were read.

Source

pub const PARAM_EMPTY: i32 = -1_105i32

A parameter was empty.

Source

pub const PARAM_NOT_REQUIRED: i32 = -1_106i32

A parameter was sent when not required.

Source

pub const BAD_PRECISION: i32 = -1_111i32

Precision is over the maximum defined for this asset.

Source

pub const NO_DEPTH: i32 = -1_112i32

No orders on book for symbol.

Source

pub const TIF_NOT_REQUIRED: i32 = -1_114i32

TimeInForce parameter sent when not required.

Source

pub const INVALID_TIF: i32 = -1_115i32

Invalid timeInForce.

Source

pub const INVALID_ORDER_TYPE: i32 = -1_116i32

Invalid orderType.

Source

pub const INVALID_SIDE: i32 = -1_117i32

Invalid side.

Source

pub const EMPTY_NEW_CL_ORD_ID: i32 = -1_118i32

New client order ID was empty.

Source

pub const EMPTY_ORG_CL_ORD_ID: i32 = -1_119i32

Original client order ID was empty.

Source

pub const BAD_INTERVAL: i32 = -1_120i32

Invalid interval.

Source

pub const BAD_SYMBOL: i32 = -1_121i32

Invalid symbol.

Source

pub const INVALID_LISTEN_KEY: i32 = -1_125i32

This listenKey does not exist.

Source

pub const MORE_THAN_XX_HOURS: i32 = -1_127i32

Lookup interval is too big (more than allowed hours between startTime and endTime).

Source

pub const OPTIONAL_PARAMS_BAD_COMBO: i32 = -1_128i32

Combination of optional parameters invalid.

Source

pub const INVALID_PARAMETER: i32 = -1_130i32

Invalid data sent for a parameter.

Source§

impl Error

Source

pub const NEW_ORDER_REJECTED: i32 = -2_010i32

New order was rejected.

Source

pub const CANCEL_REJECTED: i32 = -2_011i32

Cancellation of an order was rejected.

Source

pub const NO_SUCH_ORDER: i32 = -2_013i32

Order does not exist.

Source

pub const BAD_API_KEY_FMT: i32 = -2_014i32

API-key format invalid.

Source

pub const REJECTED_MBX_KEY: i32 = -2_015i32

Invalid API-key, IP, or permissions for action.

Source

pub const NO_TRADING_WINDOW: i32 = -2_016i32

No trading window could be found for the symbol. Try ticker/24hrs instead.

Source§

impl Error

This impl block contains no items.
Source§

impl Error

This impl block contains no items.
Source§

impl Error

This impl block contains no items.
Source§

impl Error

This impl block contains no items.
Source§

impl Error

This impl block contains no items.
Source§

impl Error

This impl block contains no items.
Source§

impl Error

This impl block contains no items.
Source§

impl Error

This impl block contains no items.
Source§

impl Error

This impl block contains no items.
Source§

impl Error

This impl block contains no items.
Source§

impl ResponseError

Source

pub const FUTURES_DUPLICATE_IP: i32 = -1_004i32

This IP is already on the white list.

Source

pub const FUTURES_NO_SUCH_IP: i32 = -1_005i32

No such IP has been white listed.

Source

pub const FUTURES_ERROR_MSG_RECEIVED: i32 = -1_010i32

Error message received.

ATTENTION: No intelligible description was provided in the docs.

Source

pub const FUTURES_NON_WHITE_LIST: i32 = -1_011i32

This IP cannot access this route.

Source

pub const FUTURES_INVALID_MESSAGE: i32 = -1_013i32

Invalid message.

ATTENTION: No intelligible description was provided in the docs.

Source

pub const FUTURES_START_TIME_GREATER_THAN_END_TIME: i32 = -1_023i32

Start time is greater than end time.

Source§

impl ResponseError

Source

pub const FUTURES_BAD_ASSET: i32 = -1_108i32

Invalid asset.

Source

pub const FUTURES_BAD_ACCOUNT: i32 = -1_109i32

Invalid account.

Source

pub const FUTURES_BAD_INSTRUMENT_TYPE: i32 = -1_110i32

Invalid symbolType.

Source

pub const FUTURES_WITHDRAW_NOT_NEGATIVE: i32 = -1_113i32

Withdrawal amount must be negative.

Source

pub const FUTURES_INVALID_NEW_ORDER_RESP_TYPE: i32 = -1_136i32

Invalid newOrderRespType.

Source§

impl ResponseError

Source

pub const FUTURES_BALANCE_NOT_SUFFICIENT: i32 = -2_018i32

Balance is insufficient.

Source

pub const FUTURES_MARGIN_NOT_SUFFICIENT: i32 = -2_019i32

Margin is insufficient.

Source

pub const FUTURES_UNABLE_TO_FILL: i32 = -2_020i32

Unable to fill.

Source

pub const FUTURES_ORDER_WOULD_IMMEDIATELY_TRIGGER: i32 = -2_021i32

Order would immediately trigger.

Source

pub const FUTURES_REDUCE_ONLY_REJECT: i32 = -2_022i32

ReduceOnly Order is rejected.

Source

pub const FUTURES_USER_IN_LIQUIDATION: i32 = -2_023i32

User in liquidation mode now.

Source

pub const FUTURES_POSITION_NOT_SUFFICIENT: i32 = -2_024i32

Position is not sufficient.

Source

pub const FUTURES_MAX_OPEN_ORDER_EXCEEDED: i32 = -2_025i32

Maximum open order limit reached.

Source

pub const FUTURES_REDUCE_ONLY_ORDER_TYPE_NOT_SUPPORTED: i32 = -2_026i32

This OrderType is not supported when reduceOnly.

Source

pub const FUTURES_MAX_LEVERAGE_RATIO: i32 = -2_027i32

Exceeded the maximum allowable position at current leverage.

Source

pub const FUTURES_MIN_LEVERAGE_RATIO: i32 = -2_028i32

Leverage is smaller than permitted: insufficient margin balance.

Source§

impl ResponseError

Source

pub const FUTURES_INVALID_ORDER_STATUS: i32 = -4_000i32

Invalid order status.

Source

pub const FUTURES_PRICE_LESS_THAN_ZERO: i32 = -4_001i32

Price less than 0.

Source

pub const FUTURES_PRICE_GREATER_THAN_MAX_PRICE: i32 = -4_002i32

Price greater than max price.

Source

pub const FUTURES_QTY_LESS_THAN_ZERO: i32 = -4_003i32

Quantity less than zero.

Source

pub const FUTURES_QTY_LESS_THAN_MIN_QTY: i32 = -4_004i32

Quantity less than min quantity.

Source

pub const FUTURES_QTY_GREATER_THAN_MAX_QTY: i32 = -4_005i32

Quantity greater than max quantity.

Source

pub const FUTURES_STOP_PRICE_LESS_THAN_ZERO: i32 = -4_006i32

Stop price less than zero.

Source

pub const FUTURES_STOP_PRICE_GREATER_THAN_MAX_PRICE: i32 = -4_007i32

Stop price greater than max price.

Source

pub const FUTURES_TICK_SIZE_LESS_THAN_ZERO: i32 = -4_008i32

Tick size less than zero.

Source

pub const FUTURES_MAX_PRICE_LESS_THAN_MIN_PRICE: i32 = -4_009i32

Max price less than min price.

Source

pub const FUTURES_MAX_QTY_LESS_THAN_MIN_QTY: i32 = -4_010i32

Max qty less than min qty.

Source

pub const FUTURES_STEP_SIZE_LESS_THAN_ZERO: i32 = -4_011i32

Step size less than zero.

Source

pub const FUTURES_MAX_NUM_ORDERS_LESS_THAN_ZERO: i32 = -4_012i32

Max mum orders less than zero.

Source

pub const FUTURES_PRICE_LESS_THAN_MIN_PRICE: i32 = -4_013i32

Price less than min price.

Source

pub const FUTURES_PRICE_NOT_INCREASED_BY_TICK_SIZE: i32 = -4_014i32

Price not increased by tick size.

Source

pub const FUTURES_INVALID_CL_ORD_ID_LEN: i32 = -4_015i32

Client order id is not valid. Consider the length of it should not be more than 36 chars.

Source

pub const FUTURES_PRICE_HIGHER_THAN_MULTIPLIER_CAP: i32 = -4_016i32

Price is higher than mark price multiplier cap.

Source

pub const FUTURES_MULTIPLIER_UP_LESS_THAN_ZERO: i32 = -4_017i32

Multiplier up less than zero.

Source

pub const FUTURES_MULTIPLIER_DOWN_LESS_THAN_ZERO: i32 = -4_018i32

Multiplier down less than zero.

Source

pub const FUTURES_COMPOSITE_SCALE_OVERFLOW: i32 = -4_019i32

Composite scale too large.

Source

pub const FUTURES_TARGET_STRATEGY_INVALID: i32 = -4_020i32

Target strategy invalid for the given combination of orderType and reduceOnly.

Source

pub const FUTURES_INVALID_DEPTH_LIMIT: i32 = -4_021i32

Invalid depth limit.

Source

pub const FUTURES_WRONG_MARKET_STATUS: i32 = -4_022i32

Market status sent is not valid.

Source

pub const FUTURES_QTY_NOT_INCREASED_BY_STEP_SIZE: i32 = -4_023i32

Qty not increased by step size.

Source

pub const FUTURES_PRICE_LOWER_THAN_MULTIPLIER_DOWN: i32 = -4_024i32

Price is lower than mark price multiplier floor.

Source

pub const FUTURES_MULTIPLIER_DECIMAL_LESS_THAN_ZERO: i32 = -4_025i32

Multiplier decimal less than zero.

Source

pub const FUTURES_COMMISSION_INVALID: i32 = -4_026i32

Commission invalid (less than zero or greater than the maximum).

Source

pub const FUTURES_INVALID_ACCOUNT_TYPE: i32 = -4_027i32

Invalid account type.

Source

pub const FUTURES_INVALID_LEVERAGE: i32 = -4_028i32

Invalid leverage.

Source

pub const FUTURES_INVALID_TICK_SIZE_PRECISION: i32 = -4_029i32

Tick size precision is invalid.

Source

pub const FUTURES_INVALID_STEP_SIZE_PRECISION: i32 = -4_030i32

Step size precision is invalid.

Source

pub const FUTURES_INVALID_WORKING_TYPE: i32 = -4_031i32

Invalid parameter working type.

Source

pub const FUTURES_EXCEED_MAX_CANCEL_ORDER_SIZE: i32 = -4_032i32

Exceed maximum cancel order size.

Source

pub const FUTURES_INSURANCE_ACCOUNT_NOT_FOUND: i32 = -4_033i32

Insurance account not found.

Source

pub const FUTURES_INVALID_BALANCE_TYPE: i32 = -4_044i32

Balance Type is invalid.

Source

pub const FUTURES_MAX_STOP_ORDER_EXCEEDED: i32 = -4_045i32

Reach max stop order limit.

Source

pub const FUTURES_NO_NEED_TO_CHANGE_MARGIN_TYPE: i32 = -4_046i32

No need to change margin type.

Source

pub const FUTURES_THERE_EXISTS_OPEN_ORDERS: i32 = -4_047i32

Margin type cannot be changed if there exists open orders.

Source

pub const FUTURES_THERE_EXISTS_QUANTITY: i32 = -4_048i32

Margin type cannot be changed if there exists position.

Source

pub const FUTURES_ADD_ISOLATED_MARGIN_REJECT: i32 = -4_049i32

Add margin only support for isolated position.

Source

pub const FUTURES_CROSS_BALANCE_INSUFFICIENT: i32 = -4_050i32

Cross balance insufficient.

Source

pub const FUTURES_ISOLATED_BALANCE_INSUFFICIENT: i32 = -4_051i32

Isolated balance insufficient.

Source

pub const FUTURES_NO_NEED_TO_CHANGE_AUTO_ADD_MARGIN: i32 = -4_052i32

No need to change auto add margin.

Source

pub const FUTURES_AUTO_ADD_CROSSED_MARGIN_REJECT: i32 = -4_053i32

Auto add margin only support for isolated position.

Source

pub const FUTURES_ADD_ISOLATED_MARGIN_NO_POSITION_REJECT: i32 = -4_054i32

Cannot add position margin: position is 0.

Source

pub const FUTURES_AMOUNT_MUST_BE_POSITIVE: i32 = -4_055i32

Amount must be positive.

Source

pub const FUTURES_INVALID_API_KEY_TYPE: i32 = -4_056i32

Invalid API key type.

Source

pub const FUTURES_INVALID_RSA_PUBLIC_KEY: i32 = -4_057i32

Invalid API public key

Source

pub const FUTURES_MAX_PRICE_TOO_LARGE: i32 = -4_058i32

maxPrice and priceDecimal too large.

Source

pub const FUTURES_NO_NEED_TO_CHANGE_POSITION_SIDE: i32 = -4_059i32

No need to change position side.

Source

pub const FUTURES_INVALID_POSITION_SIDE: i32 = -4_060i32

Invalid position side.

Source

pub const FUTURES_POSITION_SIDE_NOT_MATCH: i32 = -4_061i32

Order’s position side does not match user’s setting.

Source

pub const FUTURES_REDUCE_ONLY_CONFLICT: i32 = -4_062i32

Invalid or improper reduceOnly value.

Source

pub const FUTURES_INVALID_OPTIONS_REQUEST_TYPE: i32 = -4_063i32

Invalid options request type.

Source

pub const FUTURES_INVALID_OPTIONS_TIME_FRAME: i32 = -4_064i32

Invalid options time frame.

Source

pub const FUTURES_INVALID_OPTIONS_AMOUNT: i32 = -4_065i32

Invalid options amount.

Source

pub const FUTURES_INVALID_OPTIONS_EVENT_TYPE: i32 = -4_066i32

Invalid options event type.

Source

pub const FUTURES_POSITION_SIDE_CHANGE_EXISTS_OPEN_ORDERS: i32 = -4_067i32

Position side cannot be changed if there exists open orders.

Source

pub const FUTURES_POSITION_SIDE_CHANGE_EXISTS_QUANTITY: i32 = -4_068i32

Position side cannot be changed if there exists position.

Source

pub const FUTURES_INVALID_OPTIONS_PREMIUM_FEE: i32 = -4_069i32

Invalid options premium fee.

Source

pub const FUTURES_INVALID_CL_OPTIONS_ID_LEN: i32 = -4_070i32

Client options id is not valid. Consider the length of it should be less than 32 chars.

Source

pub const FUTURES_INVALID_OPTIONS_DIRECTION: i32 = -4_071i32

Invalid options direction.

Source

pub const FUTURES_OPTIONS_PREMIUM_NOT_UPDATE: i32 = -4_072i32

Premium fee is not updated, reject order.

Source

pub const FUTURES_OPTIONS_PREMIUM_INPUT_LESS_THAN_ZERO: i32 = -4_073i32

Input premium fee is less than 0, reject order.

Source

pub const FUTURES_OPTIONS_AMOUNT_BIGGER_THAN_UPPER: i32 = -4_074i32

Order amount is bigger than upper boundary or less than 0, reject order.

Source

pub const FUTURES_OPTIONS_PREMIUM_OUTPUT_ZERO: i32 = -4_075i32

Output premium fee is less than 0, reject order.

Source

pub const FUTURES_OPTIONS_PREMIUM_TOO_DIFF: i32 = -4_076i32

Original fee is too much higher than last fee.

Source

pub const FUTURES_OPTIONS_PREMIUM_REACH_LIMIT: i32 = -4_077i32

Place order amount has reached to limit, reject order.

Source

pub const FUTURES_OPTIONS_COMMON_ERROR: i32 = -4_078i32

Options internal error.

Source

pub const FUTURES_INVALID_OPTIONS_ID: i32 = -4_079i32

Invalid options id (may be a duplicate for a user).

Source

pub const FUTURES_OPTIONS_USER_NOT_FOUND: i32 = -4_080i32

User not found.

Source

pub const FUTURES_OPTIONS_NOT_FOUND: i32 = -4_081i32

Options not found.

Source

pub const FUTURES_INVALID_BATCH_PLACE_ORDER_SIZE: i32 = -4_082i32

Invalid number of batch place orders.

Source

pub const FUTURES_PLACE_BATCH_ORDERS_FAIL: i32 = -4_083i32

Fail to place batch orders.

Source

pub const FUTURES_UPCOMING_METHOD: i32 = -4_084i32

Method is not allowed currently. Upcoming soon.

Source

pub const FUTURES_INVALID_NOTIONAL_LIMIT_COEF: i32 = -4_085i32

Invalid notional limit coefficient.

Source

pub const FUTURES_INVALID_PRICE_SPREAD_THRESHOLD: i32 = -4_086i32

Invalid price spread threshold.

Source

pub const FUTURES_REDUCE_ONLY_ORDER_PERMISSION: i32 = -4_087i32

User can only place reduce only order.

Source

pub const FUTURES_NO_PLACE_ORDER_PERMISSION: i32 = -4_088i32

User can not place order currently.

Source

pub const FUTURES_INVALID_CONTRACT_TYPE: i32 = -4_104i32

Invalid contract type.

Source

pub const FUTURES_INVALID_CLIENT_TRAN_ID_LEN: i32 = -4_114i32

clientTranId is not valid. Consider the length of it should be less than 64 chars.

Source

pub const FUTURES_DUPLICATED_CLIENT_TRAN_ID: i32 = -4_115i32

clientTranId is duplicated. Consider it should be unique within 7 days.

Source

pub const FUTURES_REDUCE_ONLY_MARGIN_CHECK_FAILED: i32 = -4_118i32

ReduceOnly Order Failed. Please check your existing position and open orders.

Source

pub const FUTURES_MARKET_ORDER_REJECT: i32 = -4_131i32

The counterparty’s best price does not meet the PERCENT_PRICE filter limit.

Source

pub const FUTURES_INVALID_ACTIVATION_PRICE: i32 = -4_135i32

Invalid activation price.

Source

pub const FUTURES_QUANTITY_EXISTS_WITH_CLOSE_POSITION: i32 = -4_137i32

Quantity must be zero with closePosition equals true.

Source

pub const FUTURES_REDUCE_ONLY_MUST_BE_TRUE: i32 = -4_138i32

Reduce only must be true with closePosition equals true.

Source

pub const FUTURES_ORDER_TYPE_CANNOT_BE_MKT: i32 = -4_139i32

Order type can not be market if it’s unable to cancel.

Source

pub const FUTURES_INVALID_OPENING_POSITION_STATUS: i32 = -4_140i32

Invalid symbol status for opening position.

Source

pub const FUTURES_SYMBOL_ALREADY_CLOSED: i32 = -4_141i32

Symbol is closed.

Source

pub const FUTURES_STRATEGY_INVALID_TRIGGER_PRICE: i32 = -4_142i32

REJECT: take profit or stop order will be triggered immediately.

Source

pub const FUTURES_INVALID_PAIR: i32 = -4_144i32

Invalid pair.

Source

pub const FUTURES_ISOLATED_LEVERAGE_REJECT_WITH_POSITION: i32 = -4_161i32

Leverage reduction is not supported in Isolated Margin Mode with open positions.

Source

pub const FUTURES_MIN_NOTIONAL: i32 = -4_164i32

Order’s notional must be no smaller than 5.0 (unless you choose reduce only).

Source

pub const FUTURES_INVALID_TIME_INTERVAL: i32 = -4_165i32

Invalid time interval.

Source

pub const FUTURES_PRICE_HIGHER_THAN_STOP_MULTIPLIER_CAP: i32 = -4_183i32

Price is higher than stop price multiplier cap.

Source

pub const FUTURES_PRICE_LOWER_THAN_STOP_MULTIPLIER_DOWN: i32 = -4_184i32

Price is lower than stop price multiplier floor.

Source§

impl ResponseError

10xx - General Server or Network issues

Source

pub const SPOT_SERVER_BUSY: i32 = -1_004i32

Server is busy, please wait and try again

Source

pub const SPOT_SERVER_BUSY_WITH_REQUESTS: i32 = -1_008i32

Spot server is currently overloaded with other requests. Please try again in a few minutes.

Source

pub const SPOT_NOT_FOUND_AUTHENTICATED_OR_AUTHORIZED: i32 = -1_099i32

This replaces error code -1999.

Source§

impl ResponseError

11xx - Request issues

Source

pub const SPOT_BAD_RECV_WINDOW: i32 = -1_131i32

recvWindow must be less than 60000.

Source

pub const SPOT_BAD_STRATEGY_TYPE: i32 = -1_134i32

strategyType was less than 1000000.

Trait Implementations§

Source§

impl Debug for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Error

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for Error

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for Error

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more

Auto Trait Implementations§

§

impl Freeze for Error

§

impl RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl UnwindSafe for Error

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> 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, 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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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<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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

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