Struct freebsd_geom::Edge[][src]

pub struct Edge {
    pub name: String,
    pub mode: Mode,
    pub mediasize: u64,
    pub sectorsize: u64,
    pub stripesize: u64,
    pub stripeoffset: u64,
    pub metadata: Option<Box<EdgeMetadata>>,
    pub consumer_geom: NodeId,
    pub provider_geom: NodeId,
}

An Edge connects two Geoms in a tree.

In GEOM terminology, it represents a Consumer-Provider pair.

Fields

name: String

The name of the Edge, established by the “provider” (associated with the parent Geom).

Not identical to the parent Geom’s name; for example, GeomClass::PART geoms will have names the represent the entire partition table, but individual Edges from them will have names specific to a single partition entry.

mode: Mode

GEOM internal access reference counts

mediasize: u64

The size of the logical volume represented, in bytes

sectorsize: u64

The native sector size of the underlying volume, in bytes

stripesize: u64

The “stripe size” of the underlying media, in bytes (if any; may be zero)

stripeoffset: u64metadata: Option<Box<EdgeMetadata>>

Metadata for Edges descending from DISK, PART, or LABEL Geoms.

consumer_geom: NodeId

Child, or consumer Geom.

provider_geom: NodeId

Parent, or provider Geom.

Trait Implementations

impl Debug for Edge[src]

Auto Trait Implementations

impl RefUnwindSafe for Edge

impl Send for Edge

impl Sync for Edge

impl Unpin for Edge

impl UnwindSafe for Edge

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