Bit more module tidy up

This commit is contained in:
Kyle Sutherland-Cash 2021-05-09 01:48:21 -07:00
parent 74b5479629
commit 0a17323bc4
3 changed files with 19 additions and 15 deletions

View file

@ -1,11 +1,12 @@
use crate::{ use std::sync::mpsc::channel;
common::thread_bus::SenderWithContext, pty::VteBytes, tab::Pane, wasm_vm::PluginInstruction,
};
use crate::panes::{PaneId, PositionAndSize};
use std::time::Instant; use std::time::Instant;
use std::{sync::mpsc::channel, unimplemented}; use std::unimplemented;
use crate::common::thread_bus::SenderWithContext;
use crate::panes::{PaneId, PositionAndSize};
use crate::pty::VteBytes;
use crate::tab::Pane;
use crate::wasm_vm::PluginInstruction;
pub struct PluginPane { pub struct PluginPane {
pub pid: u32, pub pid: u32,

View file

@ -1,15 +1,16 @@
use crate::tab::Pane;
use ::nix::pty::Winsize;
use ::std::os::unix::io::RawFd;
use serde::{Deserialize, Serialize};
use std::fmt::Debug; use std::fmt::Debug;
use std::os::unix::io::RawFd;
use std::time::Instant; use std::time::Instant;
use nix::pty::Winsize;
use serde::{Deserialize, Serialize};
use crate::panes::grid::Grid; use crate::panes::grid::Grid;
use crate::panes::terminal_character::{ use crate::panes::terminal_character::{
CharacterStyles, TerminalCharacter, EMPTY_TERMINAL_CHARACTER, CharacterStyles, TerminalCharacter, EMPTY_TERMINAL_CHARACTER,
}; };
use crate::pty::VteBytes; use crate::pty::VteBytes;
use crate::tab::Pane;
#[derive(PartialEq, Eq, Ord, PartialOrd, Hash, Clone, Copy, Debug, Serialize, Deserialize)] #[derive(PartialEq, Eq, Ord, PartialOrd, Hash, Clone, Copy, Debug, Serialize, Deserialize)]
pub enum PaneId { pub enum PaneId {

View file

@ -1,14 +1,16 @@
//! Error context system based on a thread-local representation of the call stack, itself based on //! Error context system based on a thread-local representation of the call stack, itself based on
//! the instructions that are sent between threads. //! the instructions that are sent between threads.
use super::{thread_bus::ASYNCOPENCALLS, thread_bus::OPENCALLS, ServerInstruction};
use crate::client::ClientInstruction;
use crate::pty::PtyInstruction;
use crate::screen::ScreenInstruction;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use std::fmt::{Display, Error, Formatter}; use std::fmt::{Display, Error, Formatter};
use crate::server::ServerInstruction;
use crate::common::thread_bus::{ASYNCOPENCALLS, OPENCALLS};
use crate::client::ClientInstruction;
use crate::pty::PtyInstruction;
use crate::screen::ScreenInstruction;
/// The maximum amount of calls an [`ErrorContext`] will keep track /// The maximum amount of calls an [`ErrorContext`] will keep track
/// of in its stack representation. This is a per-thread maximum. /// of in its stack representation. This is a per-thread maximum.
const MAX_THREAD_CALL_STACK: usize = 6; const MAX_THREAD_CALL_STACK: usize = 6;