pub struct DataspaceMessage {
pub rank: u8,
pub dataspace_type: u8,
pub dimensions: Vec<u64>,
pub max_dimensions: Option<Vec<u64>>,
}Expand description
Dataspace message — describes the dimensionality of a dataset.
Message type 0x0001.
Fields§
§rank: u8Number of dimensions (0 = scalar).
dataspace_type: u8Dataspace type: 0 = scalar, 1 = simple, 2 = null. Only present for v2 messages; v1 defaults to 1 (simple) for rank > 0, 0 (scalar) for rank == 0.
dimensions: Vec<u64>Current size along each dimension.
max_dimensions: Option<Vec<u64>>Maximum size along each dimension (None = same as current). A value of u64::MAX means unlimited.
Implementations§
Trait Implementations§
Source§impl Clone for DataspaceMessage
impl Clone for DataspaceMessage
Source§fn clone(&self) -> DataspaceMessage
fn clone(&self) -> DataspaceMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DataspaceMessage
impl RefUnwindSafe for DataspaceMessage
impl Send for DataspaceMessage
impl Sync for DataspaceMessage
impl Unpin for DataspaceMessage
impl UnsafeUnpin for DataspaceMessage
impl UnwindSafe for DataspaceMessage
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