pub struct BlockDeviceConfig {
pub device: String,
pub from: BlockDeviceIdentifiers,
}
Expand description
A mapping of a semantic label for a block device to board-specific identifiers for that block device. The identifiers are used by fshost to match block devices as they come in, which then are exported under the configured semantic label. Only the first block device that matches will be exported, any others will be ignored.
Fields§
§device: String
The semantic label, or name for the block device to be routed by.
from: BlockDeviceIdentifiers
The identifiers to match against. The block device must match both the label and the parent identifiers to be selected for this label.
Trait Implementations§
Source§impl Clone for BlockDeviceConfig
impl Clone for BlockDeviceConfig
Source§fn clone(&self) -> BlockDeviceConfig
fn clone(&self) -> BlockDeviceConfig
Returns a copy 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 moreSource§impl Debug for BlockDeviceConfig
impl Debug for BlockDeviceConfig
Source§impl<'de> Deserialize<'de> for BlockDeviceConfig
impl<'de> Deserialize<'de> for BlockDeviceConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BlockDeviceConfig
impl PartialEq for BlockDeviceConfig
Source§impl Serialize for BlockDeviceConfig
impl Serialize for BlockDeviceConfig
impl StructuralPartialEq for BlockDeviceConfig
Auto Trait Implementations§
impl Freeze for BlockDeviceConfig
impl RefUnwindSafe for BlockDeviceConfig
impl Send for BlockDeviceConfig
impl Sync for BlockDeviceConfig
impl Unpin for BlockDeviceConfig
impl UnwindSafe for BlockDeviceConfig
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