[][src]Struct ice_threads::Melter

pub struct Melter { /* fields omitted */ }

Ice Melter.

This struct is responsible for queueing all the Ice to be molten using it's Heaters.

Methods

impl Melter[src]

pub fn new(count: usize) -> Melter[src]

Creates a new Ice Melter with specified amount of Heaters.

Panics

When count is zero.

#[must_use]
pub fn melt<I, W>(&self, ice: I) -> Bottle<W> where
    I: FnOnce() -> W + Send + 'static,
    W: Send + 'static, 
[src]

Enqueues Ice to be molten.

Returns a Bottle which will be filled with Water coming from given Ice.

Panics

When all Heaters fail.

This should generally be impossible unless the user's code happens to have a bug, panics and doesn't open the poisoned Bottle that would stop the process earlier.

Trait Implementations

impl Drop for Melter[src]

fn drop(&mut self)[src]

Gracefully powers down all Heaters.

Auto Trait Implementations

impl Send for Melter

impl !Sync for Melter

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]