Lines Matching +full:write +full:- +full:error
3 /// A `dlerror` error.
7 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { in fmt()
13 fn from(value: &CStr) -> Self { in from()
18 /// A Windows API error.
19 pub struct WindowsError(pub(crate) std::io::Error);
22 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { in fmt()
30 pub enum Error { enum
33 /// The source error.
36 /// The `dlopen` call failed and system did not report an error.
40 /// The source error.
43 /// The `dlsym` call failed and system did not report an error.
47 /// The source error.
50 /// The `dlclose` call failed and system did not report an error.
54 /// The source error.
57 /// The `LoadLibraryW` call failed and system did not report an error.
61 /// The source error.
64 /// The `GetModuleHandleExW` call failed and system did not report an error.
68 /// The source error.
71 /// The `GetProcAddressUnknown` call failed and system did not report an error.
75 /// The source error.
78 /// The `FreeLibrary` call failed and system did not report an error.
84 /// The source error.
89 /// The source error.
94 impl std::error::Error for Error { implementation
95 fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { in source()
96 use Error::*; in source()
108 impl std::fmt::Display for Error { implementation
109 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { in fmt()
110 use Error::*; in fmt()
112 DlOpen { ref desc } => write!(f, "{}", desc.0.to_string_lossy()), in fmt()
113 DlOpenUnknown => write!(f, "dlopen failed, but system did not report the error"), in fmt()
114 DlSym { ref desc } => write!(f, "{}", desc.0.to_string_lossy()), in fmt()
115 DlSymUnknown => write!(f, "dlsym failed, but system did not report the error"), in fmt()
116 DlClose { ref desc } => write!(f, "{}", desc.0.to_string_lossy()), in fmt()
117 DlCloseUnknown => write!(f, "dlclose failed, but system did not report the error"), in fmt()
118 LoadLibraryExW { .. } => write!(f, "LoadLibraryExW failed"), in fmt()
120 write!(f, "LoadLibraryExW failed, but system did not report the error"), in fmt()
121 GetModuleHandleExW { .. } => write!(f, "GetModuleHandleExW failed"), in fmt()
123 write!(f, "GetModuleHandleExWUnknown failed, but system did not report the error"), in fmt()
124 GetProcAddress { .. } => write!(f, "GetProcAddress failed"), in fmt()
126 write!(f, "GetProcAddress failed, but system did not report the error"), in fmt()
127 FreeLibrary { .. } => write!(f, "FreeLibrary failed"), in fmt()
129 write!(f, "FreeLibrary failed, but system did not report the error"), in fmt()
130 CreateCString { .. } => write!(f, "could not create a C string from bytes"), in fmt()
132 write!(f, "could not create a C string from bytes with trailing null"), in fmt()
133 IncompatibleSize => write!(f, "requested type cannot possibly work"), in fmt()