pub struct Server { /* private fields */ }Implementations
sourceimpl Server
impl Server
pub fn new(path: PathBuf, bin_hash: String) -> Result<Self>
pub fn run(self)
pub fn env(&self) -> &Env
pub fn subject(&self) -> &String
pub fn active_block(&self) -> Option<&Block>
pub fn config(&self) -> &Config
pub fn style(&self) -> Option<Vec<u8>>
pub fn task(&self) -> &Task
pub fn hash(&self) -> String
Trait Implementations
sourceimpl App for Server
impl App for Server
sourcefn update(&mut self, ctx: &Context, _frame: &mut Frame)
fn update(&mut self, ctx: &Context, _frame: &mut Frame)
Called each time the UI needs repainting, which may be many times per second. Read more
sourcefn save(&mut self, _storage: &mut dyn Storage)
fn save(&mut self, _storage: &mut dyn Storage)
Called on shutdown, and perhaps at regular intervals. Allows you to save state. Read more
sourcefn on_close_event(&mut self) -> bool
fn on_close_event(&mut self) -> bool
Called when the user attempts to close the desktop window and/or quit the application. Read more
sourcefn on_exit(&mut self, _gl: Option<&Context>)
fn on_exit(&mut self, _gl: Option<&Context>)
Called once on shutdown, after
Self::save. Read moresourcefn auto_save_interval(&self) -> Duration
fn auto_save_interval(&self) -> Duration
Time between automatic calls to
Self::savesourcefn max_size_points(&self) -> Vec2
fn max_size_points(&self) -> Vec2
The size limit of the web app canvas. Read more
sourcefn clear_color(&self, _visuals: &Visuals) -> Rgba
fn clear_color(&self, _visuals: &Visuals) -> Rgba
Background color for the app, e.g. what is sent to
gl.clearColor.
This is the background of your windows if you don’t set a central panel. Read moresourcefn persist_native_window(&self) -> bool
fn persist_native_window(&self) -> bool
Controls whether or not the native window position and size will be
persisted (only if the “persistence” feature is enabled). Read more
sourcefn persist_egui_memory(&self) -> bool
fn persist_egui_memory(&self) -> bool
Controls whether or not the egui memory (window positions etc) will be
persisted (only if the “persistence” feature is enabled). Read more
sourcefn warm_up_enabled(&self) -> bool
fn warm_up_enabled(&self) -> bool
If
true a warm-up call to Self::update will be issued where
ctx.memory().everything_is_visible() will be set to true. Read moreAuto Trait Implementations
impl !RefUnwindSafe for Server
impl !Send for Server
impl !Sync for Server
impl Unpin for Server
impl !UnwindSafe for Server
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read morefn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.