pub struct Export<Data = ()> {
pub size: u64,
pub readonly: bool,
pub resizeable: bool,
pub rotational: bool,
pub send_trim: bool,
pub send_flush: bool,
pub data: Data,
}Expand description
Information about an export (without name)
Fields§
§size: u64Size of the underlying data, in bytes
readonly: boolTell client it’s readonly
resizeable: boolTell that NBD_CMD_RESIZE should be supported. Not implemented in this library currently
rotational: boolTell that the exposed device has slow seeks, hence clients should use elevator algorithm
send_trim: boolTell that NBD_CMD_TRIM operation is supported. Not implemented in this library currently
send_flush: boolTell that NBD_CMD_FLUSH may be sent
data: DataAssociated data for the export
Trait Implementations§
Source§impl<Data: Ord> Ord for Export<Data>
impl<Data: Ord> Ord for Export<Data>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<Data: PartialOrd> PartialOrd for Export<Data>
impl<Data: PartialOrd> PartialOrd for Export<Data>
impl<Data: Eq> Eq for Export<Data>
impl<Data> StructuralPartialEq for Export<Data>
Auto Trait Implementations§
impl<Data> Freeze for Export<Data>where
Data: Freeze,
impl<Data> RefUnwindSafe for Export<Data>where
Data: RefUnwindSafe,
impl<Data> Send for Export<Data>where
Data: Send,
impl<Data> Sync for Export<Data>where
Data: Sync,
impl<Data> Unpin for Export<Data>where
Data: Unpin,
impl<Data> UnwindSafe for Export<Data>where
Data: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more