[−][src]Struct scrappy_framed::FramedRoute
Resource route definition
Route uses builder-like pattern for configuration. If handler is not explicitly set, default 404 Not Found handler is used.
Methods
impl<Io, S> FramedRoute<Io, S>
[src]
pub fn new(pattern: &str) -> Self
[src]
pub fn get(path: &str) -> FramedRoute<Io, S>
[src]
pub fn post(path: &str) -> FramedRoute<Io, S>
[src]
pub fn put(path: &str) -> FramedRoute<Io, S>
[src]
pub fn delete(path: &str) -> FramedRoute<Io, S>
[src]
pub fn method(self, method: Method) -> Self
[src]
pub fn to<F, R, E>(self, handler: F) -> FramedRoute<Io, S, F, R, E> where
F: FnMut(FramedRequest<Io, S>) -> R,
R: Future<Output = Result<(), E>> + 'static,
E: Debug,
[src]
F: FnMut(FramedRequest<Io, S>) -> R,
R: Future<Output = Result<(), E>> + 'static,
E: Debug,
Auto Trait Implementations
impl<Io, S, F, R, E> RefUnwindSafe for FramedRoute<Io, S, F, R, E> where
E: RefUnwindSafe,
F: RefUnwindSafe,
Io: RefUnwindSafe,
R: RefUnwindSafe,
S: RefUnwindSafe,
E: RefUnwindSafe,
F: RefUnwindSafe,
Io: RefUnwindSafe,
R: RefUnwindSafe,
S: RefUnwindSafe,
impl<Io, S, F, R, E> Send for FramedRoute<Io, S, F, R, E> where
E: Send,
F: Send,
Io: Send,
R: Send,
S: Send,
E: Send,
F: Send,
Io: Send,
R: Send,
S: Send,
impl<Io, S, F, R, E> Sync for FramedRoute<Io, S, F, R, E> where
E: Sync,
F: Sync,
Io: Sync,
R: Sync,
S: Sync,
E: Sync,
F: Sync,
Io: Sync,
R: Sync,
S: Sync,
impl<Io, S, F, R, E> Unpin for FramedRoute<Io, S, F, R, E> where
E: Unpin,
F: Unpin,
Io: Unpin,
R: Unpin,
S: Unpin,
E: Unpin,
F: Unpin,
Io: Unpin,
R: Unpin,
S: Unpin,
impl<Io, S, F, R, E> UnwindSafe for FramedRoute<Io, S, F, R, E> where
E: UnwindSafe,
F: UnwindSafe,
Io: UnwindSafe,
R: UnwindSafe,
S: UnwindSafe,
E: UnwindSafe,
F: UnwindSafe,
Io: UnwindSafe,
R: UnwindSafe,
S: UnwindSafe,
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<T> Same<T> for T
type Output = T
Should always be Self
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>,