]>
git.proxmox.com Git - rustc.git/blob - vendor/tar/src/error.rs
4 use std
::io
::{self, Error}
;
8 desc
: Cow
<'
static, str>,
13 pub fn new(desc
: impl Into
<Cow
<'
static, str>>, err
: Error
) -> TarError
{
21 impl error
::Error
for TarError
{
22 fn description(&self) -> &str {
26 fn source(&self) -> Option
<&(dyn error
::Error
+ '
static)> {
31 impl fmt
::Display
for TarError
{
32 fn fmt(&self, f
: &mut fmt
::Formatter
) -> fmt
::Result
{
37 impl From
<TarError
> for Error
{
38 fn from(t
: TarError
) -> Error
{
39 Error
::new(t
.io
.kind(), t
)