pub enum StreamBufferSetRequest {
AddPayloadBuffer {
id: u32,
payload_buffer: Vmo,
control_handle: StreamBufferSetControlHandle,
},
RemovePayloadBuffer {
id: u32,
control_handle: StreamBufferSetControlHandle,
},
}
Expand description
Manages a set of payload buffers for a stream. This interface is typically
inherited along with StreamSink
or StreamSource
to enable the transport
of elementary streams between clients and services.
Variants§
AddPayloadBuffer
Adds a payload buffer to the current buffer set associated with the
connection. A StreamPacket
struct reference a payload buffer in the
current set by ID using the StreamPacket.payload_buffer_id
field.
A buffer with ID id
must not be in the current set when this method is
invoked, otherwise the service will close the connection.
RemovePayloadBuffer
Removes a payload buffer from the current buffer set associated with the connection.
A buffer with ID id
must exist in the current set when this method is
invoked, otherwise the service will will close the connection.
Implementations§
Source§impl StreamBufferSetRequest
impl StreamBufferSetRequest
pub fn into_add_payload_buffer( self, ) -> Option<(u32, Vmo, StreamBufferSetControlHandle)>
pub fn into_remove_payload_buffer( self, ) -> Option<(u32, StreamBufferSetControlHandle)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL