Trait rasn_smi::ObjectType

source ·
pub trait ObjectType
where Self: TryInto<Self::Syntax>, <Self as TryInto<Self::Syntax>>::Error: Error + Display,
{ type SmiSyntax: SmiSyntax; type Syntax: Into<Self::SmiSyntax>; const ACCESS: Access; const STATUS: Status; const VALUE: &'static Oid; // Provided method fn into_object_syntax( self, codec: Codec ) -> Result<Self::SmiSyntax, <Self as TryInto<Self::Syntax>>::Error> { ... } }
Expand description

A managed Management Information Base (MIB) object.

Required Associated Types§

source

type SmiSyntax: SmiSyntax

The version of SMI syntax that this type uses.

source

type Syntax: Into<Self::SmiSyntax>

The abstract syntax for the object type. This must resolve to an instance of the SMI type.

Required Associated Constants§

source

const ACCESS: Access

Determines the access level of the object.

source

const STATUS: Status

The current status of the object.

source

const VALUE: &'static Oid

The object identifier for the object.

Provided Methods§

source

fn into_object_syntax( self, codec: Codec ) -> Result<Self::SmiSyntax, <Self as TryInto<Self::Syntax>>::Error>

Converts self into its SMI data type.

§Errors

Returns custom EncodeError if the conversion fails.

Object Safety§

This trait is not object safe.

Implementors§