Struct tower_livereload::LiveReload
source · pub struct LiveReload<S, ReqPred = Always, ResPred = ContentTypeStartsWith<&'static str>> { /* private fields */ }
Expand description
Middleware to enable LiveReload functionality.
Implementations§
source§impl<S, ReqPred, ResPred> LiveReload<S, ReqPred, ResPred>
impl<S, ReqPred, ResPred> LiveReload<S, ReqPred, ResPred>
Trait Implementations§
source§impl<S: Clone, ReqPred: Clone, ResPred: Clone> Clone for LiveReload<S, ReqPred, ResPred>
impl<S: Clone, ReqPred: Clone, ResPred: Clone> Clone for LiveReload<S, ReqPred, ResPred>
source§fn clone(&self) -> LiveReload<S, ReqPred, ResPred>
fn clone(&self) -> LiveReload<S, ReqPred, ResPred>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<ReqBody, ResBody, S, ReqPred, ResPred> Service<Request<ReqBody>> for LiveReload<S, ReqPred, ResPred>
impl<ReqBody, ResBody, S, ReqPred, ResPred> Service<Request<ReqBody>> for LiveReload<S, ReqPred, ResPred>
§type Response = <OverlayService<String, Infallible, OverlayService<LongPollBody, Infallible, InjectService<S, ReqPred, ResPred>>> as Service<Request<ReqBody>>>::Response
type Response = <OverlayService<String, Infallible, OverlayService<LongPollBody, Infallible, InjectService<S, ReqPred, ResPred>>> as Service<Request<ReqBody>>>::Response
Responses given by the service.
§type Error = <OverlayService<String, Infallible, OverlayService<LongPollBody, Infallible, InjectService<S, ReqPred, ResPred>>> as Service<Request<ReqBody>>>::Error
type Error = <OverlayService<String, Infallible, OverlayService<LongPollBody, Infallible, InjectService<S, ReqPred, ResPred>>> as Service<Request<ReqBody>>>::Error
Errors produced by the service.
§type Future = <OverlayService<String, Infallible, OverlayService<LongPollBody, Infallible, InjectService<S, ReqPred, ResPred>>> as Service<Request<ReqBody>>>::Future
type Future = <OverlayService<String, Infallible, OverlayService<LongPollBody, Infallible, InjectService<S, ReqPred, ResPred>>> as Service<Request<ReqBody>>>::Future
The future response value.
Auto Trait Implementations§
impl<S, ReqPred = Always, ResPred = ContentTypeStartsWith<&'static str>> !RefUnwindSafe for LiveReload<S, ReqPred, ResPred>
impl<S, ReqPred, ResPred> Send for LiveReload<S, ReqPred, ResPred>
impl<S, ReqPred, ResPred> Sync for LiveReload<S, ReqPred, ResPred>
impl<S, ReqPred, ResPred> Unpin for LiveReload<S, ReqPred, ResPred>
impl<S, ReqPred = Always, ResPred = ContentTypeStartsWith<&'static str>> !UnwindSafe for LiveReload<S, ReqPred, ResPred>
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