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: u64
Size of the underlying data, in bytes
readonly: bool
Tell client it’s readonly
resizeable: bool
Tell that NBD_CMD_RESIZE should be supported. Not implemented in this library currently
rotational: bool
Tell that the exposed device has slow seeks, hence clients should use elevator algorithm
send_trim: bool
Tell that NBD_CMD_TRIM operation is supported. Not implemented in this library currently
send_flush: bool
Tell that NBD_CMD_FLUSH may be sent
data: Data
Associated 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: PartialEq> PartialEq for Export<Data>
impl<Data: PartialEq> PartialEq for Export<Data>
source§impl<Data: PartialOrd> PartialOrd for Export<Data>
impl<Data: PartialOrd> PartialOrd for Export<Data>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<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