pub struct PushPort { /* private fields */ }Expand description
The host’s side of a PushBackend: set the time, take the output.
Cheap to clone; every clone is the same port.
Implementations§
Source§impl PushPort
impl PushPort
Sourcepub fn set_elapsed(&self, now: Duration)
pub fn set_elapsed(&self, now: Duration)
Sourcepub fn take_output(&self) -> String
pub fn take_output(&self) -> String
Everything painted since the last call: bytes for the terminal.
Sourcepub fn take_copies(&self) -> Vec<String>
pub fn take_copies(&self) -> Vec<String>
What components put on the clipboard since the last call, in order.
Sourcepub fn set_size(&self, columns: u16, rows: u16)
pub fn set_size(&self, columns: u16, rows: u16)
Keep the screen’s size: the loop learns it from the
Event::Resize the host steps with.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PushPort
impl !Send for PushPort
impl !Sync for PushPort
impl !UnwindSafe for PushPort
impl Freeze for PushPort
impl Unpin for PushPort
impl UnsafeUnpin for PushPort
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