pub struct DeviceBuilder { /* private fields */ }Implementations§
Source§impl DeviceBuilder
impl DeviceBuilder
pub fn new<I, K>(id: I, local_key: K) -> Self
pub fn address<A: Into<String>>(self, address: A) -> Self
pub fn version<V: Into<Version>>(self, version: V) -> Self
pub fn dev_type<D: Into<DeviceType>>(self, dev_type: D) -> Self
pub fn port(self, port: u16) -> Self
pub fn persist(self, persist: bool) -> Self
pub fn timeout(self, timeout: Duration) -> Self
pub fn nowait(self, nowait: bool) -> Self
pub fn run(self) -> Device
Auto Trait Implementations§
impl Freeze for DeviceBuilder
impl RefUnwindSafe for DeviceBuilder
impl Send for DeviceBuilder
impl Sync for DeviceBuilder
impl Unpin for DeviceBuilder
impl UnwindSafe for DeviceBuilder
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