pub struct ReadConfig<T = Value> {
pub path: PathBuf,
pub _type: PhantomData<T>,
}
Fields§
§path: PathBuf
§_type: PhantomData<T>
Trait Implementations§
Source§impl<T: Config> OnRequest<ReadConfig<T>> for ConfigAgent
impl<T: Config> OnRequest<ReadConfig<T>> for ConfigAgent
fn on_request<'life0, 'life1, 'async_trait>(
&'life0 mut self,
msg: ReadConfig<T>,
_ctx: &'life1 mut Context<Self>,
) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
msg: Interaction<R>,
ctx: &'life1 mut Context<Self>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: Send + 'async_trait,
Auto Trait Implementations§
impl<T> Freeze for ReadConfig<T>
impl<T> RefUnwindSafe for ReadConfig<T>where
T: RefUnwindSafe,
impl<T> Send for ReadConfig<T>where
T: Send,
impl<T> Sync for ReadConfig<T>where
T: Sync,
impl<T> Unpin for ReadConfig<T>where
T: Unpin,
impl<T> UnwindSafe for ReadConfig<T>where
T: UnwindSafe,
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