pub struct BACnetServer<T: TransportPort> { /* private fields */ }Expand description
BACnet server with APDU dispatch and service handling.
Implementations§
Source§impl BACnetServer<BipTransport>
impl BACnetServer<BipTransport>
Sourcepub fn bip_builder() -> BipServerBuilder
pub fn bip_builder() -> BipServerBuilder
Create a BIP-specific builder with interface/port/broadcast fields.
Sourcepub fn builder() -> BipServerBuilder
pub fn builder() -> BipServerBuilder
Create a BIP-specific builder (alias for backward compatibility).
Source§impl<T: TransportPort + 'static> BACnetServer<T>
impl<T: TransportPort + 'static> BACnetServer<T>
Sourcepub fn generic_builder() -> ServerBuilder<T>
pub fn generic_builder() -> ServerBuilder<T>
Create a generic builder that accepts a pre-built transport.
Sourcepub async fn start(
config: ServerConfig,
db: ObjectDatabase,
transport: T,
) -> Result<Self, Error>
pub async fn start( config: ServerConfig, db: ObjectDatabase, transport: T, ) -> Result<Self, Error>
Start the server with a pre-built transport.
Sourcepub fn database(&self) -> &Arc<RwLock<ObjectDatabase>>
pub fn database(&self) -> &Arc<RwLock<ObjectDatabase>>
Get a reference to the shared object database.
Sourcepub fn comm_state(&self) -> u8
pub fn comm_state(&self) -> u8
Get the communication state per DeviceCommunicationControl.
Returns 0 (Enable), 1 (Disable), or 2 (DisableInitiation).
Sourcepub async fn generate_pics(&self, pics_config: &PicsConfig) -> Pics
pub async fn generate_pics(&self, pics_config: &PicsConfig) -> Pics
Generate a PICS document from the current object database and server configuration.
The caller must supply a [PicsConfig] for fields not available from the server
(vendor name, model, firmware revision, etc.).
Auto Trait Implementations§
impl<T> Freeze for BACnetServer<T>
impl<T> !RefUnwindSafe for BACnetServer<T>
impl<T> Send for BACnetServer<T>
impl<T> Sync for BACnetServer<T>
impl<T> Unpin for BACnetServer<T>
impl<T> UnsafeUnpin for BACnetServer<T>
impl<T> !UnwindSafe for BACnetServer<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