Struct Mp3Failure
pub struct Mp3Failure<W> { /* private fields */ }Expand description
A failed constructor/finalization still owns its partial sink and first error. Counts distinguish accepted source frames, final file-region bytes and actual sink writes, including the rewritten first frame. No automatic restore/retry/finalization.
Implementations§
§impl<W> Mp3Failure<W>
impl<W> Mp3Failure<W>
pub fn error(&self) -> &Error
pub fn accepted_frames(&self) -> u64
pub fn file_bytes(&self) -> u64
pub fn written_bytes(&self) -> u64
pub fn into_parts(self) -> (W, Error)
Trait Implementations§
§impl<W: Debug> Debug for Mp3Failure<W>
impl<W: Debug> Debug for Mp3Failure<W>
§impl<W> Display for Mp3Failure<W>
impl<W> Display for Mp3Failure<W>
§impl<W: Debug> Error for Mp3Failure<W>
impl<W: Debug> Error for Mp3Failure<W>
§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 · §fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()