Struct docker_pyo3::network::Pyo3Network
source · pub struct Pyo3Network(pub Network);Tuple Fields§
§0: NetworkImplementations§
source§impl Pyo3Network
impl Pyo3Network
pub fn new(docker: Pyo3Docker, id: &str) -> Self
pub fn id(&self) -> String
pub fn inspect(&self) -> PyResult<Py<PyAny>>
pub fn delete(&self) -> PyResult<()>
pub fn connect( &self, container_id: &str, _ipam_config: Option<&str>, aliases: Option<&PyList>, links: Option<&PyList>, network_id: Option<&str>, endpoint_id: Option<&str>, gateway: Option<&str>, ipv4: Option<&str>, prefix_len: Option<isize>, ipv6_gateway: Option<&str>, ipv6: Option<&str>, ipv6_prefix_len: Option<i64>, mac: Option<&str>, driver_opts: Option<&PyDict> ) -> PyResult<()>
pub fn disconnect(&self, container_id: &str, force: Option<bool>) -> PyResult<()>
Trait Implementations§
source§impl Debug for Pyo3Network
impl Debug for Pyo3Network
source§impl PyClassImpl for Pyo3Network
impl PyClassImpl for Pyo3Network
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)]
§type Layout = PyCell<Pyo3Network>
type Layout = PyCell<Pyo3Network>
Layout
§type ThreadChecker = ThreadCheckerStub<Pyo3Network>
type ThreadChecker = ThreadCheckerStub<Pyo3Network>
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 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 dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a Pyo3Network
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a Pyo3Network
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut Pyo3Network
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut Pyo3Network
source§impl PyMethods<Pyo3Network> for PyClassImplCollector<Pyo3Network>
impl PyMethods<Pyo3Network> for PyClassImplCollector<Pyo3Network>
fn py_methods(self) -> &'static PyClassItems
source§impl PyTypeInfo for Pyo3Network
impl PyTypeInfo for Pyo3Network
§type AsRefTarget = PyCell<Pyo3Network>
type AsRefTarget = PyCell<Pyo3Network>
Utility type to make Py::as_ref work.
source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
source§fn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
Returns the safe abstraction over the type object.
source§fn 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.source§fn is_exact_type_of(object: &PyAny) -> bool
fn is_exact_type_of(object: &PyAny) -> bool
Checks if
object is an instance of this type.