Struct cvmfs_server_scraper::Server
source · pub struct Server {
pub server_type: ServerType,
pub backend_type: ServerBackendType,
pub hostname: Hostname,
}
Expand description
A server object.
This object represents a CVMFS server. It contains the server type, the backend type, and the hostname of the server.
The server object can be used to scrape the server for information about the repositories it hosts. The scrape method will return a populated server object that contains information about the server and the repositories it hosts.
Fields§
§server_type: ServerType
§backend_type: ServerBackendType
§hostname: Hostname
Implementations§
source§impl Server
impl Server
pub fn new( server_type: ServerType, backend_type: ServerBackendType, hostname: Hostname, ) -> Self
pub fn as_failed_server(&self, error: CVMFSScraperError) -> FailedServer
pub async fn scrape<R>(&self, repositories: Vec<R>) -> ScrapedServer
Trait Implementations§
source§impl<'de> Deserialize<'de> for Server
impl<'de> Deserialize<'de> for Server
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Server
impl PartialEq for Server
impl StructuralPartialEq for Server
Auto Trait Implementations§
impl Freeze for Server
impl RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnwindSafe for Server
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)