pub struct VhostUserBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build()
.
Implementations§
Source§impl<S: State> VhostUserBuilder<S>
impl<S: State> VhostUserBuilder<S>
Sourcepub fn build(self) -> VhostUserwhere
S: IsComplete,
pub fn build(self) -> VhostUserwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn id(self, value: String) -> VhostUserBuilder<SetId<S>>where
S::Id: IsUnset,
pub fn id(self, value: String) -> VhostUserBuilder<SetId<S>>where
S::Id: IsUnset,
Required.
Sourcepub fn chardev(self, value: String) -> VhostUserBuilder<SetChardev<S>>where
S::Chardev: IsUnset,
pub fn chardev(self, value: String) -> VhostUserBuilder<SetChardev<S>>where
S::Chardev: IsUnset,
Required.
Sourcepub fn vhostforce(self, value: OnOff) -> VhostUserBuilder<SetVhostforce<S>>where
S::Vhostforce: IsUnset,
pub fn vhostforce(self, value: OnOff) -> VhostUserBuilder<SetVhostforce<S>>where
S::Vhostforce: IsUnset,
Sourcepub fn maybe_vhostforce(
self,
value: Option<OnOff>,
) -> VhostUserBuilder<SetVhostforce<S>>where
S::Vhostforce: IsUnset,
pub fn maybe_vhostforce(
self,
value: Option<OnOff>,
) -> VhostUserBuilder<SetVhostforce<S>>where
S::Vhostforce: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for VhostUserBuilder<S>
impl<S> RefUnwindSafe for VhostUserBuilder<S>
impl<S> Send for VhostUserBuilder<S>
impl<S> Sync for VhostUserBuilder<S>
impl<S> Unpin for VhostUserBuilder<S>
impl<S> UnwindSafe for VhostUserBuilder<S>
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