Struct httpbis::solicit::ConnectionError
[−]
[src]
pub struct ConnectionError { /* fields omitted */ }
The struct represents a connection error arising on an HTTP/2 connection.
Methods
impl ConnectionError
[src]
fn new(error_code: ErrorCode) -> ConnectionError
Creates a new ConnectionError
with no associated debug data.
fn with_debug_data(
error_code: ErrorCode,
debug_data: Vec<u8>
) -> ConnectionError
error_code: ErrorCode,
debug_data: Vec<u8>
) -> ConnectionError
Creates a new ConnectionError
with the given associated debug data.
fn error_code(&self) -> ErrorCode
The error code of the underlying error.
fn debug_data(&self) -> Option<&[u8]>
The debug data attached to the connection error, if any.
fn debug_str(&self) -> Option<&str>
The debug data interpreted as a string, if possible.
Trait Implementations
impl Debug for ConnectionError
[src]
impl PartialEq for ConnectionError
[src]
fn eq(&self, __arg_0: &ConnectionError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ConnectionError) -> bool
This method tests for !=
.
impl Clone for ConnectionError
[src]
fn clone(&self) -> ConnectionError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more