Lines Matching refs:RCode
166 pub enum RCode { enum
178 impl From<u8> for RCode { implementation
181 0 => RCode::Success, in from()
182 1 => RCode::FormatError, in from()
183 2 => RCode::ServerFailure, in from()
184 3 => RCode::NameError, in from()
185 4 => RCode::NotImplemented, in from()
186 5 => RCode::Refused, in from()
187 _ => RCode::Unsupported, in from()
192 impl fmt::Display for RCode { implementation
195 RCode::Success => "RCodeSuccess", in fmt()
196 RCode::FormatError => "RCodeFormatError", in fmt()
197 RCode::ServerFailure => "RCodeServerFailure", in fmt()
198 RCode::NameError => "RCodeNameError", in fmt()
199 RCode::NotImplemented => "RCodeNotImplemented", in fmt()
200 RCode::Refused => "RCodeRefused", in fmt()
201 RCode::Unsupported => "RCodeUnsupported", in fmt()