Trait Route

Source
pub trait Route:
    DynClone
    + Sync
    + Send
    + ToResponse {
    // Required methods
    fn get_path(&self) -> &str;
    fn get_method(&self) -> Method;
    fn wildcard(&self) -> Option<String>;
    fn clone_dyn(&self) -> Box<dyn Route>;
}

Required Methods§

Source

fn get_path(&self) -> &str

Source

fn get_method(&self) -> Method

Source

fn wildcard(&self) -> Option<String>

Source

fn clone_dyn(&self) -> Box<dyn Route>

Trait Implementations§

Source§

impl Clone for Box<dyn Route>

Source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementors§