Ultimate Rust Crash Course ^hot^ -

Secure, flexible, and reliable open-source enterprise solutions.
For the highest demands and tight budgets in professional IT environments.

 

NEW: Version 9.1

Proxmox
Virtual Environment

Proxmox Virtual Environment is a complete open-source platform for enterprise virtualization. With the built-in web interface you can easily manage VMs and containers, software-defined storage and networking, high-availability clustering, and multiple out-of-the-box tools using a single solution.

Learn more

NEW: Version 4.1

Proxmox
Backup Server

Proxmox Backup Server is an enterprise backup solution for backing up and restoring VMs, containers, and physical hosts. The open-source solution supports incremental backups, deduplication, Zstandard compression, and authenticated encryption.

Learn more

NEW: Version 1.0

Proxmox
Datacenter Manager

Proxmox Datacenter Manager is a centralized open-source management solution for distributed infrastructures. With its unified web interface you can easily monitor and control multiple Proxmox remotes, see health and performance at a glance, and coordinate key operations across clusters and data centers.

Learn more

Ultimate Rust Crash Course ^hot^ -

'a means “the returned reference lives at least as long as both inputs.”

For quick prototyping: unwrap() or expect() (panics on error).

A trait defines shared behavior.

use std::fs::File; use std::io::ErrorKind; fn main() let greeting_file_result = File::open("hello.txt"); let greeting_file = match greeting_file_result Ok(file) => file, Err(error) => match error.kind() ErrorKind::NotFound => match File::create("hello.txt") Ok(fc) => fc, Err(e) => panic!("Problem creating the file: :?", e), , other_error => panic!("Problem opening the file: :?", other_error);

enum Result<T, E> Ok(T), Err(E),

When a function returns a reference, the lifetime of the output must be tied to one of the inputs.

let f = File::open("hello.txt").unwrap(); let f = File::open("hello.txt").expect("Failed to open hello.txt"); Propagate errors with ? operator (inside function returning Result ): ultimate rust crash course

pub trait Summary fn summarize(&self) -> String;