• Home
  • Raw
  • Download

Lines Matching +full:symbolic +full:- +full:ref

16 /// * An indication that a loop occurred when following symbolic links. In this
24 /// [`std::io::Error`]: https://doc.rust-lang.org/stable/std/io/struct.Error.html
25 /// [`io::Result`]: https://doc.rust-lang.org/stable/std/io/type.Result.html
26 /// [impl]: struct.Error.html#impl-From%3CError%3E
45 /// [`std::fs::read_dir`]: https://doc.rust-lang.org/stable/std/fs/fn.read_dir.html
46 pub fn path(&self) -> Option<&Path> { in path()
49 ErrorInner::Io { path: Some(ref path), .. } => Some(path), in path()
50 ErrorInner::Loop { ref child, .. } => Some(child), in path()
64 /// [`None`]: https://doc.rust-lang.org/stable/std/option/enum.Option.html#variant.None
66 pub fn loop_ancestor(&self) -> Option<&Path> { in loop_ancestor()
68 ErrorInner::Loop { ref ancestor, .. } => Some(ancestor), in loop_ancestor()
81 pub fn depth(&self) -> usize { in depth()
90 /// following symbolic links.
137 /// [`None`]: https://doc.rust-lang.org/stable/std/option/enum.Option.html#variant.None
138 /// [`io::Error`]: https://doc.rust-lang.org/stable/std/io/struct.Error.html
139 /// [`From`]: https://doc.rust-lang.org/stable/std/convert/trait.From.html
142 /// [impl]: struct.Error.html#impl-From%3CError%3E
143 pub fn io_error(&self) -> Option<&io::Error> { in io_error()
145 ErrorInner::Io { ref err, .. } => Some(err), in io_error()
154 /// [`io::Error`]: https://doc.rust-lang.org/stable/std/io/struct.Error.html
155 pub fn into_io_error(self) -> Option<io::Error> { in into_io_error()
166 ) -> Self { in from_path()
170 pub(crate) fn from_entry(dent: &DirEntry, err: io::Error) -> Self { in from_entry()
180 pub(crate) fn from_io(depth: usize, err: io::Error) -> Self { in from_io()
188 ) -> Self { in from_loop()
201 fn description(&self) -> &str { in description()
203 ErrorInner::Io { ref err, .. } => err.description(), in description()
208 fn cause(&self) -> Option<&dyn error::Error> { in cause()
212 fn source(&self) -> Option<&(dyn error::Error + 'static)> { in source()
214 ErrorInner::Io { ref err, .. } => Some(err), in source()
221 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
223 ErrorInner::Io { path: None, ref err } => err.fmt(f), in fmt()
224 ErrorInner::Io { path: Some(ref path), ref err } => write!( in fmt()
230 ErrorInner::Loop { ref ancestor, ref child } => write!( in fmt()
250 /// [`io::Error`]: https://doc.rust-lang.org/stable/std/io/struct.Error.html
251 /// ["inner error"]: https://doc.rust-lang.org/std/io/struct.Error.html#method.into_inner
253 fn from(walk_err: Error) -> io::Error { in from()
255 Error { inner: ErrorInner::Io { ref err, .. }, .. } => err.kind(), in from()