pub struct ClientBuilder<T: TransportPort> { /* private fields */ }Expand description
Generic builder for BACnetClient with a pre-built transport.
Implementations§
Source§impl<T: TransportPort + 'static> ClientBuilder<T>
impl<T: TransportPort + 'static> ClientBuilder<T>
Sourcepub fn apdu_timeout_ms(self, ms: u64) -> Self
pub fn apdu_timeout_ms(self, ms: u64) -> Self
Set APDU timeout in milliseconds.
Sourcepub fn max_apdu_length(self, len: u16) -> Self
pub fn max_apdu_length(self, len: u16) -> Self
Set the maximum APDU length this client accepts.
Sourcepub async fn build(self) -> Result<BACnetClient<T>, Error>
pub async fn build(self) -> Result<BACnetClient<T>, Error>
Build and start the client.
Auto Trait Implementations§
impl<T> Freeze for ClientBuilder<T>where
T: Freeze,
impl<T> RefUnwindSafe for ClientBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for ClientBuilder<T>
impl<T> Sync for ClientBuilder<T>
impl<T> Unpin for ClientBuilder<T>where
T: Unpin,
impl<T> UnsafeUnpin for ClientBuilder<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ClientBuilder<T>where
T: UnwindSafe,
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