pub struct ServerBuilder<T: TransportPort> { /* private fields */ }Expand description
Generic builder for BACnetServer with a pre-built transport.
Implementations§
Source§impl<T: TransportPort + 'static> ServerBuilder<T>
impl<T: TransportPort + 'static> ServerBuilder<T>
Sourcepub fn database(self, db: ObjectDatabase) -> Self
pub fn database(self, db: ObjectDatabase) -> Self
Set the object database (transfers ownership).
Sourcepub fn dcc_password(self, password: impl Into<String>) -> Self
pub fn dcc_password(self, password: impl Into<String>) -> Self
Set the password required for DeviceCommunicationControl requests.
Sourcepub fn reinit_password(self, password: impl Into<String>) -> Self
pub fn reinit_password(self, password: impl Into<String>) -> Self
Set the password required for ReinitializeDevice requests.
Sourcepub fn enable_fault_detection(self, enabled: bool) -> Self
pub fn enable_fault_detection(self, enabled: bool) -> Self
Enable periodic fault detection / reliability evaluation.
Sourcepub async fn build(self) -> Result<BACnetServer<T>, Error>
pub async fn build(self) -> Result<BACnetServer<T>, Error>
Build and start the server.
Auto Trait Implementations§
impl<T> Freeze for ServerBuilder<T>where
T: Freeze,
impl<T> !RefUnwindSafe for ServerBuilder<T>
impl<T> Send for ServerBuilder<T>
impl<T> Sync for ServerBuilder<T>
impl<T> Unpin for ServerBuilder<T>where
T: Unpin,
impl<T> UnsafeUnpin for ServerBuilder<T>where
T: UnsafeUnpin,
impl<T> !UnwindSafe for ServerBuilder<T>
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