Skip to main content

Destination

Enum Destination 

Source
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

Source

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.

Source

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.

Source

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.

Source

pub async fn delete_object<T: TransportPort + 'static>( &self, client: &BACnetClient<T>, object: ObjectIdentifier, ) -> Result<(), Error>

Delete the identified object.

Source

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.

Source

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.

Source

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.

Source

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.

Source

pub async fn get_event_information<T: TransportPort + 'static>( &self, client: &BACnetClient<T>, last: Option<ObjectIdentifier>, ) -> Result<GetEventInformationAck, Error>

GetEventInformation from after last, decoded.

Source

pub async fn get_alarm_summary<T: TransportPort + 'static>( &self, client: &BACnetClient<T>, ) -> Result<GetAlarmSummaryAck, Error>

GetAlarmSummary, decoded.

Source

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.

Source

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.

Source

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.

Source

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).

Source

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).

Source

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).

Source

pub async fn read_property<T: TransportPort + 'static>( &self, client: &BACnetClient<T>, object: ObjectIdentifier, property: PropertyIdentifier, index: Option<u32>, ) -> Result<ReadPropertyACK, Error>

ReadProperty.

Source

pub async fn read_property_multiple<T: TransportPort + 'static>( &self, client: &BACnetClient<T>, specs: Vec<ReadAccessSpecification>, ) -> Result<ReadPropertyMultipleACK, Error>

ReadPropertyMultiple.

Source

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.

Source

pub async fn write_property_multiple<T: TransportPort + 'static>( &self, client: &BACnetClient<T>, specs: Vec<WriteAccessSpecification>, ) -> Result<(), Error>

WritePropertyMultiple.

Source

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.

Source

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.

Trait Implementations§

Source§

impl Clone for Destination

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Destination

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Destination

Source§

impl PartialEq for Destination

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Destination

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more