pub struct BRouterServer {
pub base_path: PathBuf,
/* private fields */
}Expand description
A struct representing the BRouter server
Fields§
§base_path: PathBufBase path where BRouter is installed
Implementations§
Source§impl BRouterServer
impl BRouterServer
Sourcepub fn has_downloaded(&self) -> bool
pub fn has_downloaded(&self) -> bool
Check if the BRouter server has been downloaded
Sourcepub fn download_brouter(&self) -> Result<(), Box<dyn Error>>
pub fn download_brouter(&self) -> Result<(), Box<dyn Error>>
Download and extract the BRouter server
Sourcepub fn download_segment(&self, segment: &str) -> Result<(), Box<dyn Error>>
pub fn download_segment(&self, segment: &str) -> Result<(), Box<dyn Error>>
Download a specific segment
Sourcepub fn is_running(&mut self) -> bool
pub fn is_running(&mut self) -> bool
Check if the BRouter server is running
Sourcepub fn is_serving(&self) -> bool
pub fn is_serving(&self) -> bool
Check if the BRouter server is serving requests
Trait Implementations§
Source§impl Drop for BRouterServer
impl Drop for BRouterServer
Auto Trait Implementations§
impl Freeze for BRouterServer
impl RefUnwindSafe for BRouterServer
impl Send for BRouterServer
impl Sync for BRouterServer
impl Unpin for BRouterServer
impl UnsafeUnpin for BRouterServer
impl UnwindSafe for BRouterServer
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