mirror of
git://git.proxmox.com/git/proxmox-backup.git
synced 2025-01-31 01:48:09 +03:00
remove unused code
this was moved to proxmox_router long ago Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
e9979a1ac6
commit
d71eb9b353
@ -1,7 +1,6 @@
|
|||||||
//! Tools and utilities
|
//! Tools and utilities
|
||||||
//!
|
//!
|
||||||
//! This is a collection of small and useful tools.
|
//! This is a collection of small and useful tools.
|
||||||
use std::any::Any;
|
|
||||||
|
|
||||||
use anyhow::{bail, Error};
|
use anyhow::{bail, Error};
|
||||||
|
|
||||||
@ -41,19 +40,6 @@ pub fn detect_modified_configuration_file(
|
|||||||
Ok(())
|
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
|
/// The default 2 hours are far too long for PBS
|
||||||
pub const PROXMOX_BACKUP_TCP_KEEPALIVE_TIME: u32 = 120;
|
pub const PROXMOX_BACKUP_TCP_KEEPALIVE_TIME: u32 = 120;
|
||||||
pub const DEFAULT_USER_AGENT_STRING: &str = "proxmox-backup-client/1.0";
|
pub const DEFAULT_USER_AGENT_STRING: &str = "proxmox-backup-client/1.0";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user