Struct pyportus::DatapathInfo
source · pub struct DatapathInfo {
pub sock_id: u32,
pub init_cwnd: u32,
pub mss: u32,
pub src_ip: u32,
pub src_port: u32,
pub dst_ip: u32,
pub dst_port: u32,
}
Fields
sock_id: u32
init_cwnd: u32
mss: u32
src_ip: u32
src_port: u32
dst_ip: u32
dst_port: u32
Trait Implementations
sourceimpl IntoPy<Py<PyAny>> for DatapathInfo
impl IntoPy<Py<PyAny>> for DatapathInfo
sourceimpl PyClass for DatapathInfo
impl PyClass for DatapathInfo
sourceimpl PyClassImpl for DatapathInfo
impl PyClassImpl for DatapathInfo
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<DatapathInfo>
type Layout = PyCell<DatapathInfo>
Layout
type ThreadChecker = ThreadCheckerStub<DatapathInfo>
type ThreadChecker = ThreadCheckerStub<DatapathInfo>
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 DatapathInfo
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a DatapathInfo
sourceimpl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut DatapathInfo
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut DatapathInfo
sourceimpl PyTypeInfo for DatapathInfo
impl PyTypeInfo for DatapathInfo
type AsRefTarget = PyCell<DatapathInfo>
type AsRefTarget = PyCell<DatapathInfo>
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 DatapathInfo
impl Send for DatapathInfo
impl Sync for DatapathInfo
impl Unpin for DatapathInfo
impl UnwindSafe for DatapathInfo
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