pub struct Device<'a> { /* private fields */ }

Implementations

Add a Card to the Device.

Add a Task to the system.

Remove all Cards from the Device.

Remove all Tasks from the Device.

Remove all TimeProfiles from the Device.

Remove a Card from the Device.

Get a specific Card by its ID.

Get a specific Card by its index.

Get the number of Cards from the Device.

Get a DeviceConfig for a the Device.

Get a DoorControl for a specific door. Note that doors are addressed 1-4, not 0-3.

Get an Event by its index.

Get the event index the Device

Get what listener (IP:PORT) is set on the Device. This is where the the Device will send Status messages to over UDP.

Get the Status of the Device.

Get the current time of the Device.

Get the TimeProfile by ID.

Open a door. Note that doors are addressed 1-4, not 0-3.

Refresh the task list of the Device.

Set the DoorControl for a specific door. Note that the delay is in seconds and can maximally be 255.

Set the event index the Device will use.

Set the listener (IP:PORT) the Device will use to send Status messages to over UDP.

Set IP address, subnet mask and gateway for the Device.

Enable the recording of special events.

Set the local time of the Device.

Add or update new TimeProfile to the Device.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.