pub struct ServeEmbed<E: RustEmbed> { /* private fields */ }Expand description
Service that serves files from embedded assets.
Implementations§
Source§impl<E: RustEmbed> ServeEmbed<E>
impl<E: RustEmbed> ServeEmbed<E>
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new ServeEmbed service.
Trait Implementations§
Source§impl<E: RustEmbed> Clone for ServeEmbed<E>
impl<E: RustEmbed> Clone for ServeEmbed<E>
Source§impl<E: RustEmbed> Default for ServeEmbed<E>
impl<E: RustEmbed> Default for ServeEmbed<E>
Source§impl<E, ReqBody> Service<Request<ReqBody>> for ServeEmbed<E>where
E: RustEmbed,
impl<E, ReqBody> Service<Request<ReqBody>> for ServeEmbed<E>where
E: RustEmbed,
Source§type Response = Response<ResponseBody>
type Response = Response<ResponseBody>
Responses given by the service.
Source§type Error = Infallible
type Error = Infallible
Errors produced by the service.
Source§type Future = ResponseFuture
type Future = ResponseFuture
The future response value.
impl<E: RustEmbed> Copy for ServeEmbed<E>
Auto Trait Implementations§
impl<E> Freeze for ServeEmbed<E>
impl<E> RefUnwindSafe for ServeEmbed<E>where
E: RefUnwindSafe,
impl<E> Send for ServeEmbed<E>where
E: Send,
impl<E> Sync for ServeEmbed<E>where
E: Sync,
impl<E> Unpin for ServeEmbed<E>where
E: Unpin,
impl<E> UnwindSafe for ServeEmbed<E>where
E: UnwindSafe,
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