pub struct Backend { /* private fields */ }Expand description
Dummy backend that does nothing and immediately exits.
Mostly used for testing.
Implementations
Trait Implementations
sourceimpl Backend for Backend
impl Backend for Backend
sourcefn has_colors(&self) -> bool
fn has_colors(&self) -> bool
Should return
true if this backend supports colors.sourcefn screen_size(&self) -> Vec2
fn screen_size(&self) -> Vec2
Returns the screen size.
sourcefn prepare_input(&mut self, _input_request: InputRequest)
fn prepare_input(&mut self, _input_request: InputRequest)
Prepares the backend to collect input. Read more
sourcefn start_input_thread(
&mut self,
event_sink: Sender<Option<Event>>,
input_requests: Receiver<InputRequest>
)
fn start_input_thread(
&mut self,
event_sink: Sender<Option<Event>>,
input_requests: Receiver<InputRequest>
)
Starts a thread to collect input and send it to the given channel. Read more
sourcefn set_effect(&self, _: Effect)
fn set_effect(&self, _: Effect)
Enables the given effect.
sourcefn unset_effect(&self, _: Effect)
fn unset_effect(&self, _: Effect)
Disables the given effect.
Auto Trait Implementations
impl RefUnwindSafe for Backend
impl Send for Backend
impl Sync for Backend
impl Unpin for Backend
impl UnwindSafe for Backend
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more