pub struct AppState {
pub store: RuleStore,
pub events: Sender<DnsEvent>,
pub token: CancellationToken,
}Expand description
The daemon’s central state.
Fields§
§store: RuleStore§events: Sender<DnsEvent>§token: CancellationTokenImplementations§
Trait Implementations§
Source§impl IpcHandler for AppState
impl IpcHandler for AppState
Source§fn handle<'life0, 'async_trait>(
&'life0 self,
request: IpcRequest,
) -> Pin<Box<dyn Future<Output = IpcResponse> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle<'life0, 'async_trait>(
&'life0 self,
request: IpcRequest,
) -> Pin<Box<dyn Future<Output = IpcResponse> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Process a single request and return a response.
Auto Trait Implementations§
impl Freeze for AppState
impl RefUnwindSafe for AppState
impl Send for AppState
impl Sync for AppState
impl Unpin for AppState
impl UnsafeUnpin for AppState
impl UnwindSafe for AppState
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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