pub enum SharedRole {
Serve {
clients: Vec<Ipv4Addr>,
folders: Vec<String>,
},
Mount {
source: String,
owner: String,
},
HostFolder {
tag_file: String,
folder: Option<String>,
},
}Expand description
A machine’s part in a shared volume.
Variants§
Serve
It holds the data and serves it to these addresses.
Fields
Mount
It mounts the owner’s export.
Fields
HostFolder
It mounts a folder of the server the target shares into the VM (virtiofs on Proxmox), as every other machine using the volume does: no owner serves it. The plan never makes this role; a target that shares the volume so puts it in place of the other two.
Trait Implementations§
Auto Trait Implementations§
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.