pub enum StreamProcessorEvent {
OnStreamFailed {
stream_lifetime_ordinal: u64,
error: StreamError,
},
OnInputConstraints {
input_constraints: StreamBufferConstraints,
},
OnOutputConstraints {
output_config: StreamOutputConstraints,
},
OnOutputFormat {
output_format: StreamOutputFormat,
},
OnOutputPacket {
output_packet: Packet,
error_detected_before: bool,
error_detected_during: bool,
},
OnOutputEndOfStream {
stream_lifetime_ordinal: u64,
error_detected_before: bool,
},
OnFreeInputPacket {
free_input_packet: PacketHeader,
},
}
Variants§
OnStreamFailed
OnInputConstraints
Fields
§
input_constraints: StreamBufferConstraints
OnOutputConstraints
Fields
§
output_config: StreamOutputConstraints
OnOutputFormat
Fields
§
output_format: StreamOutputFormat
OnOutputPacket
OnOutputEndOfStream
OnFreeInputPacket
Fields
§
free_input_packet: PacketHeader
Implementations§
Source§impl StreamProcessorEvent
impl StreamProcessorEvent
pub fn into_on_stream_failed(self) -> Option<(u64, StreamError)>
pub fn into_on_input_constraints(self) -> Option<StreamBufferConstraints>
pub fn into_on_output_constraints(self) -> Option<StreamOutputConstraints>
pub fn into_on_output_format(self) -> Option<StreamOutputFormat>
pub fn into_on_output_packet(self) -> Option<(Packet, bool, bool)>
pub fn into_on_output_end_of_stream(self) -> Option<(u64, bool)>
pub fn into_on_free_input_packet(self) -> Option<PacketHeader>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamProcessorEvent
impl RefUnwindSafe for StreamProcessorEvent
impl Send for StreamProcessorEvent
impl Sync for StreamProcessorEvent
impl Unpin for StreamProcessorEvent
impl UnwindSafe for StreamProcessorEvent
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