mirror of https://github.com/xvxx/phetch
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
323 B
Rust
13 lines
323 B
Rust
use crate::ui;
|
|
use std::fmt;
|
|
|
|
pub trait View: fmt::Display {
|
|
fn respond(&mut self, key: ui::Key) -> ui::Action;
|
|
fn render(&self) -> String;
|
|
fn is_tls(&self) -> bool;
|
|
fn is_tor(&self) -> bool;
|
|
fn url(&self) -> String;
|
|
fn raw(&self) -> String;
|
|
fn term_size(&mut self, cols: usize, rows: usize);
|
|
}
|