pub(crate) struct Worker {
strip_generator: StripGenerator,
strip_storage: StripStorage,
thread_id: u8,
}Fields§
§strip_generator: StripGenerator§strip_storage: StripStorage§thread_id: u8Implementations§
Source§impl Worker
impl Worker
pub(crate) fn new(width: u16, height: u16, thread_id: u8, level: Level) -> Self
pub(crate) fn init(&mut self, alphas: Vec<u8>)
pub(crate) fn thread_id(&self) -> u8
pub(crate) fn reset(&mut self, width: u16, height: u16)
pub(crate) fn run_render_task( &mut self, render_task: RenderTask, result_sender: &mut Sender<RecordedCommandTask>, )
pub(crate) fn finalize(&mut self) -> Vec<u8> ⓘ
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Worker
impl RefUnwindSafe for Worker
impl Send for Worker
impl Sync for Worker
impl Unpin for Worker
impl UnsafeUnpin for Worker
impl UnwindSafe for Worker
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more