Struct spectrusty_audio::host::AudioHandleError
source · pub struct AudioHandleError { /* private fields */ }
Expand description
A common error type returned by all audio handle implementation methods in this module.
Implementations§
source§impl AudioHandleError
impl AudioHandleError
sourcepub fn kind(&self) -> AudioHandleErrorKind
pub fn kind(&self) -> AudioHandleErrorKind
Returns the corresponding category for this error.
Trait Implementations§
source§impl Clone for AudioHandleError
impl Clone for AudioHandleError
source§fn clone(&self) -> AudioHandleError
fn clone(&self) -> AudioHandleError
Returns a copy of the value. Read more
1.0.0 · 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 AudioHandleError
impl Debug for AudioHandleError
source§impl Display for AudioHandleError
impl Display for AudioHandleError
source§impl Error for AudioHandleError
impl Error for AudioHandleError
1.30.0 · 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()
source§impl From<(String, AudioHandleErrorKind)> for AudioHandleError
impl From<(String, AudioHandleErrorKind)> for AudioHandleError
source§fn from((description, kind): (String, AudioHandleErrorKind)) -> Self
fn from((description, kind): (String, AudioHandleErrorKind)) -> Self
Converts to this type from the input type.
source§impl From<BuildStreamError> for AudioHandleError
impl From<BuildStreamError> for AudioHandleError
source§fn from(e: BuildStreamError) -> Self
fn from(e: BuildStreamError) -> Self
Converts to this type from the input type.
source§impl From<DefaultStreamConfigError> for AudioHandleError
impl From<DefaultStreamConfigError> for AudioHandleError
source§fn from(e: DefaultStreamConfigError) -> Self
fn from(e: DefaultStreamConfigError) -> Self
Converts to this type from the input type.
source§impl From<PauseStreamError> for AudioHandleError
impl From<PauseStreamError> for AudioHandleError
source§fn from(e: PauseStreamError) -> Self
fn from(e: PauseStreamError) -> Self
Converts to this type from the input type.
source§impl From<PlayStreamError> for AudioHandleError
impl From<PlayStreamError> for AudioHandleError
source§fn from(e: PlayStreamError) -> Self
fn from(e: PlayStreamError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for AudioHandleError
impl Send for AudioHandleError
impl Sync for AudioHandleError
impl Unpin for AudioHandleError
impl UnwindSafe for AudioHandleError
Blanket Implementations§
source§impl<S, T> IntoSample<S> for Twhere
S: FromSample<T>,
impl<S, T> IntoSample<S> for Twhere
S: FromSample<T>,
source§fn into_sample(self) -> S
fn into_sample(self) -> S
Convert to
S
a sample type from self
.