pub struct StreamOutputConstraints {
pub stream_lifetime_ordinal: Option<u64>,
pub buffer_constraints_action_required: Option<bool>,
pub buffer_constraints: Option<StreamBufferConstraints>,
/* private fields */
}
Expand description
The stream-processor-controlled output configuration, including both StreamBufferConstraints for the output and FormatDetails for the output.
Fields§
§stream_lifetime_ordinal: Option<u64>
A client which always immediately re-configures output buffers on receipt of OnOutputConstraints() with buffer_constraints_action_required true can safely ignore this field.
A client is permitted to ignore an OnOutputConstraints() message even with buffer_constraints_action_required true if the client knows the server has already been told to discard the remainder of the stream with the same stream_lifetime_ordinal or if this stream_lifetime_ordinal field is set to 0. The server is required to re-send needed output config via OnOutputConstraints() with new stream_lifetime_ordinal and buffer_constraints_action_required true, if the most recent completed server-side output config isn’t what the server wants/needs yet for the new stream.
buffer_constraints_action_required: Option<bool>
When the buffer constraints are delivered, they indicate whether action is required. A false value here permits delivery of constraints which are fresher without forcing a buffer reconfiguration. If this is false, a client cannot assume that it’s safe to immediately re-configure output buffers. If this is true, the client can assume it’s safe to immediately configure output buffers once.
A client is permitted to ignore buffer constraint versions which have buffer_constraints_action_required false. The server is not permitted to change buffer_constraints_action_required from false to true for the same buffer_constraints_version_ordinal.
For each configuration, a client must use new buffers, never buffers that were previously used for anything else, and never buffers previously used for any other StreamProcessor purposes. This rule exists for multiple good reasons, relevant to both mid-stream changes, and changes on stream boundaries. A client should just use new buffers each time.
When this is true, the server has already de-refed as many low-level output buffers as the server can while still performing efficient transition to the new buffers and will de-ref the rest asap. A Sync() is not necessary to achieve non-overlap of resource usage to the extent efficiently permitted by the formats involved.
If buffer_constraints_action_required is true, the server must not deliver more output data until after output buffers have been configured (or re-configured) by the client.
buffer_constraints: Option<StreamBufferConstraints>
Trait Implementations§
Source§impl Clone for StreamOutputConstraints
impl Clone for StreamOutputConstraints
Source§fn clone(&self) -> StreamOutputConstraints
fn clone(&self) -> StreamOutputConstraints
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for StreamOutputConstraints
impl Debug for StreamOutputConstraints
Source§impl<D: ResourceDialect> Decode<StreamOutputConstraints, D> for StreamOutputConstraints
impl<D: ResourceDialect> Decode<StreamOutputConstraints, D> for StreamOutputConstraints
Source§impl Default for StreamOutputConstraints
impl Default for StreamOutputConstraints
Source§fn default() -> StreamOutputConstraints
fn default() -> StreamOutputConstraints
Source§impl<D: ResourceDialect> Encode<StreamOutputConstraints, D> for &StreamOutputConstraints
impl<D: ResourceDialect> Encode<StreamOutputConstraints, D> for &StreamOutputConstraints
Source§impl PartialEq for StreamOutputConstraints
impl PartialEq for StreamOutputConstraints
Source§impl TypeMarker for StreamOutputConstraints
impl TypeMarker for StreamOutputConstraints
Source§type Owned = StreamOutputConstraints
type Owned = StreamOutputConstraints
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for StreamOutputConstraints
impl ValueTypeMarker for StreamOutputConstraints
Source§type Borrowed<'a> = &'a StreamOutputConstraints
type Borrowed<'a> = &'a StreamOutputConstraints
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for StreamOutputConstraints
impl StructuralPartialEq for StreamOutputConstraints
Auto Trait Implementations§
impl Freeze for StreamOutputConstraints
impl RefUnwindSafe for StreamOutputConstraints
impl Send for StreamOutputConstraints
impl Sync for StreamOutputConstraints
impl Unpin for StreamOutputConstraints
impl UnwindSafe for StreamOutputConstraints
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)