pub struct StaticService { /* private fields */ }Expand description
A hardened static file service.
Implementations§
Source§impl StaticService
impl StaticService
Sourcepub fn builder(root: impl AsRef<Path>) -> StaticServiceBuilder
pub fn builder(root: impl AsRef<Path>) -> StaticServiceBuilder
Create a builder for a static service rooted at root.
Trait Implementations§
Source§impl Clone for StaticService
impl Clone for StaticService
Source§fn clone(&self) -> StaticService
fn clone(&self) -> StaticService
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Service for StaticService
impl Service for StaticService
Source§fn request_body_policy(&self, _head: &RequestHead) -> RequestBodyPolicy
fn request_body_policy(&self, _head: &RequestHead) -> RequestBodyPolicy
Returns the service’s preferred request body policy. Read more
Auto Trait Implementations§
impl Freeze for StaticService
impl RefUnwindSafe for StaticService
impl Send for StaticService
impl Sync for StaticService
impl Unpin for StaticService
impl UnsafeUnpin for StaticService
impl UnwindSafe for StaticService
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