pub struct TardisMachineClient {
pub base_url: String,
pub replay_signal: Arc<AtomicBool>,
pub stream_signal: Arc<AtomicBool>,
pub instruments: HashMap<TardisInstrumentKey, Arc<InstrumentMiniInfo>>,
pub normalize_symbols: bool,
}
Expand description
Provides a client for connecting to a Tardis Machine Server.
Fields§
§base_url: String
§replay_signal: Arc<AtomicBool>
§stream_signal: Arc<AtomicBool>
§instruments: HashMap<TardisInstrumentKey, Arc<InstrumentMiniInfo>>
§normalize_symbols: bool
Implementations§
Source§impl TardisMachineClient
impl TardisMachineClient
Sourcepub fn new(base_url: Option<&str>, normalize_symbols: bool) -> Result<Self>
pub fn new(base_url: Option<&str>, normalize_symbols: bool) -> Result<Self>
Creates a new TardisMachineClient
instance.
pub fn add_instrument_info(&mut self, info: InstrumentMiniInfo)
pub fn is_closed(&self) -> bool
pub fn close(&mut self)
pub async fn replay( &self, options: Vec<ReplayNormalizedRequestOptions>, ) -> impl Stream<Item = Data>
pub async fn stream( &self, instrument: InstrumentMiniInfo, options: Vec<StreamNormalizedRequestOptions>, ) -> impl Stream<Item = Data>
Source§impl TardisMachineClient
impl TardisMachineClient
pub fn py_is_closed(&self) -> bool
Trait Implementations§
Source§impl Clone for TardisMachineClient
impl Clone for TardisMachineClient
Source§fn clone(&self) -> TardisMachineClient
fn clone(&self) -> TardisMachineClient
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TardisMachineClient
impl Debug for TardisMachineClient
Source§impl IntoPy<Py<PyAny>> for TardisMachineClient
impl IntoPy<Py<PyAny>> for TardisMachineClient
Source§impl PyClass for TardisMachineClient
impl PyClass for TardisMachineClient
Source§impl PyClassImpl for TardisMachineClient
impl PyClassImpl for TardisMachineClient
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§type ThreadChecker = SendablePyClass<TardisMachineClient>
type ThreadChecker = SendablePyClass<TardisMachineClient>
This handles following two situations: Read more
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<isize>
fn weaklist_offset() -> Option<isize>
Source§impl PyClassNewTextSignature<TardisMachineClient> for PyClassImplCollector<TardisMachineClient>
impl PyClassNewTextSignature<TardisMachineClient> for PyClassImplCollector<TardisMachineClient>
fn new_text_signature(self) -> Option<&'static str>
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a TardisMachineClient
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a TardisMachineClient
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut TardisMachineClient
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut TardisMachineClient
Source§impl PyMethods<TardisMachineClient> for PyClassImplCollector<TardisMachineClient>
impl PyMethods<TardisMachineClient> for PyClassImplCollector<TardisMachineClient>
fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for TardisMachineClient
impl PyTypeInfo for TardisMachineClient
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_bound(py: Python<'_>) -> Bound<'_, PyType>
fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
Returns the safe abstraction over the type object.
§fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
Checks if
object
is an instance of this type or a subclass of this type.§fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool
fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool
Checks if
object
is an instance of this type.impl DerefToPyAny for TardisMachineClient
Auto Trait Implementations§
impl Freeze for TardisMachineClient
impl RefUnwindSafe for TardisMachineClient
impl Send for TardisMachineClient
impl Sync for TardisMachineClient
impl Unpin for TardisMachineClient
impl UnwindSafe for TardisMachineClient
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FromPyObject<'_> for Twhere
T: PyClass + Clone,
impl<T> FromPyObject<'_> for Twhere
T: PyClass + Clone,
§fn extract_bound(obj: &Bound<'_, PyAny>) -> Result<T, PyErr>
fn extract_bound(obj: &Bound<'_, PyAny>) -> Result<T, PyErr>
§impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
§fn from_py_object_bound(ob: Borrowed<'_, 'py, PyAny>) -> Result<T, PyErr>
fn from_py_object_bound(ob: Borrowed<'_, 'py, PyAny>) -> Result<T, PyErr>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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