pub struct InteractiveBrokersDataClient { /* private fields */ }Expand description
Interactive Brokers data client.
This client provides market data functionality using the rust-ibapi library.
It manages subscriptions, handles historical data requests, and streams
market data to NautilusTrader.
Implementations§
Source§impl InteractiveBrokersDataClient
impl InteractiveBrokersDataClient
Sourcepub fn new(
client_id: ClientId,
config: InteractiveBrokersDataClientConfig,
instrument_provider: Arc<InteractiveBrokersInstrumentProvider>,
) -> Result<Self>
pub fn new( client_id: ClientId, config: InteractiveBrokersDataClientConfig, instrument_provider: Arc<InteractiveBrokersInstrumentProvider>, ) -> Result<Self>
Sourcepub async fn batch_load_instruments(
&self,
instrument_ids: Vec<InstrumentId>,
) -> Result<Vec<InstrumentId>>
pub async fn batch_load_instruments( &self, instrument_ids: Vec<InstrumentId>, ) -> Result<Vec<InstrumentId>>
Sourcepub async fn fetch_option_chain_by_range(
&self,
underlying_symbol: &str,
exchange: Option<&str>,
currency: Option<&str>,
expiry_min: Option<&str>,
expiry_max: Option<&str>,
) -> Result<usize>
pub async fn fetch_option_chain_by_range( &self, underlying_symbol: &str, exchange: Option<&str>, currency: Option<&str>, expiry_min: Option<&str>, expiry_max: Option<&str>, ) -> Result<usize>
Fetch option chain for an underlying contract with expiry filtering.
This method calls the provider’s fetch_option_chain_by_range with the data client’s IB client.
§Arguments
underlying_symbol- The underlying symbol (e.g., “AAPL”)exchange- The exchange (defaults to “SMART”)currency- The currency (defaults to “USD”)expiry_min- Minimum expiry date string (YYYYMMDD format, optional)expiry_max- Maximum expiry date string (YYYYMMDD format, optional)
§Errors
Returns an error if:
- The client is not connected
- The provider method fails
Sourcepub async fn fetch_futures_chain(
&self,
symbol: &str,
exchange: Option<&str>,
currency: Option<&str>,
min_expiry_days: Option<u32>,
max_expiry_days: Option<u32>,
) -> Result<usize>
pub async fn fetch_futures_chain( &self, symbol: &str, exchange: Option<&str>, currency: Option<&str>, min_expiry_days: Option<u32>, max_expiry_days: Option<u32>, ) -> Result<usize>
Fetch futures chain for a given underlying symbol.
This method calls the provider’s fetch_futures_chain with the data client’s IB client.
§Arguments
symbol- The underlying symbol (e.g., “ES”)exchange- The exchange (defaults to empty string for all exchanges)currency- The currency (defaults to “USD”)
§Errors
Returns an error if:
- The client is not connected
- The provider method fails
Sourcepub async fn fetch_bag_contract(&self, bag_contract: &Contract) -> Result<usize>
pub async fn fetch_bag_contract(&self, bag_contract: &Contract) -> Result<usize>
Trait Implementations§
Source§impl DataClient for InteractiveBrokersDataClient
impl DataClient for InteractiveBrokersDataClient
Source§fn connect<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connect<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Connects the client to the data provider. Read more
Source§fn disconnect<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn disconnect<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Disconnects the client from the data provider. Read more
Source§fn is_connected(&self) -> bool
fn is_connected(&self) -> bool
Returns
true if the client is currently connected.Source§fn is_disconnected(&self) -> bool
fn is_disconnected(&self) -> bool
Returns
true if the client is currently disconnected.Source§fn subscribe_quotes(&mut self, cmd: SubscribeQuotes) -> Result<()>
fn subscribe_quotes(&mut self, cmd: SubscribeQuotes) -> Result<()>
Subscribes to quote updates for the specified instrument. Read more
Source§fn subscribe_index_prices(&mut self, cmd: SubscribeIndexPrices) -> Result<()>
fn subscribe_index_prices(&mut self, cmd: SubscribeIndexPrices) -> Result<()>
Subscribes to index price updates for the specified instrument. Read more
Source§fn subscribe_option_greeks(&mut self, cmd: SubscribeOptionGreeks) -> Result<()>
fn subscribe_option_greeks(&mut self, cmd: SubscribeOptionGreeks) -> Result<()>
Subscribes to exchange-provided option greeks for the specified instrument. Read more
Source§fn unsubscribe_quotes(&mut self, cmd: &UnsubscribeQuotes) -> Result<()>
fn unsubscribe_quotes(&mut self, cmd: &UnsubscribeQuotes) -> Result<()>
Unsubscribes from quote updates for the specified instrument. Read more
Source§fn unsubscribe_index_prices(
&mut self,
cmd: &UnsubscribeIndexPrices,
) -> Result<()>
fn unsubscribe_index_prices( &mut self, cmd: &UnsubscribeIndexPrices, ) -> Result<()>
Unsubscribes from index price updates for the specified instrument. Read more
Source§fn unsubscribe_option_greeks(
&mut self,
cmd: &UnsubscribeOptionGreeks,
) -> Result<()>
fn unsubscribe_option_greeks( &mut self, cmd: &UnsubscribeOptionGreeks, ) -> Result<()>
Unsubscribes from exchange-provided option greeks for the specified instrument. Read more
Source§fn subscribe_trades(&mut self, cmd: SubscribeTrades) -> Result<()>
fn subscribe_trades(&mut self, cmd: SubscribeTrades) -> Result<()>
Subscribes to trade updates for the specified instrument. Read more
Source§fn unsubscribe_trades(&mut self, cmd: &UnsubscribeTrades) -> Result<()>
fn unsubscribe_trades(&mut self, cmd: &UnsubscribeTrades) -> Result<()>
Unsubscribes from trade updates for the specified instrument. Read more
Source§fn subscribe_bars(&mut self, cmd: SubscribeBars) -> Result<()>
fn subscribe_bars(&mut self, cmd: SubscribeBars) -> Result<()>
Subscribes to bar updates of the specified bar type. Read more
Source§fn unsubscribe_bars(&mut self, cmd: &UnsubscribeBars) -> Result<()>
fn unsubscribe_bars(&mut self, cmd: &UnsubscribeBars) -> Result<()>
Unsubscribes from bar updates of the specified bar type. Read more
Source§fn subscribe_book_deltas(&mut self, cmd: SubscribeBookDeltas) -> Result<()>
fn subscribe_book_deltas(&mut self, cmd: SubscribeBookDeltas) -> Result<()>
Subscribes to order book delta updates for the specified instrument. Read more
Source§fn unsubscribe_book_deltas(&mut self, cmd: &UnsubscribeBookDeltas) -> Result<()>
fn unsubscribe_book_deltas(&mut self, cmd: &UnsubscribeBookDeltas) -> Result<()>
Unsubscribes from order book delta updates for the specified instrument. Read more
Source§fn request_instrument(&self, cmd: RequestInstrument) -> Result<()>
fn request_instrument(&self, cmd: RequestInstrument) -> Result<()>
Requests detailed data for a single instrument. Read more
Source§fn request_instruments(&self, cmd: RequestInstruments) -> Result<()>
fn request_instruments(&self, cmd: RequestInstruments) -> Result<()>
Requests a list of instruments from the provider for a given venue. Read more
Source§fn request_quotes(&self, cmd: RequestQuotes) -> Result<()>
fn request_quotes(&self, cmd: RequestQuotes) -> Result<()>
Requests historical or streaming quote data for a specified instrument. Read more
Source§fn request_trades(&self, cmd: RequestTrades) -> Result<()>
fn request_trades(&self, cmd: RequestTrades) -> Result<()>
Requests historical or streaming trade data for a specified instrument. Read more
Source§fn request_bars(&self, cmd: RequestBars) -> Result<()>
fn request_bars(&self, cmd: RequestBars) -> Result<()>
Requests historical or streaming bar data for a specified instrument and bar type. Read more
§fn subscribe(&mut self, cmd: SubscribeCustomData) -> Result<(), Error>
fn subscribe(&mut self, cmd: SubscribeCustomData) -> Result<(), Error>
Subscribes to custom data types according to the command. Read more
§fn subscribe_instruments(
&mut self,
cmd: SubscribeInstruments,
) -> Result<(), Error>
fn subscribe_instruments( &mut self, cmd: SubscribeInstruments, ) -> Result<(), Error>
Subscribes to instruments list for the specified venue. Read more
§fn subscribe_instrument(
&mut self,
cmd: SubscribeInstrument,
) -> Result<(), Error>
fn subscribe_instrument( &mut self, cmd: SubscribeInstrument, ) -> Result<(), Error>
Subscribes to data for a single instrument. Read more
§fn subscribe_book_depth10(
&mut self,
cmd: SubscribeBookDepth10,
) -> Result<(), Error>
fn subscribe_book_depth10( &mut self, cmd: SubscribeBookDepth10, ) -> Result<(), Error>
Subscribes to top 10 order book depth updates for the specified instrument. Read more
§fn subscribe_mark_prices(
&mut self,
cmd: SubscribeMarkPrices,
) -> Result<(), Error>
fn subscribe_mark_prices( &mut self, cmd: SubscribeMarkPrices, ) -> Result<(), Error>
Subscribes to mark price updates for the specified instrument. Read more
§fn subscribe_funding_rates(
&mut self,
cmd: SubscribeFundingRates,
) -> Result<(), Error>
fn subscribe_funding_rates( &mut self, cmd: SubscribeFundingRates, ) -> Result<(), Error>
Subscribes to funding rate updates for the specified instrument. Read more
§fn subscribe_instrument_status(
&mut self,
cmd: SubscribeInstrumentStatus,
) -> Result<(), Error>
fn subscribe_instrument_status( &mut self, cmd: SubscribeInstrumentStatus, ) -> Result<(), Error>
Subscribes to status updates for the specified instrument. Read more
§fn subscribe_instrument_close(
&mut self,
cmd: SubscribeInstrumentClose,
) -> Result<(), Error>
fn subscribe_instrument_close( &mut self, cmd: SubscribeInstrumentClose, ) -> Result<(), Error>
Subscribes to instrument close events for the specified instrument. Read more
§fn subscribe_blocks(&mut self, cmd: SubscribeBlocks) -> Result<(), Error>
fn subscribe_blocks(&mut self, cmd: SubscribeBlocks) -> Result<(), Error>
Subscribes to blocks for a specified blockchain. Read more
§fn subscribe_pool(&mut self, cmd: SubscribePool) -> Result<(), Error>
fn subscribe_pool(&mut self, cmd: SubscribePool) -> Result<(), Error>
Subscribes to pool definition updates for a specified AMM pool. Read more
§fn subscribe_pool_swaps(&mut self, cmd: SubscribePoolSwaps) -> Result<(), Error>
fn subscribe_pool_swaps(&mut self, cmd: SubscribePoolSwaps) -> Result<(), Error>
Subscribes to pool swaps for a specified AMM pool. Read more
§fn subscribe_pool_liquidity_updates(
&mut self,
cmd: SubscribePoolLiquidityUpdates,
) -> Result<(), Error>
fn subscribe_pool_liquidity_updates( &mut self, cmd: SubscribePoolLiquidityUpdates, ) -> Result<(), Error>
Subscribes to pool liquidity updates for a specified AMM pool. Read more
§fn subscribe_pool_fee_collects(
&mut self,
cmd: SubscribePoolFeeCollects,
) -> Result<(), Error>
fn subscribe_pool_fee_collects( &mut self, cmd: SubscribePoolFeeCollects, ) -> Result<(), Error>
Subscribes to pool fee collects for a specified AMM pool. Read more
§fn subscribe_pool_flash_events(
&mut self,
cmd: SubscribePoolFlashEvents,
) -> Result<(), Error>
fn subscribe_pool_flash_events( &mut self, cmd: SubscribePoolFlashEvents, ) -> Result<(), Error>
Subscribes to pool flash loan events for a specified AMM pool. Read more
§fn unsubscribe(&mut self, cmd: &UnsubscribeCustomData) -> Result<(), Error>
fn unsubscribe(&mut self, cmd: &UnsubscribeCustomData) -> Result<(), Error>
Unsubscribes from custom data types according to the command. Read more
§fn unsubscribe_instruments(
&mut self,
cmd: &UnsubscribeInstruments,
) -> Result<(), Error>
fn unsubscribe_instruments( &mut self, cmd: &UnsubscribeInstruments, ) -> Result<(), Error>
Unsubscribes from instruments list for the specified venue. Read more
§fn unsubscribe_instrument(
&mut self,
cmd: &UnsubscribeInstrument,
) -> Result<(), Error>
fn unsubscribe_instrument( &mut self, cmd: &UnsubscribeInstrument, ) -> Result<(), Error>
Unsubscribes from data for the specified instrument. Read more
§fn unsubscribe_book_depth10(
&mut self,
cmd: &UnsubscribeBookDepth10,
) -> Result<(), Error>
fn unsubscribe_book_depth10( &mut self, cmd: &UnsubscribeBookDepth10, ) -> Result<(), Error>
Unsubscribes from top 10 order book depth updates for the specified instrument. Read more
§fn unsubscribe_mark_prices(
&mut self,
cmd: &UnsubscribeMarkPrices,
) -> Result<(), Error>
fn unsubscribe_mark_prices( &mut self, cmd: &UnsubscribeMarkPrices, ) -> Result<(), Error>
Unsubscribes from mark price updates for the specified instrument. Read more
§fn unsubscribe_funding_rates(
&mut self,
cmd: &UnsubscribeFundingRates,
) -> Result<(), Error>
fn unsubscribe_funding_rates( &mut self, cmd: &UnsubscribeFundingRates, ) -> Result<(), Error>
Unsubscribes from funding rate updates for the specified instrument. Read more
§fn unsubscribe_instrument_status(
&mut self,
cmd: &UnsubscribeInstrumentStatus,
) -> Result<(), Error>
fn unsubscribe_instrument_status( &mut self, cmd: &UnsubscribeInstrumentStatus, ) -> Result<(), Error>
Unsubscribes from instrument status updates for the specified instrument. Read more
§fn unsubscribe_instrument_close(
&mut self,
cmd: &UnsubscribeInstrumentClose,
) -> Result<(), Error>
fn unsubscribe_instrument_close( &mut self, cmd: &UnsubscribeInstrumentClose, ) -> Result<(), Error>
Unsubscribes from instrument close events for the specified instrument. Read more
§fn unsubscribe_blocks(&mut self, cmd: &UnsubscribeBlocks) -> Result<(), Error>
fn unsubscribe_blocks(&mut self, cmd: &UnsubscribeBlocks) -> Result<(), Error>
Unsubscribes from blocks for a specified blockchain. Read more
§fn unsubscribe_pool(&mut self, cmd: &UnsubscribePool) -> Result<(), Error>
fn unsubscribe_pool(&mut self, cmd: &UnsubscribePool) -> Result<(), Error>
Unsubscribes from pool definition updates for a specified AMM pool. Read more
§fn unsubscribe_pool_swaps(
&mut self,
cmd: &UnsubscribePoolSwaps,
) -> Result<(), Error>
fn unsubscribe_pool_swaps( &mut self, cmd: &UnsubscribePoolSwaps, ) -> Result<(), Error>
Unsubscribes from swaps for a specified AMM pool. Read more
§fn unsubscribe_pool_liquidity_updates(
&mut self,
cmd: &UnsubscribePoolLiquidityUpdates,
) -> Result<(), Error>
fn unsubscribe_pool_liquidity_updates( &mut self, cmd: &UnsubscribePoolLiquidityUpdates, ) -> Result<(), Error>
Unsubscribes from pool liquidity updates for a specified AMM pool. Read more
§fn unsubscribe_pool_fee_collects(
&mut self,
cmd: &UnsubscribePoolFeeCollects,
) -> Result<(), Error>
fn unsubscribe_pool_fee_collects( &mut self, cmd: &UnsubscribePoolFeeCollects, ) -> Result<(), Error>
Unsubscribes from pool fee collects for a specified AMM pool. Read more
§fn unsubscribe_pool_flash_events(
&mut self,
cmd: &UnsubscribePoolFlashEvents,
) -> Result<(), Error>
fn unsubscribe_pool_flash_events( &mut self, cmd: &UnsubscribePoolFlashEvents, ) -> Result<(), Error>
Unsubscribes from pool flash loan events for a specified AMM pool. Read more
§fn request_data(&self, request: RequestCustomData) -> Result<(), Error>
fn request_data(&self, request: RequestCustomData) -> Result<(), Error>
Sends a custom data request to the provider. Read more
§fn request_book_snapshot(
&self,
request: RequestBookSnapshot,
) -> Result<(), Error>
fn request_book_snapshot( &self, request: RequestBookSnapshot, ) -> Result<(), Error>
Requests a snapshot of the order book for a specified instrument. Read more
§fn request_funding_rates(
&self,
request: RequestFundingRates,
) -> Result<(), Error>
fn request_funding_rates( &self, request: RequestFundingRates, ) -> Result<(), Error>
Requests historical or streaming funding rate data for a specified instrument. Read more
§fn request_forward_prices(
&self,
request: RequestForwardPrices,
) -> Result<(), Error>
fn request_forward_prices( &self, request: RequestForwardPrices, ) -> Result<(), Error>
Requests forward/underlying prices for derivatives instruments. Read more
§fn request_book_depth(&self, request: RequestBookDepth) -> Result<(), Error>
fn request_book_depth(&self, request: RequestBookDepth) -> Result<(), Error>
Requests historical order book depth data for a specified instrument. Read more
Source§impl Debug for InteractiveBrokersDataClient
impl Debug for InteractiveBrokersDataClient
impl DerefToPyAny for InteractiveBrokersDataClient
Source§impl Drop for InteractiveBrokersDataClient
impl Drop for InteractiveBrokersDataClient
impl ExtractPyClassWithClone for InteractiveBrokersDataClient
Source§impl<'py> IntoPyObject<'py> for InteractiveBrokersDataClient
impl<'py> IntoPyObject<'py> for InteractiveBrokersDataClient
Source§type Target = InteractiveBrokersDataClient
type Target = InteractiveBrokersDataClient
The Python output type
Source§type Output = Bound<'py, <InteractiveBrokersDataClient as IntoPyObject<'py>>::Target>
type Output = Bound<'py, <InteractiveBrokersDataClient as IntoPyObject<'py>>::Target>
The smart pointer type to use. Read more
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>
Performs the conversion.
Source§impl PyClass for InteractiveBrokersDataClient
impl PyClass for InteractiveBrokersDataClient
Source§impl PyClassImpl for InteractiveBrokersDataClient
impl PyClassImpl for InteractiveBrokersDataClient
Source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[pyclass(subclass)]
Source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
#[pyclass(extends=…)]
Source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
#[pyclass(mapping)]
Source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
#[pyclass(sequence)]
Source§const IS_IMMUTABLE_TYPE: bool = false
const IS_IMMUTABLE_TYPE: bool = false
#[pyclass(immutable_type)]
Source§const RAW_DOC: &'static CStr = /// Interactive Brokers data client.
///
/// This client provides market data functionality using the `rust-ibapi` library.
/// It manages subscriptions, handles historical data requests, and streams
/// market data to NautilusTrader.
const RAW_DOC: &'static CStr = /// Interactive Brokers data client. /// /// This client provides market data functionality using the `rust-ibapi` library. /// It manages subscriptions, handles historical data requests, and streams /// market data to NautilusTrader.
Docstring for the class provided on the struct or enum. Read more
Source§const DOC: &'static CStr
const DOC: &'static CStr
Fully rendered class doc, including the
text_signature if a constructor is defined. Read moreSource§type Layout = <<InteractiveBrokersDataClient as PyClassImpl>::BaseNativeType as PyClassBaseType>::Layout<InteractiveBrokersDataClient>
type Layout = <<InteractiveBrokersDataClient as PyClassImpl>::BaseNativeType as PyClassBaseType>::Layout<InteractiveBrokersDataClient>
Description of how this class is laid out in memory
Source§type ThreadChecker = NoopThreadChecker
type ThreadChecker = NoopThreadChecker
This handles following two situations: Read more
type Inventory = Pyo3MethodsInventoryForInteractiveBrokersDataClient
Source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Immutable or mutable
Source§type BaseNativeType = PyAny
type BaseNativeType = PyAny
The closest native ancestor. This is
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<PyObjectOffset>
fn dict_offset() -> Option<PyObjectOffset>
Used to provide the dictoffset slot
(equivalent to tp_dictoffset)
§fn weaklist_offset() -> Option<PyObjectOffset>
fn weaklist_offset() -> Option<PyObjectOffset>
Used to provide the weaklistoffset slot
(equivalent to tp_weaklistoffset
Source§impl PyTypeInfo for InteractiveBrokersDataClient
impl PyTypeInfo for InteractiveBrokersDataClient
Source§const NAME: &str = <Self as ::pyo3::PyClass>::NAME
const NAME: &str = <Self as ::pyo3::PyClass>::NAME
👎Deprecated since 0.28.0:
prefer using ::type_object(py).name() to get the correct runtime value
Class name.
Source§const MODULE: Option<&str> = <Self as ::pyo3::impl_::pyclass::PyClassImpl>::MODULE
const MODULE: Option<&str> = <Self as ::pyo3::impl_::pyclass::PyClassImpl>::MODULE
👎Deprecated since 0.28.0:
prefer using ::type_object(py).module() to get the correct runtime value
Module name, if any.
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
§fn type_object(py: Python<'_>) -> Bound<'_, PyType>
fn type_object(py: Python<'_>) -> Bound<'_, PyType>
Returns the safe abstraction over the type object.
§fn is_type_of(object: &Bound<'_, PyAny>) -> bool
fn is_type_of(object: &Bound<'_, PyAny>) -> bool
Checks if
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
Checks if
object is an instance of this type.Auto Trait Implementations§
impl !Freeze for InteractiveBrokersDataClient
impl !RefUnwindSafe for InteractiveBrokersDataClient
impl !UnwindSafe for InteractiveBrokersDataClient
impl Send for InteractiveBrokersDataClient
impl Sync for InteractiveBrokersDataClient
impl Unpin for InteractiveBrokersDataClient
impl UnsafeUnpin for InteractiveBrokersDataClient
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§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>
Converts
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>
Converts
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>
Converts
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>
Converts
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>
Converts
self into a Python object. Read more§impl<'py, T> IntoPyObjectNautilusExt<'py> for Twhere
T: IntoPyObjectExt<'py>,
impl<'py, T> IntoPyObjectNautilusExt<'py> for Twhere
T: IntoPyObjectExt<'py>,
§fn into_py_any_unwrap(self, py: Python<'py>) -> Py<PyAny>
fn into_py_any_unwrap(self, py: Python<'py>) -> Py<PyAny>
§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,
§fn type_check(object: &Bound<'_, PyAny>) -> bool
fn type_check(object: &Bound<'_, PyAny>) -> bool
§fn classinfo_object(py: Python<'_>) -> Bound<'_, PyAny>
fn classinfo_object(py: Python<'_>) -> Bound<'_, PyAny>
Returns the expected type as a possible argument for the
isinstance and issubclass function. Read more