pub struct ObjectStoreHandler { /* private fields */ }Expand description
A ServiceHandler that delegates directly to an Arc<ObjectStore>.
ReadProperty returns the stored value or the appropriate error. WriteProperty always accepts writes (no write-protection logic).
Implementations§
Source§impl ObjectStoreHandler
impl ObjectStoreHandler
Sourcepub fn new(store: Arc<ObjectStore>) -> Self
pub fn new(store: Arc<ObjectStore>) -> Self
Wrap an existing shared store.
Trait Implementations§
Source§impl ServiceHandler for ObjectStoreHandler
impl ServiceHandler for ObjectStoreHandler
Source§fn read_property(
&self,
object_id: ObjectId,
property_id: PropertyId,
_array_index: Option<u32>,
) -> Result<ClientDataValue, BacnetServiceError>
fn read_property( &self, object_id: ObjectId, property_id: PropertyId, _array_index: Option<u32>, ) -> Result<ClientDataValue, BacnetServiceError>
Called for a ReadProperty confirmed request.
Source§fn write_property(
&self,
object_id: ObjectId,
property_id: PropertyId,
_array_index: Option<u32>,
value: ClientDataValue,
_priority: Option<u8>,
) -> Result<(), BacnetServiceError>
fn write_property( &self, object_id: ObjectId, property_id: PropertyId, _array_index: Option<u32>, value: ClientDataValue, _priority: Option<u8>, ) -> Result<(), BacnetServiceError>
Called for a WriteProperty confirmed request.
Auto Trait Implementations§
impl Freeze for ObjectStoreHandler
impl RefUnwindSafe for ObjectStoreHandler
impl Send for ObjectStoreHandler
impl Sync for ObjectStoreHandler
impl Unpin for ObjectStoreHandler
impl UnsafeUnpin for ObjectStoreHandler
impl UnwindSafe for ObjectStoreHandler
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