pub struct BACnetServer { /* private fields */ }Expand description
BACnet/IP server.
Implementations§
Source§impl BACnetServer
impl BACnetServer
Sourcepub fn new(config: ServerConfig, objects: ObjectRegistry) -> Self
pub fn new(config: ServerConfig, objects: ObjectRegistry) -> Self
Create a new BACnet/IP server.
Sourcepub fn with_services(self, services: ServiceRegistry) -> Self
pub fn with_services(self, services: ServiceRegistry) -> Self
Create with custom service registry.
Sourcepub fn with_tsm_config(self, config: TsmConfig) -> Self
pub fn with_tsm_config(self, config: TsmConfig) -> Self
Create with custom TSM configuration.
Sourcepub fn with_bbmd_config(self, config: BbmdConfig) -> Self
pub fn with_bbmd_config(self, config: BbmdConfig) -> Self
Create with custom BBMD configuration.
Sourcepub fn objects(&self) -> &Arc<ObjectRegistry> ⓘ
pub fn objects(&self) -> &Arc<ObjectRegistry> ⓘ
Get the object registry.
Sourcepub fn metrics(&self) -> &Arc<ServerMetrics> ⓘ
pub fn metrics(&self) -> &Arc<ServerMetrics> ⓘ
Get server metrics.
Sourcepub fn subscribe(&self) -> Receiver<ServerEvent>
pub fn subscribe(&self) -> Receiver<ServerEvent>
Subscribe to server events.
Sourcepub fn is_shutdown(&self) -> bool
pub fn is_shutdown(&self) -> bool
Check if shutdown has been requested.
Sourcepub async fn run(&self) -> BacnetResult<()>
pub async fn run(&self) -> BacnetResult<()>
Run the server.
Sourcepub fn segment_assembler(&self) -> &Mutex<SegmentAssembler>
pub fn segment_assembler(&self) -> &Mutex<SegmentAssembler>
Get the segment assembler (for testing / cleanup).
Auto Trait Implementations§
impl !Freeze for BACnetServer
impl !RefUnwindSafe for BACnetServer
impl Send for BACnetServer
impl Sync for BACnetServer
impl Unpin for BACnetServer
impl UnsafeUnpin for BACnetServer
impl !UnwindSafe for BACnetServer
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