pub struct UserDeviceBuilder { /* private fields */ }
Expand description
Builder for UserDevice
.
Implementations§
Source§impl UserDeviceBuilder
impl UserDeviceBuilder
pub fn socket<VALUE: Into<PathBuf>>(&mut self, value: VALUE) -> &mut Self
pub fn id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn pci_segment<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(&self) -> Result<UserDevice, UserDeviceBuilderError>
pub fn build(&self) -> Result<UserDevice, UserDeviceBuilderError>
Trait Implementations§
Source§impl Clone for UserDeviceBuilder
impl Clone for UserDeviceBuilder
Source§fn clone(&self) -> UserDeviceBuilder
fn clone(&self) -> UserDeviceBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for UserDeviceBuilder
impl RefUnwindSafe for UserDeviceBuilder
impl Send for UserDeviceBuilder
impl Sync for UserDeviceBuilder
impl Unpin for UserDeviceBuilder
impl UnwindSafe for UserDeviceBuilder
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