[−][src]Struct replicante_util_iron::RootedRouter
Specialised router to mount endpoints under a fixed root.
The root's prefix is automatically prepended to the URI handlers are
registered with as well as the the Iron ::router::Router
id.
Implementations
impl<'a> RootedRouter<'a>
[src]
pub fn delete<S: AsRef<str>, H: Handler, I: AsRef<str>>(
&mut self,
glob: S,
handler: H,
route_id: I
) -> &mut RootedRouter<'a>
[src]
&mut self,
glob: S,
handler: H,
route_id: I
) -> &mut RootedRouter<'a>
Like route, but specialized to the DELETE
method.
pub fn get<S: AsRef<str>, H: Handler, I: AsRef<str>>(
&mut self,
glob: S,
handler: H,
route_id: I
) -> &mut RootedRouter<'a>
[src]
&mut self,
glob: S,
handler: H,
route_id: I
) -> &mut RootedRouter<'a>
Like route, but specialized to the GET
method.
pub fn post<S: AsRef<str>, H: Handler, I: AsRef<str>>(
&mut self,
glob: S,
handler: H,
route_id: I
) -> &mut RootedRouter<'a>
[src]
&mut self,
glob: S,
handler: H,
route_id: I
) -> &mut RootedRouter<'a>
Like route, but specialized to the POST
method.
pub fn put<S: AsRef<str>, H: Handler, I: AsRef<str>>(
&mut self,
glob: S,
handler: H,
route_id: I
) -> &mut RootedRouter<'a>
[src]
&mut self,
glob: S,
handler: H,
route_id: I
) -> &mut RootedRouter<'a>
Like route, but specialized to the PUT
method.
pub fn route<S: AsRef<str>, H: Handler, I: AsRef<str>>(
&mut self,
method: Method,
glob: S,
handler: H,
route_id: I
) -> &mut RootedRouter<'a>
[src]
&mut self,
method: Method,
glob: S,
handler: H,
route_id: I
) -> &mut RootedRouter<'a>
Wrapper for Router::route
with additional features.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for RootedRouter<'a>
impl<'a> Send for RootedRouter<'a>
impl<'a> Sync for RootedRouter<'a>
impl<'a> Unpin for RootedRouter<'a>
impl<'a> !UnwindSafe for RootedRouter<'a>
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> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?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<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> UnsafeAny for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,