pub enum PythonProtocolError {
Json(Error),
UnsupportedSchemaVersion {
expected: u32,
actual: u32,
},
UnexpectedRequestId {
expected: u64,
actual: u64,
},
UnexpectedResponseMode {
expected: &'static str,
actual: &'static str,
},
ProtocolMajorMismatch {
host: u16,
worker: u16,
},
FrameHeaderTooShort {
actual: usize,
},
FrameTooLarge {
limit: usize,
actual: usize,
},
FrameLengthMismatch {
declared: usize,
actual: usize,
},
}Variants§
Json(Error)
UnsupportedSchemaVersion
UnexpectedRequestId
UnexpectedResponseMode
ProtocolMajorMismatch
FrameHeaderTooShort
FrameTooLarge
FrameLengthMismatch
Trait Implementations§
Source§impl Debug for PythonProtocolError
impl Debug for PythonProtocolError
Source§impl Display for PythonProtocolError
impl Display for PythonProtocolError
Source§impl Error for PythonProtocolError
impl Error for PythonProtocolError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for PythonProtocolError
impl From<Error> for PythonProtocolError
Source§impl From<PythonProtocolError> for PythonSupervisorError
impl From<PythonProtocolError> for PythonSupervisorError
Source§fn from(_: PythonProtocolError) -> Self
fn from(_: PythonProtocolError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PythonProtocolError
impl !RefUnwindSafe for PythonProtocolError
impl Send for PythonProtocolError
impl Sync for PythonProtocolError
impl Unpin for PythonProtocolError
impl UnsafeUnpin for PythonProtocolError
impl !UnwindSafe for PythonProtocolError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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