Enum stegano_core::SteganoError
source · pub enum SteganoError {
UnsupportedMedia,
InvalidAudioMedia,
InvalidImageMedia,
NoSecretData,
ReadError {
source: Error,
},
WriteError {
source: Error,
},
AudioEncodingError,
ImageEncodingError,
AudioCreationError,
IoError(Error),
}
Variants§
UnsupportedMedia
Represents an unsupported carrier media. For example, a Movie file is not supported
InvalidAudioMedia
Represents an invalid carrier audio media. For example, a broken WAV file
InvalidImageMedia
Represents an invalid carrier image media. For example, a broken PNG file
NoSecretData
Represents an unveil of no secret data. For example when a media did not contain any secrets
ReadError
Represents a failure to read from input.
WriteError
Represents a failure to write target file.
AudioEncodingError
Represents a failure when encoding an audio file.
ImageEncodingError
Represents a failure when encoding an image file.
AudioCreationError
Represents a failure when creating an audio file.
IoError(Error)
Represents all other cases of std::io::Error
.
Trait Implementations§
source§impl Debug for SteganoError
impl Debug for SteganoError
source§impl Display for SteganoError
impl Display for SteganoError
source§impl Error for SteganoError
impl Error for SteganoError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()