pub struct Term {
pending: Vec<u8>,
out: BufWriter<Stdout>,
}Fields§
§pending: Vec<u8>Bytes read from stdin but not yet consumed as a key.
One read can return a whole escape sequence, several keystrokes from a
fast typist, or half of either. Without this, the tail of a burst is
silently dropped.
out: BufWriter<Stdout>Implementations§
Source§impl Term
impl Term
pub fn enter() -> Result<Term>
Sourcepub fn size(&self) -> (usize, usize)
pub fn size(&self) -> (usize, usize)
Visible size, re-read every frame.
The SIGWINCH handler enter installs records nothing;
it exists only to interrupt the poll the draw loop is parked in. This
call is what learns the new size, on the frame that interruption paints.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Term
impl RefUnwindSafe for Term
impl Send for Term
impl Sync for Term
impl Unpin for Term
impl UnsafeUnpin for Term
impl UnwindSafe for Term
Blanket Implementations§
impl<T> Allocation for T
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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].