[][src]Struct katalyst::Katalyst

pub struct Katalyst { /* fields omitted */ }

This is the core structure for the API Gateway.

Methods

impl Katalyst[src]

pub fn update_instance(&self, new_instance: Instance) -> Result<()>[src]

Update the running configuration of the API Gateway.

pub fn get_instance(&self) -> Result<Arc<Instance>>[src]

Get a copy of the currently running API Gateway configuration.

pub fn spawn<F: Future<Item = (), Error = ()> + Send + 'static>(
    &self,
    fut: F
) -> Result<()>
[src]

Spawn a future on the runtime backing Katalyst

pub fn wait(&self) -> Result<()>[src]

Register OS signals and respond to them. This method will not return unless a SIGINT, SIGTERM, or SIGQUIT is received.

pub fn start(config_file: &str) -> Result<Arc<Katalyst>>[src]

This is a convenience method to start an instance of Katalyst from a configuration file. This will load the configuration from the specified file and run the gateway until an OS signal is received.

Trait Implementations

impl Default for Katalyst[src]

impl Debug for Katalyst[src]

Auto Trait Implementations

impl Send for Katalyst

impl !Unpin for Katalyst

impl Sync for Katalyst

impl !UnwindSafe for Katalyst

impl !RefUnwindSafe for Katalyst

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<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]

impl<T> Erased for T