Struct bip_utracker::error::ErrorResponse
[−]
[src]
pub struct ErrorResponse<'a> { /* fields omitted */ }
Error reported by the server and sent to the client.
Methods
impl<'a> ErrorResponse<'a>
[src]
fn new(message: &'a str) -> ErrorResponse<'a>
[src]
Create a new ErrorResponse.
fn from_bytes(bytes: &'a [u8]) -> IResult<&'a [u8], ErrorResponse<'a>>
[src]
Construct an ErrorResponse from the given bytes.
fn write_bytes<W>(&self, writer: W) -> Result<()> where
W: Write,
[src]
W: Write,
Write the ErrorResponse to the given writer.
fn message(&self) -> &str
[src]
Message describing the error that occured.
fn to_owned(&self) -> ErrorResponse<'static>
[src]
Create an owned version of the ErrorResponse.
Trait Implementations
impl<'a> Debug for ErrorResponse<'a>
[src]
impl<'a> Clone for ErrorResponse<'a>
[src]
fn clone(&self) -> ErrorResponse<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> PartialEq for ErrorResponse<'a>
[src]
fn eq(&self, __arg_0: &ErrorResponse<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ErrorResponse<'a>) -> bool
[src]
This method tests for !=
.