pub struct Stream(/* private fields */);Available on crate feature
cgb only.Expand description
A stream under way, one block per HBlank.
Until it is done or stopped, the program must not:
- change the video memory bank, which rules out
with_vram_bankandedit_attrs; - unmap the bank the source sits in;
- execute
halt, which stops the copier until the CPU wakes. That includesVblank::wait, so a frame paced with it will barely advance the transfer.
Dropping this leaves the transfer running. Nothing is torn by that; the obligations above simply go unwatched.
Implementations§
Auto Trait Implementations§
impl BankSafe for Stream
impl Freeze for Stream
impl RefUnwindSafe for Stream
impl Send for Stream
impl Sync for Stream
impl Unpin for Stream
impl UnsafeUnpin for Stream
impl UnwindSafe for Stream
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