[−][src]Struct amiya::Amiya
Implementations
impl<Ex> Amiya<Ex> where
Ex: Default + Send + Sync + 'static,
[src]
Ex: Default + Send + Sync + 'static,
pub fn uses<M: Middleware<Ex> + 'static>(self, middleware: M) -> Self
[src]
pub async fn listen<A: AsyncToSocketAddrs + Debug>(self, addr: A) -> Result<()>
[src]
Trait Implementations
impl<Ex: Default> Default for Amiya<Ex>
[src]
impl<Ex: Send + Sync + 'static> Middleware<Ex> for Amiya<Ex>
[src]
Auto Trait Implementations
impl<Ex = ()> !RefUnwindSafe for Amiya<Ex>
impl<Ex> Send for Amiya<Ex>
impl<Ex> Sync for Amiya<Ex>
impl<Ex> Unpin for Amiya<Ex>
impl<Ex = ()> !UnwindSafe for Amiya<Ex>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<Ex, F> Middleware<Ex> for F where
Ex: Send + Sync + 'static,
F: Fn(Context<Ex>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send + Sync,
[src]
Ex: Send + Sync + 'static,
F: Fn(Context<Ex>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send + Sync,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 Self,
Context<'life1, Ex>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
F: 'async_trait,
[src]
&'life0 Self,
Context<'life1, Ex>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
F: 'async_trait,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,