pub(crate) struct TerminalResizer(Arc<Mutex<Tty>>);Expand description
Resizes a Terminal, see TerminalResizer::resize.
Tuple Fields§
§0: Arc<Mutex<Tty>>Implementations§
Source§impl TerminalResizer
impl TerminalResizer
Sourcepub(crate) fn resize(&self, width: u16, height: u16) -> Result<()>
pub(crate) fn resize(&self, width: u16, height: u16) -> Result<()>
Resize the terminal width and height. Clients send their size right
away, a terminal which the runtime did not connect yet gets it once
it does, before the process usually started, see
Terminal::connect.
Sourcefn connect(&self, fd: &Arc<TerminalFd>)
fn connect(&self, fd: &Arc<TerminalFd>)
Take the connected terminal and give it the size requested before. Under the lock, so that a resize which comes meanwhile is not lost.
fn set_size(fd: &TerminalFd, width: u16, height: u16) -> Result<()>
Trait Implementations§
Source§impl Clone for TerminalResizer
impl Clone for TerminalResizer
Source§impl Debug for TerminalResizer
impl Debug for TerminalResizer
Auto Trait Implementations§
impl Freeze for TerminalResizer
impl RefUnwindSafe for TerminalResizer
impl Send for TerminalResizer
impl Sync for TerminalResizer
impl Unpin for TerminalResizer
impl UnsafeUnpin for TerminalResizer
impl UnwindSafe for TerminalResizer
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].