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 device_binding(self, binding: DeviceBinding) -> Result<Self, Error>
pub fn device_binding(self, binding: DeviceBinding) -> Result<Self, Error>
Register one explicit unicast route for a Device recipient.
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.
Set the policy that authorizes inbound LifeSafetyOperation requests.
Sourcepub fn audit_notification_sink(self, sink: ObjectIdentifier) -> Self
pub fn audit_notification_sink(self, sink: ObjectIdentifier) -> Self
Select the only local Audit Log that receives authorized notifications.
Set the fail-closed ConfirmedAuditNotification authorization policy.
Set the fail-closed UnconfirmedAuditNotification authorization policy.
Sourcepub fn enable_fault_detection(self, enabled: bool) -> Self
pub fn enable_fault_detection(self, enabled: bool) -> Self
Enable periodic fault detection / reliability evaluation.
When enabled, every object’s opt-in reliability hook runs every 10 seconds; the default hook is a no-op.
Reliability evaluation only; Event Enrollment evaluation is configured
by enable_event_enrollment.
Sourcepub fn enable_event_enrollment(self, enabled: bool) -> Self
pub fn enable_event_enrollment(self, enabled: bool) -> Self
Enable periodic Event Enrollment evaluation (default true).
Sourcepub fn event_enrollment_interval_secs(self, secs: u64) -> Self
pub fn event_enrollment_interval_secs(self, secs: u64) -> Self
Set the interval in seconds between Event Enrollment evaluation passes (default 10).
Sourcepub fn segmentation_supported(self, segmentation: Segmentation) -> Self
pub fn segmentation_supported(self, segmentation: Segmentation) -> Self
Set the segmentation support this device advertises and enforces.
The dispatch loop honors the advertisement (Clause 5.4.5.1): inbound
segmented requests are reassembled only under BOTH or RECEIVE, and
draw a SEGMENTATION_NOT_SUPPORTED Abort otherwise. The default is
NONE.
Sourcepub fn vendor_id(self, id: u16) -> Self
pub fn vendor_id(self, id: u16) -> Self
Set the vendor identifier (used in IAm responses and protocol operations).
Sourcepub async fn build(self) -> Result<BACnetServer<T>, Error>
pub async fn build(self) -> Result<BACnetServer<T>, Error>
Build and start the server.