Lines Matching defs:std
15 use std::ffi::IntoStringError;
16 use std::string::FromUtf8Error;
24 Io(std::io::Error),
36 Reader(Box<dyn std::error::Error>),
76 pub(crate) fn new_reader<E: Into<Box<dyn std::error::Error>>>(e: E) -> Self {
82 fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
166 impl From<std::io::Error> for Error {
167 fn from(e: std::io::Error) -> Self {
172 impl std::error::Error for Error {}
207 use std::ffi::CString;
208 use std::io::ErrorKind;
276 Error::Io(std::io::Error::from(ErrorKind::AddrInUse))
311 Error::Reader(std::io::Error::from(ErrorKind::AddrInUse).into())
364 format!("{}", Error::Io(std::io::Error::from(ErrorKind::AddrInUse))),
377 Error::Reader(std::io::Error::from(ErrorKind::AddrInUse).into())
402 Error::from(std::io::Error::from(ErrorKind::AddrInUse))
411 Error::from(std::str::from_utf8(&str_vec).err().unwrap())