[−][src]Struct tray_rust::exec::distrib::master::Master
The Master organizes the set of Worker processes and instructions them what parts of the scene to render. As workers report results the master collects them and saves out the PNG once all workers have reported the frame.
Methods
impl Master
[src]
pub fn start_workers(
workers: Vec<String>,
config: Config,
img_dim: (usize, usize)
) -> (Master, EventLoop<Master>)
[src]
workers: Vec<String>,
config: Config,
img_dim: (usize, usize)
) -> (Master, EventLoop<Master>)
Create a new master that will contact the worker nodes passed and send instructions on what parts of the scene to start rendering
Trait Implementations
impl Handler for Master
[src]
type Timeout = ()
type Message = ()
fn ready(
&mut self,
event_loop: &mut EventLoop<Master>,
token: Token,
event: EventSet
)
[src]
&mut self,
event_loop: &mut EventLoop<Master>,
token: Token,
event: EventSet
)
fn notify(&mut self, event_loop: &mut EventLoop<Self>, msg: Self::Message)
[src]
fn timeout(&mut self, event_loop: &mut EventLoop<Self>, timeout: Self::Timeout)
[src]
fn interrupted(&mut self, event_loop: &mut EventLoop<Self>)
[src]
fn tick(&mut self, event_loop: &mut EventLoop<Self>)
[src]
Auto Trait Implementations
impl Send for Master
impl !Sync for Master
impl Unpin for Master
impl UnwindSafe for Master
impl !RefUnwindSafe for Master
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,