Struct docker_pyo3::network::Pyo3Networks
source · pub struct Pyo3Networks(pub Networks);Tuple Fields§
§0: NetworksImplementations§
source§impl Pyo3Networks
impl Pyo3Networks
pub fn new(docker: Pyo3Docker) -> Self
pub fn get(&self, id: &str) -> Pyo3Network
pub fn list(&self) -> PyResult<Py<PyAny>>
pub fn prune(&self) -> PyResult<Py<PyAny>>
pub fn create( &self, name: &str, check_duplicate: Option<bool>, driver: Option<&str>, internal: Option<bool>, attachable: Option<bool>, ingress: Option<bool>, enable_ipv6: Option<bool>, options: Option<&PyDict>, labels: Option<&PyDict> ) -> PyResult<Pyo3Network>
Trait Implementations§
source§impl Debug for Pyo3Networks
impl Debug for Pyo3Networks
source§impl PyClassImpl for Pyo3Networks
impl PyClassImpl for Pyo3Networks
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<Pyo3Networks>
type Layout = PyCell<Pyo3Networks>
Layout
§type ThreadChecker = ThreadCheckerStub<Pyo3Networks>
type ThreadChecker = ThreadCheckerStub<Pyo3Networks>
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 Pyo3Networks
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a Pyo3Networks
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut Pyo3Networks
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut Pyo3Networks
source§impl PyMethods<Pyo3Networks> for PyClassImplCollector<Pyo3Networks>
impl PyMethods<Pyo3Networks> for PyClassImplCollector<Pyo3Networks>
fn py_methods(self) -> &'static PyClassItems
source§impl PyTypeInfo for Pyo3Networks
impl PyTypeInfo for Pyo3Networks
§type AsRefTarget = PyCell<Pyo3Networks>
type AsRefTarget = PyCell<Pyo3Networks>
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.