Struct webthing::action::BaseAction[][src]

pub struct BaseAction { /* fields omitted */ }

Basic action implementation.

An Action represents an individual action which can be performed on a thing.

This can easily be used by other actions to handle most of the boring work.

Methods

impl BaseAction
[src]

Create a new BaseAction.

id -- ID of this action name -- name of the action input -- any action inputs

Trait Implementations

impl Action for BaseAction
[src]

An Action represents an individual action on a thing.

Set the prefix of any hrefs associated with this action.

prefix -- the prefix

Get this action's ID.

Get this action's name.

Get this action's href.

Get this action's status.

Get the thing associated with this action.

Get the time the action was requested.

Get the time the action was completed.

Get the inputs for this action.

Set the status of this action.

status -- new status

Start performing the action.

Override this with the code necessary to perform the action.

Override this with the code necessary to cancel the action.

Finish performing the action.

Get the action description. Read more

Auto Trait Implementations

impl Send for BaseAction

impl Sync for BaseAction