add missing docs

This commit is contained in:
Vinzenz Schroeter 2025-03-25 18:47:53 +01:00
parent 2d72ee05a7
commit bf2b320c81
2 changed files with 5 additions and 2 deletions

View file

@ -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.

View file

@ -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),
}