pub struct ServerError {
pub reason: String,
}Expand description
server/error: the server rejected the client’s ClientInit and closes the connection.
Sent in place of ServerInit when the server cannot accept client/init (connection.md,
Failure Handling), before the Noise handshake starts. reason is one of
unsupported_version, unsupported_suite or malformed; an unknown value is carried verbatim
rather than rejected, so a later revision’s reason reaches the caller instead of being read as a
decoding failure. The message is unauthenticated: its reason is a hint for logging and operator
display, not a verified fact.
Fields§
§reason: StringWhy the server refused the init, for example unsupported_version.
Trait Implementations§
Source§impl Clone for ServerError
impl Clone for ServerError
Source§impl Debug for ServerError
impl Debug for ServerError
Source§impl<'de> Deserialize<'de> for ServerError
impl<'de> Deserialize<'de> for ServerError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ServerError
Source§impl PartialEq for ServerError
impl PartialEq for ServerError
Source§impl Serialize for ServerError
impl Serialize for ServerError
impl StructuralPartialEq for ServerError
Auto Trait Implementations§
impl Forget for ServerError
impl Freeze for ServerError
impl Move for ServerError
impl RefUnwindSafe for ServerError
impl Send for ServerError
impl Sync for ServerError
impl Unpin for ServerError
impl UnsafeUnpin for ServerError
impl UnwindSafe for ServerError
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