ErrorKind

ErrorKind (I/O 오류 종류)

I/O 오류의 종류를 나타내는 열거형이에요.

출처: Rust 공식 문서

본문

I/O 오류가 발생한 원인의 종류를 나타내는 열거형이에요. 일반적으로 io::Error::kind() 로 얻을 수 있어요. NotFound, PermissionDenied, AlreadyExists 등이 있어요.

pub enum ErrorKind { Show 42 variants NotFound, PermissionDenied, ConnectionRefused, ConnectionReset, HostUnreachable, NetworkUnreachable, ConnectionAborted, NotConnected, AddrInUse, AddrNotAvailable, NetworkDown, BrokenPipe, AlreadyExists, WouldBlock, NotADirectory, IsADirectory, DirectoryNotEmpty, ReadOnlyFilesystem, FilesystemLoop, StaleNetworkFileHandle, InvalidInput, InvalidData, TimedOut, WriteZero, StorageFull, NotSeekable, QuotaExceeded, FileTooLarge, ResourceBusy, ExecutableFileBusy, Deadlock, CrossesDevices, TooManyLinks, InvalidFilename, ArgumentListTooLong, Interrupted, Unsupported, UnexpectedEof, OutOfMemory, InProgress, TooManyOpenFiles, Other, }

더 알아보기 (Learn more)

Rust 공식 문서