pub struct FileServerBuilder { /* private fields */ }Implementations§
Source§impl FileServerBuilder
impl FileServerBuilder
pub fn new(config: GurtConfig) -> Self
pub fn with_file_handler<H: FileHandler + 'static>(self, handler: H) -> Self
pub fn with_directory_handler<H: DirectoryHandler + 'static>( self, handler: H, ) -> Self
pub fn build(self) -> Result<GurtServer>
Auto Trait Implementations§
impl !RefUnwindSafe for FileServerBuilder
impl !UnwindSafe for FileServerBuilder
impl Freeze for FileServerBuilder
impl Send for FileServerBuilder
impl Sync for FileServerBuilder
impl Unpin for FileServerBuilder
impl UnsafeUnpin for FileServerBuilder
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