Struct pyportus::Measurements
source · pub struct Measurements {
pub acked: u32,
pub was_timeout: bool,
pub sacked: u32,
pub loss: u32,
pub rtt: u32,
pub inflight: u32,
}
Fields
acked: u32
was_timeout: bool
sacked: u32
loss: u32
rtt: u32
inflight: u32
Trait Implementations
sourceimpl IntoPy<Py<PyAny>> for Measurements
impl IntoPy<Py<PyAny>> for Measurements
sourceimpl PyClass for Measurements
impl PyClass for Measurements
sourceimpl PyClassImpl for Measurements
impl PyClassImpl for Measurements
sourceconst IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[pyclass(subclass)]
sourceconst IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
#[pyclass(extends=…)]
sourceconst IS_MAPPING: bool = false
const IS_MAPPING: bool = false
#[pyclass(mapping)]
sourceconst IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
#[pyclass(sequence)]
type Layout = PyCell<Measurements>
type Layout = PyCell<Measurements>
Layout
type ThreadChecker = ThreadCheckerStub<Measurements>
type ThreadChecker = ThreadCheckerStub<Measurements>
This handles following two situations: Read more
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Immutable or mutable
type Dict = PyClassDictSlot
type Dict = PyClassDictSlot
Specify this class has
#[pyclass(dict)]
or not.type WeakRef = PyClassWeakRefSlot
type WeakRef = PyClassWeakRefSlot
Specify this class has
#[pyclass(weakref)]
or not.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
. Read morefn items_iter() -> PyClassItemsIter
fn dict_offset() -> Option<Py_ssize_t>
fn weaklist_offset() -> Option<Py_ssize_t>
sourceimpl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a Measurements
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a Measurements
sourceimpl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut Measurements
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut Measurements
sourceimpl PyTypeInfo for Measurements
impl PyTypeInfo for Measurements
type AsRefTarget = PyCell<Measurements>
type AsRefTarget = PyCell<Measurements>
Utility type to make Py::as_ref work.
sourcefn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
sourcefn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
Returns the safe abstraction over the type object.
sourcefn is_type_of(object: &PyAny) -> bool
fn is_type_of(object: &PyAny) -> bool
Checks if
object
is an instance of this type or a subclass of this type.sourcefn is_exact_type_of(object: &PyAny) -> bool
fn is_exact_type_of(object: &PyAny) -> bool
Checks if
object
is an instance of this type.Auto Trait Implementations
impl RefUnwindSafe for Measurements
impl Send for Measurements
impl Sync for Measurements
impl Unpin for Measurements
impl UnwindSafe for Measurements
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more