NetworkDevice

Enum NetworkDevice 

Source
pub enum NetworkDevice {
    CableInserted(String, String),
    DegradedConnectionEstablished(String, String, String),
    LinkFlapDetected(String, String, String, f64, f64),
    CableRemoved(String, String),
    ConnectionDropped(String, String, String),
    ConnectionEstablished(String, String, String),
}
Expand description

This registry defines the messages for networking devices

Variants§

§

CableInserted(String, String)

This message shall be used to indicate that a network cable has been inserted. This message shall not be sent for a backplane connection.

Tuple Fields

§0: String

The value of this argument shall contain a string that identifies or describes the location or physical context of the network adapter into which a cable has been plugged.

§1: String

The value of this argument shall contain a string that identifies or describes the location or physical context of the network port into which a cable has been plugged.

§

DegradedConnectionEstablished(String, String, String)

This message shall be used to indicate that a network connection is newly established, but that the link speed is lower than provisioned for the channel.

Tuple Fields

§0: String

The value of this argument shall contain a string that identifies or describes the location or physical context of the network adapter to which a connection has been established.

§1: String

The value of this argument shall contain a string that identifies or describes the location or physical context of the network port to which a connection has been established.

§2: String

The value of this argument shall contain a string that identifies or describes the location or physical context of the network device function to which a connection has been established.

§

LinkFlapDetected(String, String, String, f64, f64)

This message shall be used to indicate that a network connection has repeatedly been established and dropped. This message shall not be repeated more than once in any 24 hour period.

Tuple Fields

§0: String

The value of this argument shall contain a string that identifies or describes the location or physical context of the network adapter to which a connection has been established.

§1: String

The value of this argument shall contain a string that identifies or describes the location or physical context of the network port to which a connection has been established.

§2: String

The value of this argument shall contain a string that identifies or describes the location or physical context of the network device function to which a connection has been established.

§3: f64

The value of this argument shall be a number representing the count of link establishment/disconnection cycles.

§4: f64

The value of this argument shall be a number representing the number of minutes over which link flapping activity has been detected.

§

CableRemoved(String, String)

This message shall be used to indicate that a network cable has been removed. This message shall not be sent for a backplane connection.

Tuple Fields

§0: String

The value of this argument shall contain a string that identifies or describes the location or physical context of the network adapter from which a cable has been unplugged.

§1: String

The value of this argument shall contain a string that identifies or describes the location or physical context of the network port from which a cable has been unplugged.

§

ConnectionDropped(String, String, String)

This message shall be used to indicate that the link for a network connection is no longer intact.

Tuple Fields

§0: String

The value of this argument shall contain a string that identifies or describes the location or physical context of the network adapter from which a connection has dropped.

§1: String

The value of this argument shall contain a string that identifies or describes the location or physical context of the network port from which a connection has dropped.

§2: String

The value of this argument shall contain a string that identifies or describes the location or physical context of the network device function from which a connection has dropped.

§

ConnectionEstablished(String, String, String)

This message shall be used to indicate that the link for a network connection is newly established.

Tuple Fields

§0: String

The value of this argument shall contain a string that identifies or describes the location or physical context of the network adapter to which a connection has been established.

§1: String

The value of this argument shall contain a string that identifies or describes the location or physical context of the network port to which a connection has been established.

§2: String

The value of this argument shall contain a string that identifies or describes the location or physical context of the network device function to which a connection has been established.

Trait Implementations§

Source§

impl Clone for NetworkDevice

Source§

fn clone(&self) -> NetworkDevice

Returns a duplicate 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 NetworkDevice

Source§

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

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

impl Into<Message> for NetworkDevice

Source§

fn into(self) -> Message

Converts this type into the (usually inferred) input type.

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

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