pub struct SlackRuntime { /* private fields */ }Expand description
A started plugin.
Implementations§
Source§impl SlackRuntime
impl SlackRuntime
Sourcepub fn client(&self) -> SlackClient
pub fn client(&self) -> SlackClient
The Web API client.
Sourcepub fn metrics(&self) -> Arc<SlackMetrics> ⓘ
pub fn metrics(&self) -> Arc<SlackMetrics> ⓘ
The metrics.
Sourcepub fn health(&self) -> Arc<SlackHealth> ⓘ
pub fn health(&self) -> Arc<SlackHealth> ⓘ
The health indicator.
Sourcepub fn router(&self) -> Router
pub fn router(&self) -> Router
The three routes, relative to the base path. Use it in tests, or to mount the routes yourself.
Sourcepub async fn shutdown(&self)
pub async fn shutdown(&self)
Stops new handler runs and waits for running handlers, up to
drain_timeout_secs. After this, the routes reply 503.
In an app, autumn calls this at shutdown. autumn gives all shutdown
hooks [server] shutdown_timeout_secs in total, so the wait can be
shorter than drain_timeout_secs.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SlackRuntime
impl !UnwindSafe for SlackRuntime
impl Forget for SlackRuntime
impl Freeze for SlackRuntime
impl Send for SlackRuntime
impl Sync for SlackRuntime
impl Unpin for SlackRuntime
impl UnsafeUnpin for SlackRuntime
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> Scoped for T
impl<T> Scoped for T
Source§fn scope(ctx: &PolicyContext) -> ScopeQuery<'_, Self>
fn scope(ctx: &PolicyContext) -> ScopeQuery<'_, Self>
Open a deferred
ScopeQuery for this type. Resolves the
registered scope at .load() time, not here.