pub struct Backend { /* private fields */ }
Expand description
Puppet backend for testing.
Implementations
sourceimpl Backend
impl Backend
sourcepub fn init(size_op: Option<Vec2>) -> Box<Backend>ⓘNotable traits for Box<F, A>impl<F, A> Future for Box<F, A>where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A>where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
where
Self: Sized,
pub fn init(size_op: Option<Vec2>) -> Box<Backend>ⓘNotable traits for Box<F, A>impl<F, A> Future for Box<F, A>where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A>where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
where
Self: Sized,
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A>where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
Creates new Puppet backend of given or default size.
sourcepub fn current_style(&self) -> Rc<ObservedStyle>
pub fn current_style(&self) -> Rc<ObservedStyle>
Returns current ObservedStyle
sourcepub fn stream(&self) -> Receiver<ObservedScreen>
pub fn stream(&self) -> Receiver<ObservedScreen>
Ouput stream of consecutive frames rendered by Puppet backend
Trait Implementations
sourceimpl Backend for Backend
impl Backend for Backend
sourcefn poll_event(&mut self) -> Option<Event>
fn poll_event(&mut self) -> Option<Event>
Polls the backend for any input. Read more
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 set_effect(&self, effect: Effect)
fn set_effect(&self, effect: Effect)
Enables the given effect. Read more
sourcefn unset_effect(&self, effect: Effect)
fn unset_effect(&self, effect: 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