]>
git.proxmox.com Git - pxar.git/blob - src/macros.rs
1 /// Like failure's `format_err` but producing a `std::io::Error`.
2 macro_rules
! io_format_err
{
4 ::std
::io
::Error
::new(::std
::io
::ErrorKind
::Other
, format
!($
($msg
)+))
8 /// Like failure's `bail` but producing a `std::io::Error`.
11 return Err(io_format_err
!($
($msg
)+));
15 /// Our dependency on `futures` is optional.
19 std
::task
::Poll
::Ready(r
) => r
,
20 std
::task
::Poll
::Pending
=> return std
::task
::Poll
::Pending
,