pub struct StyleController;Implementations§
Source§impl StyleController
impl StyleController
pub const STYLE_FILEPATH: &'static str = "style.css"
pub fn is_matching_request(request: &Request) -> bool
pub fn process_request(_request: &Request, response: Response) -> Response
Trait Implementations§
Source§impl Controller for StyleController
impl Controller for StyleController
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 StyleController
impl RefUnwindSafe for StyleController
impl Send for StyleController
impl Sync for StyleController
impl Unpin for StyleController
impl UnsafeUnpin for StyleController
impl UnwindSafe for StyleController
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