Database

Struct Database 

Source
pub struct Database { /* private fields */ }
Expand description

Core database implementation shared between an outstation task and the user facing API. This type is always guarded by a DatabaseHandle which provides a transactional API.

Implementations§

Source§

impl Database

Source

pub fn define_attr( &mut self, prop: AttrProp, attr: OwnedAttribute, ) -> Result<(), AttrDefError>

Define an attribute that will be exposed to the master

Trait Implementations§

Source§

impl Add<AnalogInputConfig> for Database

Source§

fn add( &mut self, index: u16, class: Option<EventClass>, config: AnalogInputConfig, ) -> bool

Add a measurement to the database
Source§

impl Add<AnalogOutputStatusConfig> for Database

Source§

fn add( &mut self, index: u16, class: Option<EventClass>, config: AnalogOutputStatusConfig, ) -> bool

Add a measurement to the database
Source§

impl Add<BinaryInputConfig> for Database

Source§

fn add( &mut self, index: u16, class: Option<EventClass>, config: BinaryInputConfig, ) -> bool

Add a measurement to the database
Source§

impl Add<BinaryOutputStatusConfig> for Database

Source§

fn add( &mut self, index: u16, class: Option<EventClass>, config: BinaryOutputStatusConfig, ) -> bool

Add a measurement to the database
Source§

impl Add<CounterConfig> for Database

Source§

fn add( &mut self, index: u16, class: Option<EventClass>, config: CounterConfig, ) -> bool

Add a measurement to the database
Source§

impl Add<DoubleBitBinaryInputConfig> for Database

Source§

fn add( &mut self, index: u16, class: Option<EventClass>, config: DoubleBitBinaryInputConfig, ) -> bool

Add a measurement to the database
Source§

impl Add<FrozenCounterConfig> for Database

Source§

fn add( &mut self, index: u16, class: Option<EventClass>, config: FrozenCounterConfig, ) -> bool

Add a measurement to the database
Source§

impl Add<OctetStringConfig> for Database

Source§

fn add( &mut self, index: u16, class: Option<EventClass>, _config: OctetStringConfig, ) -> bool

Add a measurement to the database
Source§

impl Get<AnalogInput> for Database

Source§

fn get(&self, index: u16) -> Option<AnalogInput>

retrieve the current value off the database.
Source§

impl Get<AnalogOutputStatus> for Database

Source§

fn get(&self, index: u16) -> Option<AnalogOutputStatus>

retrieve the current value off the database.
Source§

impl Get<BinaryInput> for Database

Source§

fn get(&self, index: u16) -> Option<BinaryInput>

retrieve the current value off the database.
Source§

impl Get<BinaryOutputStatus> for Database

Source§

fn get(&self, index: u16) -> Option<BinaryOutputStatus>

retrieve the current value off the database.
Source§

impl Get<Counter> for Database

Source§

fn get(&self, index: u16) -> Option<Counter>

retrieve the current value off the database.
Source§

impl Get<DoubleBitBinaryInput> for Database

Source§

fn get(&self, index: u16) -> Option<DoubleBitBinaryInput>

retrieve the current value off the database.
Source§

impl Get<FrozenCounter> for Database

Source§

fn get(&self, index: u16) -> Option<FrozenCounter>

retrieve the current value off the database.
Source§

impl Get<OctetString> for Database

Source§

fn get(&self, index: u16) -> Option<OctetString>

retrieve the current value off the database.
Source§

impl Remove<AnalogInput> for Database

Source§

fn remove(&mut self, index: u16) -> bool

Remove a type by index, return true of the value existed, false otherwise Read more
Source§

impl Remove<AnalogOutputStatus> for Database

Source§

fn remove(&mut self, index: u16) -> bool

Remove a type by index, return true of the value existed, false otherwise Read more
Source§

impl Remove<BinaryInput> for Database

Source§

fn remove(&mut self, index: u16) -> bool

Remove a type by index, return true of the value existed, false otherwise Read more
Source§

impl Remove<BinaryOutputStatus> for Database

Source§

fn remove(&mut self, index: u16) -> bool

Remove a type by index, return true of the value existed, false otherwise Read more
Source§

impl Remove<Counter> for Database

Source§

fn remove(&mut self, index: u16) -> bool

Remove a type by index, return true of the value existed, false otherwise Read more
Source§

impl Remove<DoubleBitBinaryInput> for Database

Source§

fn remove(&mut self, index: u16) -> bool

Remove a type by index, return true of the value existed, false otherwise Read more
Source§

impl Remove<FrozenCounter> for Database

Source§

fn remove(&mut self, index: u16) -> bool

Remove a type by index, return true of the value existed, false otherwise Read more
Source§

impl Remove<OctetString> for Database

Source§

fn remove(&mut self, index: u16) -> bool

Remove a type by index, return true of the value existed, false otherwise Read more
Source§

impl Update<AnalogInput> for Database

Source§

fn update2( &mut self, index: u16, value: &AnalogInput, options: UpdateOptions, ) -> UpdateInfo

An overload of Update::update() that provides more information about what occurred
Source§

fn update(&mut self, index: u16, value: &T, options: UpdateOptions) -> bool

Update a value at a particular index. The options control how static/event data is modified Returns true if the update succeeded (i.e. the point exists)
Source§

impl Update<AnalogOutputStatus> for Database

Source§

fn update2( &mut self, index: u16, value: &AnalogOutputStatus, options: UpdateOptions, ) -> UpdateInfo

An overload of Update::update() that provides more information about what occurred
Source§

fn update(&mut self, index: u16, value: &T, options: UpdateOptions) -> bool

Update a value at a particular index. The options control how static/event data is modified Returns true if the update succeeded (i.e. the point exists)
Source§

impl Update<BinaryInput> for Database

Source§

fn update2( &mut self, index: u16, value: &BinaryInput, options: UpdateOptions, ) -> UpdateInfo

An overload of Update::update() that provides more information about what occurred
Source§

fn update(&mut self, index: u16, value: &T, options: UpdateOptions) -> bool

Update a value at a particular index. The options control how static/event data is modified Returns true if the update succeeded (i.e. the point exists)
Source§

impl Update<BinaryOutputStatus> for Database

Source§

fn update2( &mut self, index: u16, value: &BinaryOutputStatus, options: UpdateOptions, ) -> UpdateInfo

An overload of Update::update() that provides more information about what occurred
Source§

fn update(&mut self, index: u16, value: &T, options: UpdateOptions) -> bool

Update a value at a particular index. The options control how static/event data is modified Returns true if the update succeeded (i.e. the point exists)
Source§

impl Update<Counter> for Database

Source§

fn update2( &mut self, index: u16, value: &Counter, options: UpdateOptions, ) -> UpdateInfo

An overload of Update::update() that provides more information about what occurred
Source§

fn update(&mut self, index: u16, value: &T, options: UpdateOptions) -> bool

Update a value at a particular index. The options control how static/event data is modified Returns true if the update succeeded (i.e. the point exists)
Source§

impl Update<DoubleBitBinaryInput> for Database

Source§

fn update2( &mut self, index: u16, value: &DoubleBitBinaryInput, options: UpdateOptions, ) -> UpdateInfo

An overload of Update::update() that provides more information about what occurred
Source§

fn update(&mut self, index: u16, value: &T, options: UpdateOptions) -> bool

Update a value at a particular index. The options control how static/event data is modified Returns true if the update succeeded (i.e. the point exists)
Source§

impl Update<FrozenCounter> for Database

Source§

fn update2( &mut self, index: u16, value: &FrozenCounter, options: UpdateOptions, ) -> UpdateInfo

An overload of Update::update() that provides more information about what occurred
Source§

fn update(&mut self, index: u16, value: &T, options: UpdateOptions) -> bool

Update a value at a particular index. The options control how static/event data is modified Returns true if the update succeeded (i.e. the point exists)
Source§

impl Update<OctetString> for Database

Source§

fn update2( &mut self, index: u16, value: &OctetString, options: UpdateOptions, ) -> UpdateInfo

An overload of Update::update() that provides more information about what occurred
Source§

fn update(&mut self, index: u16, value: &T, options: UpdateOptions) -> bool

Update a value at a particular index. The options control how static/event data is modified Returns true if the update succeeded (i.e. the point exists)
Source§

impl UpdateFlags for Database

Source§

fn update_flags( &mut self, index: u16, flags_type: UpdateFlagsType, flags: Flags, time: Option<Time>, options: UpdateOptions, ) -> UpdateInfo

Update the flags for the specified point without changing the value Read more

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<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<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> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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