Struct mcfly::history::History [−][src]
pub struct History { pub connection: Connection, pub network: Network, }
Fields
connection: Connection
network: Network
Implementations
pub fn add(
&self,
command: &str,
session_id: &str,
dir: &str,
when_run: &Option<i64>,
exit_code: Option<i32>,
old_dir: &Option<String>
)
pub fn build_cache_table(
&self,
dir: &str,
session_id: &Option<String>,
start_time: Option<i64>,
end_time: Option<i64>,
now: Option<i64>,
limit: Option<i64>
)
pub fn commands(
&self,
session_id: &Option<String>,
num: i16,
offset: u16,
random: bool
) -> Vec<Command>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for History
impl UnwindSafe for History