mirror of https://github.com/xvxx/phetch
add encoding() to View trait
parent
41324a0ff3
commit
5df09aead9
@ -1,7 +1,14 @@
|
||||
/// Encoding of Gopher response. Only UTF8 and CP437 are supported.
|
||||
pub(crate) enum Encoding {
|
||||
#[derive(Copy, Clone)]
|
||||
pub enum Encoding {
|
||||
/// Unicode
|
||||
UTF8,
|
||||
/// https://en.wikipedia.org/wiki/Code_page_437
|
||||
CP437,
|
||||
}
|
||||
|
||||
impl Default for Encoding {
|
||||
fn default() -> Self {
|
||||
Encoding::UTF8
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue