Struct pyo3::exceptions::socket::gaierror
source · pub struct gaierror(/* private fields */);
Expand description
A Rust type representing an exception defined in Python code.
This type was created by the pyo3::import_exception!
macro - see its documentation
for more information.
Implementations§
Trait Implementations§
source§impl AsPyPointer for gaierror
impl AsPyPointer for gaierror
source§impl PyNativeType for gaierror
impl PyNativeType for gaierror
§type AsRefSource = gaierror
type AsRefSource = gaierror
The form of this which is stored inside a
Py<T>
smart pointer.source§fn as_borrowed(&self) -> Borrowed<'_, '_, Self::AsRefSource>
fn as_borrowed(&self) -> Borrowed<'_, '_, Self::AsRefSource>
source§impl PyTypeInfo for gaierror
impl PyTypeInfo for gaierror
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_bound(py: Python<'_>) -> Bound<'_, PyType>
fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
Returns the safe abstraction over the type object.
impl DerefToPyAny for gaierror
impl ToPyErr for gaierror
Auto Trait Implementations§
impl !Freeze for gaierror
impl !RefUnwindSafe for gaierror
impl !Send for gaierror
impl !Sync for gaierror
impl Unpin for gaierror
impl UnwindSafe for gaierror
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> HasPyGilRef for Twhere
T: PyNativeType,
impl<T> HasPyGilRef for Twhere
T: PyNativeType,
§type AsRefTarget = T
type AsRefTarget = T
Utility type to make Py::as_ref work.
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more