pub enum StreamSourceRequest {
ReleasePacket {
packet: StreamPacket,
control_handle: StreamSourceControlHandle,
},
DiscardAllPackets {
responder: StreamSourceDiscardAllPacketsResponder,
},
DiscardAllPacketsNoReply {
control_handle: StreamSourceControlHandle,
},
}
Expand description
Produces a stream of packets. This interface is typically inherited along
with StreamBufferSet
to enable the transport of elementary streams from
services to clients.
Variants§
ReleasePacket
Releases payload memory associated with a packet previously delivered
via OnPacketProduced
.
DiscardAllPackets
Fields
§
responder: StreamSourceDiscardAllPacketsResponder
DiscardAllPacketsNoReply
Fields
§
control_handle: StreamSourceControlHandle
Implementations§
Source§impl StreamSourceRequest
impl StreamSourceRequest
pub fn into_release_packet( self, ) -> Option<(StreamPacket, StreamSourceControlHandle)>
pub fn into_discard_all_packets( self, ) -> Option<StreamSourceDiscardAllPacketsResponder>
pub fn into_discard_all_packets_no_reply( self, ) -> Option<StreamSourceControlHandle>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamSourceRequest
impl !RefUnwindSafe for StreamSourceRequest
impl Send for StreamSourceRequest
impl Sync for StreamSourceRequest
impl Unpin for StreamSourceRequest
impl !UnwindSafe for StreamSourceRequest
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