Lines Matching refs:ErrorCode
143 impl From<std::io::Error> for types::ErrorCode { implementation
149 impl From<&std::io::Error> for types::ErrorCode { implementation
176 impl From<Errno> for types::ErrorCode { implementation
182 impl From<&Errno> for types::ErrorCode { implementation
225 impl From<crate::sockets::util::ErrorCode> for types::ErrorCode { implementation
226 fn from(code: crate::sockets::util::ErrorCode) -> Self { in from()
228 crate::sockets::util::ErrorCode::Unknown => Self::Other(None), in from()
229 crate::sockets::util::ErrorCode::AccessDenied => Self::AccessDenied, in from()
230 crate::sockets::util::ErrorCode::NotSupported => Self::NotSupported, in from()
231 crate::sockets::util::ErrorCode::InvalidArgument => Self::InvalidArgument, in from()
232 crate::sockets::util::ErrorCode::OutOfMemory => Self::OutOfMemory, in from()
233 crate::sockets::util::ErrorCode::Timeout => Self::Timeout, in from()
234 crate::sockets::util::ErrorCode::InvalidState => Self::InvalidState, in from()
235 crate::sockets::util::ErrorCode::AddressNotBindable => Self::AddressNotBindable, in from()
236 crate::sockets::util::ErrorCode::AddressInUse => Self::AddressInUse, in from()
237 crate::sockets::util::ErrorCode::RemoteUnreachable => Self::RemoteUnreachable, in from()
238 crate::sockets::util::ErrorCode::ConnectionRefused => Self::ConnectionRefused, in from()
239 crate::sockets::util::ErrorCode::ConnectionReset => Self::ConnectionReset, in from()
240 crate::sockets::util::ErrorCode::ConnectionAborted => Self::ConnectionAborted, in from()
241 crate::sockets::util::ErrorCode::DatagramTooLarge => Self::DatagramTooLarge, in from()
242 crate::sockets::util::ErrorCode::NotInProgress => Self::InvalidState, in from()
243 crate::sockets::util::ErrorCode::ConcurrencyConflict => Self::InvalidState, in from()
248 impl From<crate::sockets::util::ErrorCode> for SocketError {
249 fn from(code: crate::sockets::util::ErrorCode) -> Self { in from()
250 SocketError::from(types::ErrorCode::from(code)) in from()