pub enum Destination {
Mac(Vec<u8>),
Device(u32),
}Expand description
Where a service request goes.
Variants§
Mac(Vec<u8>)
A MAC on this network.
Device(u32)
A device in the client’s discovery table, local or routed.
Implementations§
Source§impl Destination
impl Destination
Sourcepub async fn atomic_read_file<T: TransportPort + 'static>(
&self,
client: &BACnetClient<T>,
file: ObjectIdentifier,
access: FileAccessMethod,
) -> Result<AtomicReadFileAck, Error>
pub async fn atomic_read_file<T: TransportPort + 'static>( &self, client: &BACnetClient<T>, file: ObjectIdentifier, access: FileAccessMethod, ) -> Result<AtomicReadFileAck, Error>
One checked stream or record file window.
Sourcepub async fn atomic_write_file<T: TransportPort + 'static>(
&self,
client: &BACnetClient<T>,
file: ObjectIdentifier,
access: FileWriteAccessMethod,
) -> Result<Bytes, Error>
pub async fn atomic_write_file<T: TransportPort + 'static>( &self, client: &BACnetClient<T>, file: ObjectIdentifier, access: FileWriteAccessMethod, ) -> Result<Bytes, Error>
AtomicWriteFile, retaining its raw service acknowledgement.
Sourcepub async fn create_object<T: TransportPort + 'static>(
&self,
client: &BACnetClient<T>,
specifier: ObjectSpecifier,
initial_values: Vec<BACnetPropertyValue>,
) -> Result<ObjectIdentifier, Error>
pub async fn create_object<T: TransportPort + 'static>( &self, client: &BACnetClient<T>, specifier: ObjectSpecifier, initial_values: Vec<BACnetPropertyValue>, ) -> Result<ObjectIdentifier, Error>
Create an object, returning the identifier its acknowledgement names.
Sourcepub async fn delete_object<T: TransportPort + 'static>(
&self,
client: &BACnetClient<T>,
object: ObjectIdentifier,
) -> Result<(), Error>
pub async fn delete_object<T: TransportPort + 'static>( &self, client: &BACnetClient<T>, object: ObjectIdentifier, ) -> Result<(), Error>
Delete the identified object.
Sourcepub async fn acknowledge_alarm_request<T: TransportPort + 'static>(
&self,
client: &BACnetClient<T>,
request: &AcknowledgeAlarmRequest,
) -> Result<(), Error>
pub async fn acknowledge_alarm_request<T: TransportPort + 'static>( &self, client: &BACnetClient<T>, request: &AcknowledgeAlarmRequest, ) -> Result<(), Error>
Acknowledge an alarm with the caller’s exact request.
Sourcepub async fn device_communication_control<T: TransportPort + 'static>(
&self,
client: &BACnetClient<T>,
state: EnableDisable,
duration: Option<u16>,
password: Option<String>,
) -> Result<(), Error>
pub async fn device_communication_control<T: TransportPort + 'static>( &self, client: &BACnetClient<T>, state: EnableDisable, duration: Option<u16>, password: Option<String>, ) -> Result<(), Error>
Dispatch device_communication_control through the resolved device or local MAC.
Sourcepub async fn reinitialize_device<T: TransportPort + 'static>(
&self,
client: &BACnetClient<T>,
state: ReinitializedState,
password: Option<String>,
) -> Result<(), Error>
pub async fn reinitialize_device<T: TransportPort + 'static>( &self, client: &BACnetClient<T>, state: ReinitializedState, password: Option<String>, ) -> Result<(), Error>
Dispatch reinitialize_device through the resolved device or local MAC.
Sourcepub async fn time_synchronization<T: TransportPort + 'static>(
&self,
client: &BACnetClient<T>,
date: Date,
time: Time,
utc: bool,
) -> Result<(), Error>
pub async fn time_synchronization<T: TransportPort + 'static>( &self, client: &BACnetClient<T>, date: Date, time: Time, utc: bool, ) -> Result<(), Error>
Send the selected unconfirmed time service once.
Sourcepub async fn get_event_information<T: TransportPort + 'static>(
&self,
client: &BACnetClient<T>,
last: Option<ObjectIdentifier>,
) -> Result<GetEventInformationAck, Error>
pub async fn get_event_information<T: TransportPort + 'static>( &self, client: &BACnetClient<T>, last: Option<ObjectIdentifier>, ) -> Result<GetEventInformationAck, Error>
GetEventInformation from after last, decoded.
Sourcepub async fn get_alarm_summary<T: TransportPort + 'static>(
&self,
client: &BACnetClient<T>,
) -> Result<GetAlarmSummaryAck, Error>
pub async fn get_alarm_summary<T: TransportPort + 'static>( &self, client: &BACnetClient<T>, ) -> Result<GetAlarmSummaryAck, Error>
GetAlarmSummary, decoded.
Sourcepub async fn get_enrollment_summary<T: TransportPort + 'static>(
&self,
client: &BACnetClient<T>,
request: &GetEnrollmentSummaryRequest,
) -> Result<GetEnrollmentSummaryAck, Error>
pub async fn get_enrollment_summary<T: TransportPort + 'static>( &self, client: &BACnetClient<T>, request: &GetEnrollmentSummaryRequest, ) -> Result<GetEnrollmentSummaryAck, Error>
GetEnrollmentSummary with the caller’s filters, decoded.
Sourcepub async fn read_range<T: TransportPort + 'static>(
&self,
client: &BACnetClient<T>,
request: &ReadRangeRequest,
validation: ReadRangeValidation,
) -> Result<ReadRangeReply, Error>
pub async fn read_range<T: TransportPort + 'static>( &self, client: &BACnetClient<T>, request: &ReadRangeRequest, validation: ReadRangeValidation, ) -> Result<ReadRangeReply, Error>
ReadRange with the selected acknowledgement validation.
Sourcepub async fn read_log_page<T: TransportPort + 'static>(
&self,
client: &BACnetClient<T>,
log: ObjectIdentifier,
cursor: LogCursor,
page_size: u16,
) -> Result<LogPage, Error>
pub async fn read_log_page<T: TransportPort + 'static>( &self, client: &BACnetClient<T>, log: ObjectIdentifier, cursor: LogCursor, page_size: u16, ) -> Result<LogPage, Error>
One log page, including all metadata and range subrequests.
Sourcepub async fn log_columns<T: TransportPort + 'static>(
&self,
client: &BACnetClient<T>,
log: ObjectIdentifier,
) -> LogColumns
pub async fn log_columns<T: TransportPort + 'static>( &self, client: &BACnetClient<T>, log: ObjectIdentifier, ) -> LogColumns
What each column of log samples, from its
Log_DeviceObjectProperty: one ReadProperty for a Trend Log or Trend
Log Multiple, none for another log. A refused, failed or empty read
names no column, so the values print as the log gives them (#2091).
Sourcepub async fn log_state_texts<T: TransportPort + 'static>(
&self,
client: &BACnetClient<T>,
columns: &mut LogColumns,
)
pub async fn log_state_texts<T: TransportPort + 'static>( &self, client: &BACnetClient<T>, columns: &mut LogColumns, )
Name the states columns sample with their objects’ state texts,
as Engine::log_state_texts
does: one request an object, each object once, at most
MAX_STATE_TEXT_OBJECTS.
A reference that names a device is read only when it names this
destination’s device: one addressed by instance, or a MAC the
client’s discovery table holds for exactly one device. A refused
read leaves its columns named as before, a device that refuses
ReadPropertyMultiple is read by ReadProperty for the rest of the
objects, and a device that stops answering ends the reading (#2122).
Sourcepub async fn state_texts<T: TransportPort + 'static>(
&self,
client: &BACnetClient<T>,
object: ObjectIdentifier,
no_rpm: &Cell<bool>,
) -> Result<StateTexts, Error>
pub async fn state_texts<T: TransportPort + 'static>( &self, client: &BACnetClient<T>, object: ObjectIdentifier, no_rpm: &Cell<bool>, ) -> Result<StateTexts, Error>
object’s state texts as the device sent them, for naming the
states a one-shot read prints (#2132): one ReadProperty of a
multi-state object’s State_Text, or one ReadPropertyMultiple of a
binary object’s Active_Text and Inactive_Text, and nothing for
another object type. no_rpm is the caller’s memory of the device
refusing ReadPropertyMultiple: once set, by the first refusal, the
pair goes by ReadProperty each, so reading several objects costs
one refused RPM in all, not one an object.
Best effort: a refused or failed read gives no texts. The error
comes back only when the device, or the way to it, stopped
answering (unreachable()), so a caller reading several objects
stops asking. Clean the texts before showing them
(StateTexts::cleaned).
Sourcepub async fn read_property<T: TransportPort + 'static>(
&self,
client: &BACnetClient<T>,
object: ObjectIdentifier,
property: PropertyIdentifier,
index: Option<u32>,
) -> Result<ReadPropertyACK, Error>
pub async fn read_property<T: TransportPort + 'static>( &self, client: &BACnetClient<T>, object: ObjectIdentifier, property: PropertyIdentifier, index: Option<u32>, ) -> Result<ReadPropertyACK, Error>
ReadProperty.
Sourcepub async fn read_property_multiple<T: TransportPort + 'static>(
&self,
client: &BACnetClient<T>,
specs: Vec<ReadAccessSpecification>,
) -> Result<ReadPropertyMultipleACK, Error>
pub async fn read_property_multiple<T: TransportPort + 'static>( &self, client: &BACnetClient<T>, specs: Vec<ReadAccessSpecification>, ) -> Result<ReadPropertyMultipleACK, Error>
ReadPropertyMultiple.
Sourcepub async fn write_property<T: TransportPort + 'static>(
&self,
client: &BACnetClient<T>,
object: ObjectIdentifier,
property: PropertyIdentifier,
index: Option<u32>,
value: Vec<u8>,
priority: Option<u8>,
) -> Result<(), Error>
pub async fn write_property<T: TransportPort + 'static>( &self, client: &BACnetClient<T>, object: ObjectIdentifier, property: PropertyIdentifier, index: Option<u32>, value: Vec<u8>, priority: Option<u8>, ) -> Result<(), Error>
WriteProperty of an encoded value.
Sourcepub async fn write_property_multiple<T: TransportPort + 'static>(
&self,
client: &BACnetClient<T>,
specs: Vec<WriteAccessSpecification>,
) -> Result<(), Error>
pub async fn write_property_multiple<T: TransportPort + 'static>( &self, client: &BACnetClient<T>, specs: Vec<WriteAccessSpecification>, ) -> Result<(), Error>
WritePropertyMultiple.
Sourcepub async fn subscribe_cov<T: TransportPort + 'static>(
&self,
client: &BACnetClient<T>,
process: u32,
object: ObjectIdentifier,
confirmed: bool,
lifetime: Option<u32>,
) -> Result<(), Error>
pub async fn subscribe_cov<T: TransportPort + 'static>( &self, client: &BACnetClient<T>, process: u32, object: ObjectIdentifier, confirmed: bool, lifetime: Option<u32>, ) -> Result<(), Error>
SubscribeCOV for object, from process process.
Sourcepub async fn unsubscribe_cov<T: TransportPort + 'static>(
&self,
client: &BACnetClient<T>,
process: u32,
object: ObjectIdentifier,
) -> Result<(), Error>
pub async fn unsubscribe_cov<T: TransportPort + 'static>( &self, client: &BACnetClient<T>, process: u32, object: ObjectIdentifier, ) -> Result<(), Error>
Cancel process process’s subscription to object.