pub enum VocoderError {
InvalidPolicy {
field: &'static str,
reason: &'static str,
},
OutputLimit {
required: usize,
maximum: usize,
},
SizeOverflow,
Stft(AudioTransformError),
Signal(SignalError),
}Expand description
Invalid phase-vocoder policy or delegated STFT/signal failure.
Variants§
InvalidPolicy
A named policy field violated its finite definition.
OutputLimit
Requested output exceeded its explicit sample bound.
SizeOverflow
Output coordinate or allocation arithmetic overflowed.
Stft(AudioTransformError)
Existing audio-domain STFT rejected the request.
Signal(SignalError)
Existing generic transform or phase owner rejected the request.
Trait Implementations§
Source§impl Clone for VocoderError
impl Clone for VocoderError
Source§fn clone(&self) -> VocoderError
fn clone(&self) -> VocoderError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VocoderError
impl Debug for VocoderError
Source§impl Display for VocoderError
impl Display for VocoderError
Source§impl Error for VocoderError
impl Error for VocoderError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Source§impl From<AudioTransformError> for VocoderError
impl From<AudioTransformError> for VocoderError
Source§fn from(source: AudioTransformError) -> Self
fn from(source: AudioTransformError) -> Self
Converts to this type from the input type.
Source§impl From<SignalError> for VocoderError
impl From<SignalError> for VocoderError
Source§fn from(source: SignalError) -> Self
fn from(source: SignalError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for VocoderError
impl PartialEq for VocoderError
impl StructuralPartialEq for VocoderError
Auto Trait Implementations§
impl Freeze for VocoderError
impl RefUnwindSafe for VocoderError
impl Send for VocoderError
impl Sync for VocoderError
impl Unpin for VocoderError
impl UnsafeUnpin for VocoderError
impl UnwindSafe for VocoderError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more