[][src]Struct dbui_service::AppConfig

pub struct AppConfig { /* fields omitted */ }

Contains information about the running application

Methods

impl AppConfig[src]

pub fn new(
    task: String,
    address: String,
    port: u16,
    cfg_dir: String,
    root_logger: Logger,
    verbose: bool
) -> AppConfig
[src]

pub fn task(&self) -> &String[src]

pub fn address(&self) -> &String[src]

pub fn port(&self) -> u16[src]

pub fn files(&self) -> &FileService[src]

pub fn connections(&self) -> &RwLock<ConnectionCache>[src]

pub fn send_connection(&self, id: &Uuid, msg: ResponseMessage)[src]

pub fn send_channel(&self, key: &str, msg: ResponseMessage)[src]

pub fn send_channel_except(
    &self,
    key: &str,
    exclude: Vec<&Uuid>,
    msg: ResponseMessage
)
[src]

pub fn projects(&self) -> &RwLock<ProjectService>[src]

pub fn get_all_projects(&self) -> Result<Vec<Project>>[src]

pub fn get_project(&self, key: &str) -> Result<Project>[src]

pub fn set_project(&self, p: &Project) -> Result<()>[src]

pub fn remove_project(&self, key: &str) -> Result<()>[src]

pub fn open_db(&self, key: &str) -> Result<Client>[src]

pub fn root_logger(&self) -> &Logger[src]

pub fn verbose(&self) -> bool[src]

Trait Implementations

impl Clone for AppConfig[src]

impl Debug for AppConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]