[][src]Struct epkard::RunBuilder

pub struct RunBuilder<'a, N, F = CliFrontend> where
    N: Node,
    F: Frontend
{ /* fields omitted */ }

A builder that runs the narrative when it is dropped

Methods

impl<'a, N, F> RunBuilder<'a, N, F> where
    N: Node,
    F: Frontend
[src]

pub fn command<C, G>(self, names: C, command: G) -> Self where
    C: CommandNames,
    G: Fn(&mut Runtime<N, F>) -> Interrupt<N> + 'static, 
[src]

Add a global command to the Runtime

Global commands can always be entered by the user.

Some examples of global commands might be:

  • save
  • inventory / inv
  • look around

Trait Implementations

impl<'a, N, F> Drop for RunBuilder<'a, N, F> where
    N: Node,
    F: Frontend
[src]

Auto Trait Implementations

impl<'a, N, F = CliFrontend> !Sync for RunBuilder<'a, N, F>

impl<'a, N, F = CliFrontend> !Send for RunBuilder<'a, N, F>

impl<'a, N, F> Unpin for RunBuilder<'a, N, F> where
    F: Unpin,
    N: Unpin,
    <N as Node>::State: Unpin

impl<'a, N, F = CliFrontend> !RefUnwindSafe for RunBuilder<'a, N, F>

impl<'a, N, F = CliFrontend> !UnwindSafe for RunBuilder<'a, N, F>

Blanket Implementations

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

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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