pub struct IncompleteReadError(/* 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 PyTypeInfo for IncompleteReadError
impl PyTypeInfo for IncompleteReadError
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§const PYTHON_TYPE: &'static str = "typing.Any"
const PYTHON_TYPE: &'static str = "typing.Any"
Provides the full python type paths.
Source§fn type_object(py: Python<'_>) -> Bound<'_, PyType>
fn type_object(py: Python<'_>) -> Bound<'_, PyType>
Returns the safe abstraction over the type object.
impl DerefToPyAny for IncompleteReadError
impl ToPyErr for IncompleteReadError
Auto Trait Implementations§
impl !Freeze for IncompleteReadError
impl !RefUnwindSafe for IncompleteReadError
impl !Send for IncompleteReadError
impl !Sync for IncompleteReadError
impl Unpin for IncompleteReadError
impl UnwindSafe for IncompleteReadError
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> 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 moreSource§impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
Source§const NAME: &'static str = const NAME: &'static str = <T as PyTypeInfo>::NAME;
const NAME: &'static str = const NAME: &'static str = <T as PyTypeInfo>::NAME;
Name of self. This is used in error messages, for example.
Source§const PYTHON_TYPE: &'static str = const PYTHON_TYPE: &'static str = <T as PyTypeInfo>::PYTHON_TYPE;
const PYTHON_TYPE: &'static str = const PYTHON_TYPE: &'static str = <T as PyTypeInfo>::PYTHON_TYPE;
Provides the full python type of the allowed values.