pub struct TestSurface { /* private fields */ }Implementations§
Source§impl TestSurface
impl TestSurface
pub fn builder() -> TestSurfaceBuilder
pub fn new() -> (TestSurface, SurfaceSource)
pub fn pump(&mut self) -> Result<&[SurfaceEvent], TestSurfaceError>
pub fn present(&mut self, pattern: Pattern) -> Result<(), TestSurfaceError>
pub fn present_frame( &mut self, pattern: Pattern, frame: impl FnOnce(Frame) -> Frame, ) -> Result<(), TestSurfaceError>
pub fn present_flipped( &mut self, pattern: Pattern, frame: impl FnOnce(Frame) -> Frame, ) -> Result<(), TestSurfaceError>
pub fn request_frame(&self)
pub fn fail(&self, error: SurfaceError)
pub fn id(&self) -> SurfaceId
pub fn config(&self) -> Option<SurfaceConfig>
pub fn cx(&self) -> Option<&SurfaceCx>
pub fn free_buffers(&self) -> usize
pub fn buffers(&self) -> &[SharedBuffer]
pub fn is_detached(&self) -> bool
Auto Trait Implementations§
impl !RefUnwindSafe for TestSurface
impl !UnwindSafe for TestSurface
impl Forget for TestSurface
impl Freeze for TestSurface
impl Move for TestSurface
impl Send for TestSurface
impl Sync for TestSurface
impl Unpin for TestSurface
impl UnsafeUnpin for TestSurface
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