Skip to main content

spout_rs/
error.rs

1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum SpoutError {
5    #[error("failed to create Spout sender")]
6    SenderCreationFailed,
7    #[error("failed to create Spout receiver")]
8    ReceiverCreationFailed,
9    #[error("failed to send texture")]
10    TextureSendFailed,
11    #[error("failed to receive texture")]
12    TextureReceiveFailed,
13    #[error("not connected to a sender")]
14    NotConnected,
15}