[][src]Struct deoxy::Protocol

pub struct Protocol {
    pub steps: Vec<Step>,
}

A high-level description of a series of actions to be taken.

This is what the end user will feed in (by way of a form).

Fields

steps: Vec<Step>

The component steps of the protocol.

Methods

impl Protocol[src]

pub fn with_step(step: Step) -> Protocol[src]

Creates a single-step protocol.

pub fn validate(&self) -> Result<(), ValidateError>[src]

Ensures the validity of the protocol.

This method is called automatically during the conversion to Program, but it can also be useful to call it manually.

Details

All protocols should end with a perfusion (in the final solution, usually water) for an unspecified duration (i.e. a bath). If this is not the case, something's wrong with the protocol and we should refuse to run it.

pub fn as_program(&self) -> Result<Program, ValidateError>[src]

Attempts to convert the protocol to a program.

The protocol will first be validated.

Trait Implementations

impl Clone for Protocol[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Serialize for Protocol[src]

impl Debug for Protocol[src]

impl<'de> Deserialize<'de> for Protocol[src]

Auto Trait Implementations

impl Send for Protocol

impl Sync for Protocol

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self