[−][src]Struct katalyst::Katalyst
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]
&self,
fut: F
) -> Result<()>
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
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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,