/
germanubis
/
lapin
Обзор
Документация
Войти
/
germanubis
/
lapin
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/future.rs
25 строк
570 B
Marc-Antoine Perennou
restore internal RPC debugging
26 авг 2025, 00:27
26 авг 2025, 00:27
bade6b1
Код
Авторство
О чём код?
use crate::Result; use std::{ fmt, future::Future, pin::Pin, task::{Context, Poll}, }; pub(crate) struct InternalFuture( pub(crate) Pin<Box<dyn Future<Output = Result<()>> + Send + 'static>>, ); impl Future for InternalFuture { type Output = Result<()>; fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { Pin::new(&mut self.0).poll(cx) } } impl fmt::Debug for InternalFuture { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.debug_tuple("InternalFuture").finish() } }