pub struct DeviceBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build()
.
Implementations§
Source§impl<S: State> DeviceBuilder<S>
impl<S: State> DeviceBuilder<S>
Sourcepub fn build(self) -> Devicewhere
S: IsComplete,
pub fn build(self) -> Devicewhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn device(self, value: String) -> DeviceBuilder<SetDevice<S>>where
S::Device: IsUnset,
pub fn device(self, value: String) -> DeviceBuilder<SetDevice<S>>where
S::Device: IsUnset,
Required.
Sourcepub fn properties(
self,
value: Vec<(String, String)>,
) -> DeviceBuilder<SetProperties<S>>where
S::Properties: IsUnset,
pub fn properties(
self,
value: Vec<(String, String)>,
) -> DeviceBuilder<SetProperties<S>>where
S::Properties: IsUnset,
Required.
Auto Trait Implementations§
impl<S> Freeze for DeviceBuilder<S>
impl<S> RefUnwindSafe for DeviceBuilder<S>
impl<S> Send for DeviceBuilder<S>
impl<S> Sync for DeviceBuilder<S>
impl<S> Unpin for DeviceBuilder<S>
impl<S> UnwindSafe for DeviceBuilder<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