Skip to main content

App

Struct App 

Source
pub struct App<R> { /* private fields */ }

Implementations§

Source§

impl<R: Runtime> App<R>

Source

pub fn new(cfg: Config, rt: R, store: Arc<MemStore>) -> Arc<Self> ⓘ

Source

pub fn with_auth( cfg: Config, rt: R, store: Arc<MemStore>, auth: Option<Authn>, ) -> Arc<Self> ⓘ

Source

pub fn store(&self) -> Arc<MemStore> ⓘ

Auto Trait Implementations§

§

impl<R> !Freeze for App<R>

§

impl<R> !RefUnwindSafe for App<R>

§

impl<R> !UnwindSafe for App<R>

§

impl<R> Forget for App<R>

§

impl<R> Move for App<R>

§

impl<R> Send for App<R>
where R: Send, Arc<MemStore>: Send, RawVecInner: Send, &'static str: Send, Arc<Vec<PathBuf>>: Send, Mutex<Metrics>: Send, &'static Algorithm: Send, &'static EcdsaSigningAlgorithm: Send, Mutex<HashMap<IpAddr, u32>>: Send,

§

impl<R> Sync for App<R>
where R: Sync, Arc<MemStore>: Sync, RawVecInner: Sync, Arc<Vec<PathBuf>>: Sync, Mutex<Metrics>: Sync, Mutex<HashMap<IpAddr, u32>>: Sync,

§

impl<R> Unpin for App<R>
where R: Unpin, Arc<MemStore>: Unpin, *const u8 is !null: Unpin, &'static str: Unpin, Arc<Vec<PathBuf>>: Unpin, Align4<u32>: Unpin, Align1<u8>: Unpin, &'static Algorithm: Unpin, &'static EcdsaSigningAlgorithm: Unpin,

§

impl<R> UnsafeUnpin for App<R>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more