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: StringThe semantic label, or name for the block device to be routed by.
from: BlockDeviceIdentifiersThe 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 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 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<BlockDeviceConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BlockDeviceConfig, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more