[−][src]Struct operator::content::FilesystemBasedContentEngine
A ContentEngine
that serves files from a
ContentDirectory
.
Implementations
impl<'engine, ServerInfo> FilesystemBasedContentEngine<'engine, ServerInfo> where
ServerInfo: 'static + Clone + Serialize + Send + Sync,
[src]
ServerInfo: 'static + Clone + Serialize + Send + Sync,
pub fn from_content_directory(
content_directory: ContentDirectory,
server_info: ServerInfo
) -> Result<Arc<RwLock<Self>>, ContentLoadingError>
[src]
content_directory: ContentDirectory,
server_info: ServerInfo
) -> Result<Arc<RwLock<Self>>, ContentLoadingError>
Trait Implementations
impl<'engine, ServerInfo> ContentEngine<ServerInfo> for FilesystemBasedContentEngine<'engine, ServerInfo> where
ServerInfo: Clone + Serialize,
[src]
ServerInfo: Clone + Serialize,
pub fn get_render_context(
&self,
request_route: Option<Route>
) -> RenderContext<'_, ServerInfo, Self>
[src]
&self,
request_route: Option<Route>
) -> RenderContext<'_, ServerInfo, Self>
pub fn new_template(
&self,
handlebars_source: &str,
media_type: MediaType
) -> Result<UnregisteredTemplate, TemplateParseError>
[src]
&self,
handlebars_source: &str,
media_type: MediaType
) -> Result<UnregisteredTemplate, TemplateParseError>
pub fn get(&self, route: &Route) -> Option<&ContentRepresentations>
[src]
pub fn get_internal(&self, route: &Route) -> Option<&ContentRepresentations>
[src]
pub fn handlebars_registry(&self) -> &Handlebars<'_>
[src]
Auto Trait Implementations
impl<'engine, ServerInfo> !RefUnwindSafe for FilesystemBasedContentEngine<'engine, ServerInfo>
[src]
impl<'engine, ServerInfo> Send for FilesystemBasedContentEngine<'engine, ServerInfo> where
ServerInfo: Send,
[src]
ServerInfo: Send,
impl<'engine, ServerInfo> Sync for FilesystemBasedContentEngine<'engine, ServerInfo> where
ServerInfo: Sync,
[src]
ServerInfo: Sync,
impl<'engine, ServerInfo> Unpin for FilesystemBasedContentEngine<'engine, ServerInfo> where
ServerInfo: Unpin,
[src]
ServerInfo: Unpin,
impl<'engine, ServerInfo> !UnwindSafe for FilesystemBasedContentEngine<'engine, ServerInfo>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,