pub struct Florestad { /* private fields */ }
Implementations§
source§impl Florestad
impl Florestad
sourcepub fn stop(&self)
pub fn stop(&self)
Kills a running florestad, this will return as soon as the main node stops.
It’s not safe to stop you program before this thread returns because some information may not be fully flushed to disk yet, and killing the process before flushing everything is equivalent to an unclean shutdown.
pub fn get_stop_signal(&self) -> Arc<RwLock<bool>>
pub async fn wait_shutdown(&self)
sourcepub fn start(&self)
pub fn start(&self)
Actually runs florestad, spawning all modules and waiting util someone asks to stop.
pub fn from_config(config: Config) -> Self
pub fn new() -> Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Florestad
impl Send for Florestad
impl Sync for Florestad
impl Unpin for Florestad
impl !UnwindSafe for Florestad
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