pub struct Bacnet<T>{
pub io: T,
/* private fields */
}Fields§
§io: TImplementations§
Source§impl<T> Bacnet<T>
impl<T> Bacnet<T>
pub fn new(io: T) -> Self
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Returns the socket back to the caller and consumes self
pub async fn who_is( &self, buf: &mut [u8], ) -> Result<Option<IAm>, BacnetError<T>>
pub async fn read_property_multiple<'a>( &self, buf: &mut [u8], request: ReadPropertyMultiple<'_>, addr: Option<NetworkAddress>, ) -> Result<ReadPropertyMultipleAck<'a>, BacnetError<T>>
pub async fn read_property<'a>( &self, buf: &mut [u8], request: ReadProperty, addr: Option<NetworkAddress>, ) -> Result<ReadPropertyAck<'a>, BacnetError<T>>
pub async fn subscribe_change_of_value( &self, buf: &mut [u8], request: SubscribeCov, ) -> Result<(), BacnetError<T>>
pub async fn read_change_of_value<'a>( &self, buf: &mut [u8], ) -> Result<Option<CovNotification<'a>>, BacnetError<T>>
pub async fn read_range<'a>( &self, buf: &mut [u8], request: ReadRange, ) -> Result<ReadRangeAck<'a>, BacnetError<T>>
pub async fn write_property<'a>( &self, buf: &mut [u8], request: WriteProperty<'_>, addr: Option<NetworkAddress>, ) -> Result<(), BacnetError<T>>
pub async fn time_sync( &self, buf: &mut [u8], request: TimeSynchronization, ) -> Result<(), BacnetError<T>>
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for Bacnet<T>
impl<T> RefUnwindSafe for Bacnet<T>where
T: RefUnwindSafe,
impl<T> Send for Bacnet<T>where
T: Send,
impl<T> Sync for Bacnet<T>where
T: Sync,
impl<T> Unpin for Bacnet<T>where
T: Unpin,
impl<T> UnwindSafe for Bacnet<T>where
T: UnwindSafe,
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