INNER CODE UNIT · Rust

variant_name

FooIbar/EhViewer · app/src/main/rust/src/lib.rs:84

    fn variant_name(&self) -> &'static str {
        match self {
            EhError::NoHits => "NoHits",
            EhError::NoWatched => "NoWatched",
            EhError::NeedLogin => "NeedLogin",
            EhError::NoHathClient => "NoHathClient",
            EhError::InsufficientFunds => "InsufficientFunds",
            EhError::GalleryUnavailable(_) => "GalleryUnavailable",
            EhError::IpBanned(_) => "IpBanned",
            EhError::Error(_) => "Error",
        }
    }
}

impl Serialize for EhError {
    fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
    where
        S: Serializer,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…