[−][src]Enum flac_bound::FlacEncoderState
State values for a FlacEncoder
.
The encoder's state can be obtained by calling FlacEncoder::state()
.
If the encoder gets into any other state besides Ok
or Uninitialized
, it becomes invalid for encoding and
must be deleted by dropping.
Variants
The encoder is in the normal OK state and samples can be processed.
The encoder is in the uninitialized state; one of the
FlacEncoderConfig::init_*()
functions must be called before samples can be processed.
An error occurred in the underlying Ogg layer.
An error occurred in the underlying verify stream decoder; check
FlacEncoder::verify_decoder_state()
.
The verify decoder detected a mismatch between the original audio signal and the decoded audio signal.
One of the callbacks returned a fatal error.
An I/O error occurred while opening/reading/writing a file. Check errno
.
An error occurred while writing the stream; usually, the write_callback returned an error.
Memory allocation failed.
Trait Implementations
impl Clone for FlacEncoderState
[src]
fn clone(&self) -> FlacEncoderState
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for FlacEncoderState
[src]
impl Debug for FlacEncoderState
[src]
impl Eq for FlacEncoderState
[src]
impl Hash for FlacEncoderState
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Into<u32> for FlacEncoderState
[src]
fn into(self) -> FLAC__StreamEncoderState
[src]
impl Ord for FlacEncoderState
[src]
fn cmp(&self, other: &FlacEncoderState) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<FlacEncoderState> for FlacEncoderState
[src]
fn eq(&self, other: &FlacEncoderState) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<FlacEncoderState> for FlacEncoderState
[src]
fn partial_cmp(&self, other: &FlacEncoderState) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for FlacEncoderState
[src]
impl StructuralPartialEq for FlacEncoderState
[src]
impl TryFrom<u32> for FlacEncoderState
[src]
type Error = ()
The type returned in the event of a conversion error.
fn try_from(raw: FLAC__StreamEncoderState) -> Result<FlacEncoderState, ()>
[src]
Auto Trait Implementations
impl RefUnwindSafe for FlacEncoderState
impl Send for FlacEncoderState
impl Sync for FlacEncoderState
impl Unpin for FlacEncoderState
impl UnwindSafe for FlacEncoderState
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,