Struct nbd::Export[][src]

pub struct Export {
    pub size: u64,
    pub readonly: bool,
    pub resizeable: bool,
    pub rotational: bool,
    pub send_trim: bool,
    pub send_flush: bool,
}

Information about an export (without name)

Fields

Size of the underlying data, in bytes

Tell client it's readonly

Tell that NBD_CMD_RESIZE should be supported. Not implemented in this library currently

Tell that the exposed device has slow seeks, hence clients should use elevator algorithm

Tell that NBD_CMD_TRIM operation is supported. Not implemented in this library currently

Tell that NBD_CMD_FLUSH may be sent

Trait Implementations

impl Debug for Export
[src]

Formats the value using the given formatter. Read more

impl Default for Export
[src]

Returns the "default value" for a type. Read more

impl Hash for Export
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Eq for Export
[src]

impl PartialEq for Export
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Ord for Export
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialOrd for Export
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

impl Send for Export

impl Sync for Export