pub enum ServeEntry {
NotFound,
IoError(Error),
File(File, Metadata, PathBuf),
Directory(PathBuf, ReadDir),
}
Expand description
Entry’s in fs
Variants§
NotFound
Entry is not found
IoError(Error)
Error when looking up entry
Likely because file either doesn’t exist or you lacks permissions
File(File, Metadata, PathBuf)
File entry is found
Directory(PathBuf, ReadDir)
Directory entry is found
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ServeEntry
impl !RefUnwindSafe for ServeEntry
impl Send for ServeEntry
impl Sync for ServeEntry
impl Unpin for ServeEntry
impl !UnwindSafe for ServeEntry
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