pub struct OfferParams {
pub interface_name: String,
pub instance_id: Guid,
pub interface_id: Guid,
pub mmio_megabytes: u16,
pub mmio_megabytes_optional: u16,
pub channel_type: ChannelType,
pub subchannel_index: u16,
pub mnf_interrupt_latency: Option<Duration>,
pub offer_order: Option<u32>,
pub allow_confidential_external_memory: bool,
}
Expand description
Channel offer parameters.
Fields§
§interface_name: String
An informational string describing the channel type.
instance_id: Guid
The unique instance ID for the channel.
interface_id: Guid
The interface ID describing the type of channel.
mmio_megabytes: u16
The amount of MMIO space needed by the channel, in megabytes.
mmio_megabytes_optional: u16
The amount of optional MMIO space used by the channel, in megabytes.
channel_type: ChannelType
The channel’s type.
subchannel_index: u16
The subchannel index. Index 0 indicates a primary (normal channel).
mnf_interrupt_latency: Option<Duration>
Indicates whether the channel’s interrupts should use monitor pages, and the interrupt latency if it’s enabled.
offer_order: Option<u32>
The order in which channels with the same interface will be offered to the guest (optional).
allow_confidential_external_memory: bool
Indicates whether the channel supports using encrypted memory for any external GPADLs and GPA direct ranges. This is only used when hardware isolation is in use.
Implementations§
Trait Implementations§
Source§impl Clone for OfferParams
impl Clone for OfferParams
Source§fn clone(&self) -> OfferParams
fn clone(&self) -> OfferParams
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 OfferParams
impl Debug for OfferParams
Source§impl Default for OfferParams
impl Default for OfferParams
Source§fn default() -> OfferParams
fn default() -> OfferParams
Returns the “default value” for a type. Read more
Source§impl DefaultEncoding for OfferParams
impl DefaultEncoding for OfferParams
Source§type Encoding = TableEncoder
type Encoding = TableEncoder
The encoding to use for the serialization. Read more
Source§impl<'encoding> StructDecodeMetadata<'encoding, Resource> for OfferParams
impl<'encoding> StructDecodeMetadata<'encoding, Resource> for OfferParams
Source§const DECODERS: &'static [ErasedDecoderEntry]
const DECODERS: &'static [ErasedDecoderEntry]
The list of decoder vtables.
Source§impl StructEncodeMetadata<Resource> for OfferParams
impl StructEncodeMetadata<Resource> for OfferParams
Source§const ENCODERS: &'static [ErasedEncoderEntry]
const ENCODERS: &'static [ErasedEncoderEntry]
The list of encoder vtables.
Auto Trait Implementations§
impl Freeze for OfferParams
impl RefUnwindSafe for OfferParams
impl Send for OfferParams
impl Sync for OfferParams
impl Unpin for OfferParams
impl UnwindSafe for OfferParams
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> MeshField for Twhere
T: DefaultEncoding,
<T as DefaultEncoding>::Encoding: FieldEncode<T, Resource> + for<'a> FieldDecode<'a, T, Resource> + Send + Sync,
impl<T> MeshField for Twhere
T: DefaultEncoding,
<T as DefaultEncoding>::Encoding: FieldEncode<T, Resource> + for<'a> FieldDecode<'a, T, Resource> + Send + Sync,
type Encoding = <T as DefaultEncoding>::Encoding
Source§impl<T> MeshPayload for Twhere
T: DefaultEncoding + Any + Send + 'static,
<T as DefaultEncoding>::Encoding: MessageEncode<T, Resource> + for<'a> MessageDecode<'a, T, Resource> + FieldEncode<T, Resource> + for<'a> FieldDecode<'a, T, Resource> + Send + Sync,
impl<T> MeshPayload for Twhere
T: DefaultEncoding + Any + Send + 'static,
<T as DefaultEncoding>::Encoding: MessageEncode<T, Resource> + for<'a> MessageDecode<'a, T, Resource> + FieldEncode<T, Resource> + for<'a> FieldDecode<'a, T, Resource> + Send + Sync,
type Encoding = <T as DefaultEncoding>::Encoding
Source§impl<T> SerializeMessage for Twhere
T: 'static + MeshPayload + Send,
impl<T> SerializeMessage for Twhere
T: 'static + MeshPayload + Send,
Source§fn compute_message_size(&mut self, sizer: MessageSizer<'_>)
fn compute_message_size(&mut self, sizer: MessageSizer<'_>)
Computes the message size, as in
MessageEncode::compute_message_size
.Source§fn write_message(self, writer: MessageWriter<'_, '_, Resource>)
fn write_message(self, writer: MessageWriter<'_, '_, Resource>)
Writes the message, as in
MessageEncode::write_message
.Source§fn extract(self) -> <T as SerializeMessage>::Concrete
fn extract(self) -> <T as SerializeMessage>::Concrete
Extract the concrete message.