pub struct Pane {
pub id: usize,
pub title: String,
pub buffer: Arc<Mutex<TerminalBuffer>>,
pub x: u16,
pub y: u16,
pub width: u16,
pub height: u16,
writer: Option<Box<dyn Write + Send>>,
active: bool,
}Fields§
§id: usize§title: String§buffer: Arc<Mutex<TerminalBuffer>>§x: u16§y: u16§width: u16§height: u16§writer: Option<Box<dyn Write + Send>>§active: boolImplementations§
Source§impl Pane
impl Pane
pub fn new( id: usize, shell: &str, x: u16, y: u16, width: u16, height: u16, scrollback: usize, ) -> Self
Sourcepub fn send_input(&mut self, data: &[u8])
pub fn send_input(&mut self, data: &[u8])
Write raw bytes to the PTY stdin (user keystrokes, paste, etc.).
pub fn resize(&mut self, width: u16, height: u16)
pub fn is_active(&self) -> bool
Auto Trait Implementations§
impl Freeze for Pane
impl !RefUnwindSafe for Pane
impl Send for Pane
impl !Sync for Pane
impl Unpin for Pane
impl UnsafeUnpin for Pane
impl !UnwindSafe for Pane
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.