Struct VZLinuxBootLoaderBuilder

Source
pub struct VZLinuxBootLoaderBuilder<KernelURL, InitialRamdiskURL, CommandLine> { /* private fields */ }
Expand description

builder for VZLinuxBootLoader

§Examples

let boot_loader = VZLinuxBootLoaderBuilder::new()
    .kernel_url(kernel_url)
    .initial_ramdisk_url(initial_ramdisk_url)
    .command_line(command_line)
    .build();

Implementations§

Source§

impl VZLinuxBootLoaderBuilder<(), (), ()>

Source

pub fn new() -> Self

Source§

impl<KernelURL, InitialRamdiskURL, CommandLine> VZLinuxBootLoaderBuilder<KernelURL, InitialRamdiskURL, CommandLine>

Source

pub fn kernel_url<T: Into<String>>( self, kernel_url: T, ) -> VZLinuxBootLoaderBuilder<String, InitialRamdiskURL, CommandLine>

Source

pub fn initial_ramdisk_url<T: Into<String>>( self, initial_ramdisk_url: T, ) -> VZLinuxBootLoaderBuilder<KernelURL, String, CommandLine>

Source

pub fn command_line<T: Into<String>>( self, command_line: T, ) -> VZLinuxBootLoaderBuilder<KernelURL, InitialRamdiskURL, String>

Source§

impl VZLinuxBootLoaderBuilder<String, String, String>

Auto Trait Implementations§

§

impl<KernelURL, InitialRamdiskURL, CommandLine> Freeze for VZLinuxBootLoaderBuilder<KernelURL, InitialRamdiskURL, CommandLine>
where KernelURL: Freeze, InitialRamdiskURL: Freeze, CommandLine: Freeze,

§

impl<KernelURL, InitialRamdiskURL, CommandLine> RefUnwindSafe for VZLinuxBootLoaderBuilder<KernelURL, InitialRamdiskURL, CommandLine>
where KernelURL: RefUnwindSafe, InitialRamdiskURL: RefUnwindSafe, CommandLine: RefUnwindSafe,

§

impl<KernelURL, InitialRamdiskURL, CommandLine> Send for VZLinuxBootLoaderBuilder<KernelURL, InitialRamdiskURL, CommandLine>
where KernelURL: Send, InitialRamdiskURL: Send, CommandLine: Send,

§

impl<KernelURL, InitialRamdiskURL, CommandLine> Sync for VZLinuxBootLoaderBuilder<KernelURL, InitialRamdiskURL, CommandLine>
where KernelURL: Sync, InitialRamdiskURL: Sync, CommandLine: Sync,

§

impl<KernelURL, InitialRamdiskURL, CommandLine> Unpin for VZLinuxBootLoaderBuilder<KernelURL, InitialRamdiskURL, CommandLine>
where KernelURL: Unpin, InitialRamdiskURL: Unpin, CommandLine: Unpin,

§

impl<KernelURL, InitialRamdiskURL, CommandLine> UnwindSafe for VZLinuxBootLoaderBuilder<KernelURL, InitialRamdiskURL, CommandLine>
where KernelURL: UnwindSafe, InitialRamdiskURL: UnwindSafe, CommandLine: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.