pub struct ScriptController;Implementations§
Source§impl ScriptController
impl ScriptController
pub const SCRIPT_FILEPATH: &'static str = "script.js"
pub fn is_matching_request(request: &Request) -> bool
pub fn process_request(_request: &Request, response: Response) -> Response
Trait Implementations§
Source§impl Controller for ScriptController
impl Controller for ScriptController
Source§fn is_matching(request: &Request, _connection: &ConnectionInfo) -> bool
fn is_matching(request: &Request, _connection: &ConnectionInfo) -> bool
Returns
true if this controller should handle the given request.
Called in declaration order; the first match wins.Auto Trait Implementations§
impl Freeze for ScriptController
impl RefUnwindSafe for ScriptController
impl Send for ScriptController
impl Sync for ScriptController
impl Unpin for ScriptController
impl UnsafeUnpin for ScriptController
impl UnwindSafe for ScriptController
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more