pub enum ServeTarget {
File(PathBuf),
Dir(PathBuf),
}Expand description
What lini serve was pointed at — a single file, or a directory to open as
the playground.
Variants§
File(PathBuf)
One .lini file: live-reloading preview of just that file.
Dir(PathBuf)
A directory: the playground over every .lini file beneath it.
Auto Trait Implementations§
impl Freeze for ServeTarget
impl RefUnwindSafe for ServeTarget
impl Send for ServeTarget
impl Sync for ServeTarget
impl Unpin for ServeTarget
impl UnsafeUnpin for ServeTarget
impl UnwindSafe for ServeTarget
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