pub struct NetworkConnectionNodeBuilder { /* private fields */ }Implementations§
Source§impl NetworkConnectionNodeBuilder
impl NetworkConnectionNodeBuilder
pub fn with_src_ip_address(&mut self, src_ip_address: String) -> Self
pub fn with_dst_ip_address(&mut self, dst_ip_address: String) -> Self
pub fn with_src_port(&mut self, src_port: u16) -> Self
pub fn with_dst_port(&mut self, dst_port: u16) -> Self
pub fn with_protocol(&mut self, protocol: String) -> Self
pub fn with_state(&mut self, state: u32) -> Self
pub fn with_created_timestamp(&mut self, created_timestamp: u64) -> Self
pub fn with_terminated_timestamp(&mut self, terminated_timestamp: u64) -> Self
pub fn with_last_seen_timestamp(&mut self, last_seen_timestamp: u64) -> Self
pub fn build(&self) -> PyResult<NetworkConnectionNode>
Trait Implementations§
Source§impl Clone for NetworkConnectionNodeBuilder
impl Clone for NetworkConnectionNodeBuilder
Source§fn clone(&self) -> NetworkConnectionNodeBuilder
fn clone(&self) -> NetworkConnectionNodeBuilder
Returns a duplicate 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 Default for NetworkConnectionNodeBuilder
impl Default for NetworkConnectionNodeBuilder
Source§fn default() -> NetworkConnectionNodeBuilder
fn default() -> NetworkConnectionNodeBuilder
Returns the “default value” for a type. Read more
Source§impl PyObjectAlloc for NetworkConnectionNodeBuilder
impl PyObjectAlloc for NetworkConnectionNodeBuilder
Source§impl PyTypeInfo for NetworkConnectionNodeBuilder
impl PyTypeInfo for NetworkConnectionNodeBuilder
Source§const DESCRIPTION: &'static str = "\u{0}"
const DESCRIPTION: &'static str = "\u{0}"
Class doc string
Source§type Type = NetworkConnectionNodeBuilder
type Type = NetworkConnectionNodeBuilder
Type of objects to store in PyObject struct
Source§unsafe fn type_object() -> &'static mut PyTypeObject
unsafe fn type_object() -> &'static mut PyTypeObject
PyTypeObject instance for this type, which might still need to
be initialized
Source§fn is_instance(object: &PyAny) -> bool
fn is_instance(object: &PyAny) -> bool
Check if
*mut ffi::PyObject is instance of this typeSource§fn is_exact_instance(object: &PyAny) -> bool
fn is_exact_instance(object: &PyAny) -> bool
Check if
*mut ffi::PyObject is exact instance of this typeAuto Trait Implementations§
impl Freeze for NetworkConnectionNodeBuilder
impl RefUnwindSafe for NetworkConnectionNodeBuilder
impl Send for NetworkConnectionNodeBuilder
impl Sync for NetworkConnectionNodeBuilder
impl Unpin for NetworkConnectionNodeBuilder
impl UnwindSafe for NetworkConnectionNodeBuilder
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,
Source§impl<T> PyMethodsProtocol for Twhere
T: PyMethodsInventoryDispatch,
impl<T> PyMethodsProtocol for Twhere
T: PyMethodsInventoryDispatch,
Source§fn py_methods() -> Vec<&'static PyMethodDefType>
fn py_methods() -> Vec<&'static PyMethodDefType>
Returns all methods that are defined for a class
Source§impl<'v, T> PyTryFrom<'v> for Twhere
T: PyTypeInfo,
impl<'v, T> PyTryFrom<'v> for Twhere
T: PyTypeInfo,
Source§fn try_from<V>(value: V) -> Result<&'v T, PyDowncastError>
fn try_from<V>(value: V) -> Result<&'v T, PyDowncastError>
Cast from a concrete Python object type to PyObject.
Source§fn try_from_exact<V>(value: V) -> Result<&'v T, PyDowncastError>
fn try_from_exact<V>(value: V) -> Result<&'v T, PyDowncastError>
Cast from a concrete Python object type to PyObject. With exact type check.
Source§fn try_from_mut<V>(value: V) -> Result<&'v mut T, PyDowncastError>
fn try_from_mut<V>(value: V) -> Result<&'v mut T, PyDowncastError>
Cast from a concrete Python object type to PyObject.
Source§fn try_from_mut_exact<V>(value: V) -> Result<&'v mut T, PyDowncastError>
fn try_from_mut_exact<V>(value: V) -> Result<&'v mut T, PyDowncastError>
Cast from a concrete Python object type to PyObject. With exact type check.
Source§unsafe fn try_from_unchecked<V>(value: V) -> &'v T
unsafe fn try_from_unchecked<V>(value: V) -> &'v T
Cast a PyAny to a specific type of PyObject. The caller must
have already verified the reference is for this type.
Source§impl<T> PyTypeCreate for Twhere
T: PyObjectAlloc + PyTypeObject,
impl<T> PyTypeCreate for Twhere
T: PyObjectAlloc + PyTypeObject,
Source§impl<T> PyTypeObject for T
impl<T> PyTypeObject for T
Source§fn init_type() -> NonNull<PyTypeObject>
fn init_type() -> NonNull<PyTypeObject>
This function must make sure that the corresponding type object gets
initialized exactly once and return it.
Source§fn type_object() -> Py<PyType>
fn type_object() -> Py<PyType>
Returns the safe abstraction over the type object from PyTypeObject::init_type