[][src]Struct ethox::nic::Personality

pub struct Personality { /* fields omitted */ }

A general description of a device.

The interaction with these happens purely via methods. This leaves the implementation open to additions in the future, primarily concerning support for other protocols with support from significant network cards.

Methods

impl Personality[src]

pub fn baseline() -> Self[src]

A personality with no extras.

Indicates no support for any upper layer protocols nor does it advertise specific builtin addressing, it does not even provide serial numbers, or manufacturer details. Populate this with your own details as you see fit.

pub fn capabilities(&self) -> &Capabilities[src]

Check the capabilities of the interface.

pub fn capabilities_mut(&mut self) -> &mut Capabilities[src]

Mutably get the capabilities which allows for modifications.

Trait Implementations

impl Clone for Personality[src]

impl Debug for Personality[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.