[][src]Struct fractal_matrix_api::backend::Backend

pub struct Backend {
    pub tx: Sender<BKResponse>,
    pub data: Arc<Mutex<BackendData>>,
    pub internal_tx: Option<Sender<BKCommand>>,
    pub user_info_cache: CacheMap<Arc<Mutex<(String, String)>>>,
    pub limit_threads: Arc<(Mutex<u8>, Condvar)>,
}

Fields

tx: Sender<BKResponse>data: Arc<Mutex<BackendData>>internal_tx: Option<Sender<BKCommand>>user_info_cache: CacheMap<Arc<Mutex<(String, String)>>>limit_threads: Arc<(Mutex<u8>, Condvar)>

Methods

impl Backend[src]

pub fn new(tx: Sender<BKResponse>) -> Backend[src]

pub fn run(self) -> Sender<BKCommand>[src]

pub fn command_recv(&mut self, cmd: Result<BKCommand, RecvError>) -> bool[src]

Trait Implementations

impl Clone for Backend[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl !Sync for Backend

impl Send for Backend

impl Unpin for Backend

impl !RefUnwindSafe for Backend

impl !UnwindSafe for Backend

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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