Struct actix_router::RouterBuilder
source · [−]pub struct RouterBuilder<T, U = ()> { /* private fields */ }
Implementations
sourceimpl<T, U> RouterBuilder<T, U>
impl<T, U> RouterBuilder<T, U>
sourcepub fn path<P: IntoPatterns>(
&mut self,
path: P,
resource: T
) -> &mut (ResourceDef, T, Option<U>)
pub fn path<P: IntoPatterns>(
&mut self,
path: P,
resource: T
) -> &mut (ResourceDef, T, Option<U>)
Register resource for specified path.
sourcepub fn prefix(
&mut self,
prefix: &str,
resource: T
) -> &mut (ResourceDef, T, Option<U>)
pub fn prefix(
&mut self,
prefix: &str,
resource: T
) -> &mut (ResourceDef, T, Option<U>)
Register resource for specified path prefix.
sourcepub fn rdef(
&mut self,
rdef: ResourceDef,
resource: T
) -> &mut (ResourceDef, T, Option<U>)
pub fn rdef(
&mut self,
rdef: ResourceDef,
resource: T
) -> &mut (ResourceDef, T, Option<U>)
Register resource for ResourceDef
Auto Trait Implementations
impl<T, U> RefUnwindSafe for RouterBuilder<T, U> where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for RouterBuilder<T, U> where
T: Send,
U: Send,
impl<T, U> Sync for RouterBuilder<T, U> where
T: Sync,
U: Sync,
impl<T, U> Unpin for RouterBuilder<T, U> where
T: Unpin,
U: Unpin,
impl<T, U> UnwindSafe for RouterBuilder<T, U> where
T: UnwindSafe,
U: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more