Struct ocypod::models::ApplicationState
source · pub struct ApplicationState {
pub redis_addr: Addr<ApplicationActor>,
pub config: Config,
}
Expand description
Shared state for an HTTP worker thread.
Fields
redis_addr: Addr<ApplicationActor>
Address of the RedisActor
mailbox, used to send queue/job actions to.
config: Config
Implementations
sourceimpl ApplicationState
impl ApplicationState
pub fn new(redis_addr: Addr<ApplicationActor>, config: Config) -> Self
Auto Trait Implementations
impl !RefUnwindSafe for ApplicationState
impl Send for ApplicationState
impl Sync for ApplicationState
impl Unpin for ApplicationState
impl !UnwindSafe for ApplicationState
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