this was moved to proxmox_router long ago
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
//! Tools and utilities
//!
//! This is a collection of small and useful tools.
-use std::any::Any;
use anyhow::{bail, Error};
Ok(())
}
-/// An easy way to convert types to Any
-///
-/// Mostly useful to downcast trait objects (see RpcEnvironment).
-pub trait AsAny {
- fn as_any(&self) -> &dyn Any;
-}
-
-impl<T: Any> AsAny for T {
- fn as_any(&self) -> &dyn Any {
- self
- }
-}
-
/// The default 2 hours are far too long for PBS
pub const PROXMOX_BACKUP_TCP_KEEPALIVE_TIME: u32 = 120;
pub const DEFAULT_USER_AGENT_STRING: &str = "proxmox-backup-client/1.0";