Skip to main content

RemotePane

Struct RemotePane 

Source
pub struct RemotePane {
    pub id: u64,
    /* private fields */
}

Fields§

§id: u64

Implementations§

Source§

impl RemotePane

Source

pub fn new( id: u64, client: Option<Arc<RpcIpcClient>>, rt: Handle, cols: u16, rows: u16, push_rx: Receiver<Vec<u8>>, input_writer: Box<dyn FnMut(&[u8]) -> Result<()> + Send>, ) -> Self

Source

pub fn drain_pushes(&mut self) -> bool

Drain pushes from the server, updating the parser. Returns true if at least one chunk was processed (screen may have changed).

Trait Implementations§

Source§

impl Pane for RemotePane

Source§

fn exit_status(&self) -> Option<ExitStatus>

Source§

fn resize(&mut self, size: PtySize) -> PtyResult<()>

Source§

fn has_exited(&mut self) -> bool

Source§

fn alternate_screen(&mut self) -> bool

Source§

fn scrollback(&mut self) -> usize

Source§

fn set_scrollback(&mut self, _rows: usize)

Source§

fn scrollback_len(&self) -> usize

Source§

fn write_bytes(&mut self, input: &[u8]) -> Result<()>

Source§

fn shared_parser(&mut self) -> Arc<Mutex<Parser>>

Access the shared parser for zero-copy rendering.
Source§

fn max_scrollback(&mut self) -> usize

Source§

fn take_exit_status(&mut self) -> Option<ExitStatus>

Source§

fn bytes_received(&self) -> usize

Source§

fn last_bytes_text(&self) -> String

Source§

fn kill_child(&mut self) -> PtyResult<()>

Source§

fn take_pending_title(&mut self) -> Option<String>

Source§

fn set_status_callback( &mut self, _cb: Option<Box<dyn Fn(PtyStatus) + Sync + Send>>, )

Set a status callback invoked on PTY data or exit.
Source§

fn take_parts( &mut self, ) -> Option<(Box<dyn Child + Sync + Send>, JoinHandle<()>)>

Extract the child process and reader thread handle so they can be moved into the Reaper for async teardown. Returns None by default (for mock panes). The real Pty impl returns (child, reader_handle).
Source§

fn take_dirty(&self) -> bool

Reset the dirty flag. Returns true if dirty was set.
Source§

fn clear_dirty_and_notify(&self)

Clear the dirty flag and notify the reader thread via Condvar. This is the primary mechanism for I/O burst budget backpressure.
Source§

fn sync_screen(&mut self)

Sync dirty state and handle DSR/foreground polling. Call before locking the parser for cell access.
Source§

fn requires_app_routing(&self) -> bool

Unified routing decision: returns true if keyboard/mouse inputs should be forwarded to the PTY child rather than intercepted by the window manager’s native scrollbar. Thread-safe: no mutable borrow needed (atomic reads).
Source§

fn is_application_cursor_keys_active(&self) -> bool

Returns true when DECCKM (DECSET 1 / Application Cursor Keys) is active. When true, unmodified arrow keys must use SS3 (\eOA) instead of CSI (\e[A).

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> Downcast for T
where T: Any,

Source§

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.
Source§

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.
Source§

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.
Source§

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.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more