pub enum WidgetSource {
Proxy(String),
Static(String),
}Variants§
Proxy(String)
Reverse proxy to a running server (e.g., http://localhost:4444)
Static(String)
Serve static files from a directory (e.g., ./widgets/dist)
Trait Implementations§
Source§impl Clone for WidgetSource
impl Clone for WidgetSource
Source§fn clone(&self) -> WidgetSource
fn clone(&self) -> WidgetSource
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WidgetSource
impl RefUnwindSafe for WidgetSource
impl Send for WidgetSource
impl Sync for WidgetSource
impl Unpin for WidgetSource
impl UnsafeUnpin for WidgetSource
impl UnwindSafe for WidgetSource
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