pub enum NotifyType {
    OnBoardRequest {
        oui: String,
        product_class: String,
        serial_number: String,
        agent_supported_protocol_versions: String,
    },
    ValueChange {
        param_path: String,
        param_value: String,
    },
    Event {
        obj_path: String,
        event_name: String,
        params: HashMap<String, String>,
    },
    ObjectCreation {
        obj_path: String,
        unique_keys: HashMap<String, String>,
    },
    ObjectDeletion {
        obj_path: String,
    },
    OperationComplete {
        obj_path: String,
        command_name: String,
        command_key: String,
        operation_resp: OperateResponse,
    },
}

Variants§

§

OnBoardRequest

USP OnBoardRequest notification

Fields

§oui: String

The OUI associated with the manufacturer of the device

§product_class: String

The product class associated with the device

§serial_number: String

The serial number of the device

§agent_supported_protocol_versions: String

A comma separated list of supported USP versions

§

ValueChange

USP ValueChange notification

Fields

§param_path: String

The path of the changed parameter

§param_value: String

The new value of the changed parameter

§

Event

USP Event notification

Fields

§obj_path: String

The path of the event

§event_name: String

The name of the event

§params: HashMap<String, String>

A stringified JSON object containing the output arguments of the USP Event

§

ObjectCreation

USP ObjectCreation notification

Fields

§obj_path: String

The path of the created object

§unique_keys: HashMap<String, String>

A stringified JSON object containing the unique_keys and values of the created Object

§

ObjectDeletion

USP ObjectDeletion notification

Fields

§obj_path: String

The path of the deleted object

§

OperationComplete

USP OperationComplete notification

Fields

§obj_path: String

The path of the operation object

§command_name: String

The name of the operated command

§command_key: String

The command key associated with the operation

§operation_resp: OperateResponse

The result of the operation

Trait Implementations§

source§

impl Clone for NotifyType

source§

fn clone(&self) -> NotifyType

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for NotifyType

source§

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

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

impl PartialEq for NotifyType

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for NotifyType

source§

impl StructuralPartialEq for NotifyType

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, 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> ToOwned for T
where T: Clone,

§

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

§

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

§

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.