Struct tsukuyomi::app::builder::Scope   [−][src]
pub struct Scope<'a> { /* fields omitted */ }A proxy object for configuration of a scope.
Methods
impl<'a> Scope<'a>[src] 
impl<'a> Scope<'a>ⓘImportant traits for &'a mut Rpub fn route(
    &mut self, 
    config: impl RouteConfig
) -> &mut Self[src] 
ⓘImportant traits for &'a mut R
pub fn route(
    &mut self, 
    config: impl RouteConfig
) -> &mut SelfAdds a route into the current scope, with the provided configuration.
ⓘImportant traits for &'a mut Rpub fn scope(
    &mut self, 
    config: impl ScopeConfig
) -> &mut Self[src] 
ⓘImportant traits for &'a mut R
pub fn scope(
    &mut self, 
    config: impl ScopeConfig
) -> &mut SelfCreate a new sub-scope with the provided configuration.
ⓘImportant traits for &'a mut Rpub fn mount(
    &mut self, 
    prefix: &str, 
    f: impl FnOnce(&mut Scope)
) -> &mut Self[src] 
ⓘImportant traits for &'a mut R
pub fn mount(
    &mut self, 
    prefix: &str, 
    f: impl FnOnce(&mut Scope)
) -> &mut SelfCreate a new scope mounted to the certain URI.
This method is a shortcut of Scope::scope(Mount(prefix, f)).
ⓘImportant traits for &'a mut Rpub fn set<T>(&mut self, value: T) -> &mut Self where
    T: Send + Sync + 'static, [src] 
ⓘImportant traits for &'a mut R
pub fn set<T>(&mut self, value: T) -> &mut Self where
    T: Send + Sync + 'static, Adds a scope-local variable into the application.
ⓘImportant traits for &'a mut Rpub fn prefix(&mut self, prefix: &str) -> &mut Self[src] 
ⓘImportant traits for &'a mut R
pub fn prefix(&mut self, prefix: &str) -> &mut SelfModifies the prefix URI of current scope.
ⓘImportant traits for &'a mut Rpub fn modifier(
    &mut self, 
    modifier: impl Modifier + Send + Sync + 'static
) -> &mut Self[src] 
ⓘImportant traits for &'a mut R
pub fn modifier(
    &mut self, 
    modifier: impl Modifier + Send + Sync + 'static
) -> &mut SelfRegister a Modifier into the current scope.