pub struct BufferCollectionConstraints {
pub usage: Option<BufferUsage>,
pub min_buffer_count_for_camping: Option<u32>,
pub min_buffer_count_for_dedicated_slack: Option<u32>,
pub min_buffer_count_for_shared_slack: Option<u32>,
pub min_buffer_count: Option<u32>,
pub max_buffer_count: Option<u32>,
pub buffer_memory_constraints: Option<BufferMemoryConstraints>,
pub image_format_constraints: Option<Vec<ImageFormatConstraints>>,
}Expand description
Constraints on allocated buffers and, optionally, constraints on images stored in the buffers. These constraints can be specified per-participant. The sysmem service implements aggregation of constraints from multiple participants.
Fields§
§usage: Option<BufferUsage>§min_buffer_count_for_camping: Option<u32>§min_buffer_count_for_dedicated_slack: Option<u32>§min_buffer_count: Option<u32>§max_buffer_count: Option<u32>§buffer_memory_constraints: Option<BufferMemoryConstraints>§image_format_constraints: Option<Vec<ImageFormatConstraints>>Trait Implementations§
Source§impl Clone for BufferCollectionConstraints
impl Clone for BufferCollectionConstraints
Source§fn clone(&self) -> BufferCollectionConstraints
fn clone(&self) -> BufferCollectionConstraints
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BufferCollectionConstraints
impl Debug for BufferCollectionConstraints
Source§impl Default for BufferCollectionConstraints
impl Default for BufferCollectionConstraints
Source§fn default() -> BufferCollectionConstraints
fn default() -> BufferCollectionConstraints
Returns the “default value” for a type. Read more
Source§impl<'a, ___E> Encode<BufferCollectionConstraints<'static>, ___E> for &'a BufferCollectionConstraintswhere
___E: Encoder + ?Sized,
impl<'a, ___E> Encode<BufferCollectionConstraints<'static>, ___E> for &'a BufferCollectionConstraintswhere
___E: Encoder + ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<BufferCollectionConstraints<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<BufferCollectionConstraints<'static>>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<___E> Encode<BufferCollectionConstraints<'static>, ___E> for BufferCollectionConstraintswhere
___E: Encoder + ?Sized,
impl<___E> Encode<BufferCollectionConstraints<'static>, ___E> for BufferCollectionConstraintswhere
___E: Encoder + ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<BufferCollectionConstraints<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<BufferCollectionConstraints<'static>>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<'de> FromWire<BufferCollectionConstraints<'de>> for BufferCollectionConstraints
impl<'de> FromWire<BufferCollectionConstraints<'de>> for BufferCollectionConstraints
Source§fn from_wire(
wire_: BufferCollectionConstraints<'de>,
) -> BufferCollectionConstraints
fn from_wire( wire_: BufferCollectionConstraints<'de>, ) -> BufferCollectionConstraints
Converts the given owned value to this type.
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl<'de> FromWireRef<BufferCollectionConstraints<'de>> for BufferCollectionConstraints
impl<'de> FromWireRef<BufferCollectionConstraints<'de>> for BufferCollectionConstraints
Source§fn from_wire_ref(
wire: &BufferCollectionConstraints<'de>,
) -> BufferCollectionConstraints
fn from_wire_ref( wire: &BufferCollectionConstraints<'de>, ) -> BufferCollectionConstraints
Converts the given reference to this type.
Source§impl PartialEq for BufferCollectionConstraints
impl PartialEq for BufferCollectionConstraints
Source§fn eq(&self, other: &BufferCollectionConstraints) -> bool
fn eq(&self, other: &BufferCollectionConstraints) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BufferCollectionConstraints
Auto Trait Implementations§
impl Freeze for BufferCollectionConstraints
impl RefUnwindSafe for BufferCollectionConstraints
impl Send for BufferCollectionConstraints
impl Sync for BufferCollectionConstraints
impl Unpin for BufferCollectionConstraints
impl UnsafeUnpin for BufferCollectionConstraints
impl UnwindSafe for BufferCollectionConstraints
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, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
Converts the given owned value to an option of this type.
§impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
Converts the given reference to an option of this type.
§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]