add missing docs
This commit is contained in:
parent
2d72ee05a7
commit
bf2b320c81
2 changed files with 5 additions and 2 deletions
|
|
@ -32,6 +32,7 @@ pub enum TryFromPacketError {
|
|||
LoadBitmapFailed(#[from] LoadBitmapError),
|
||||
}
|
||||
|
||||
/// An error that can occur when parsing a raw packet as a command
|
||||
#[derive(Debug, PartialEq, thiserror::Error)]
|
||||
pub enum TryIntoPacketError {
|
||||
/// Compression of the payload failed.
|
||||
|
|
|
|||
|
|
@ -21,9 +21,11 @@ pub enum SendError<
|
|||
IntoPacketError: Error + Debug,
|
||||
TransportError: Error + Debug,
|
||||
> {
|
||||
#[error(transparent)]
|
||||
/// An error occurred while sending the bytes via the underlying transport
|
||||
#[error("An error occurred while sending the bytes via the underlying transport: {0:?}")]
|
||||
Transport(TransportError),
|
||||
#[error(transparent)]
|
||||
/// An error occurred while preparing the data to send
|
||||
#[error("An error occurred while preparing the data to send: {0:?}")]
|
||||
IntoPacket(IntoPacketError),
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue