pub struct Virtio9pModule {
pub src: PathBuf,
pub tag: String,
pub ugid: (Option<u32>, Option<u32>),
pub uid_map: String,
pub gid_map: String,
pub p9_cfg: Config,
}Fields§
§src: PathBuf§tag: String§ugid: (Option<u32>, Option<u32>)§uid_map: String§gid_map: String§p9_cfg: ConfigTrait Implementations§
Source§impl<'de> Deserialize<'de> for Virtio9pModule
impl<'de> Deserialize<'de> for Virtio9pModule
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 Serialize for Virtio9pModule
impl Serialize for Virtio9pModule
Source§impl VirtioDeviceModule for Virtio9pModule
impl VirtioDeviceModule for Virtio9pModule
Source§fn sort_name(&self) -> &'static str
fn sort_name(&self) -> &'static str
Name of the device used to determine init processing order.
Source§fn create(&self, cx: &mut VirtioDeviceArgs<'_>) -> Result<Box<dyn VirtioDevice>>
fn create(&self, cx: &mut VirtioDeviceArgs<'_>) -> Result<Box<dyn VirtioDevice>>
Create an instance of this device.
Source§fn create_jail(
&self,
jail_config: Option<&JailConfig>,
) -> Result<Option<Minijail>>
fn create_jail( &self, jail_config: Option<&JailConfig>, ) -> Result<Option<Minijail>>
Optionally create a jail for this device.
Auto Trait Implementations§
impl Freeze for Virtio9pModule
impl RefUnwindSafe for Virtio9pModule
impl Send for Virtio9pModule
impl Sync for Virtio9pModule
impl Unpin for Virtio9pModule
impl UnwindSafe for Virtio9pModule
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