pub enum StreamSourceEvent {
OnPacketProduced {
packet: StreamPacket,
},
OnEndOfStream {},
}
Variants§
Implementations§
source§impl StreamSourceEvent
impl StreamSourceEvent
pub fn into_on_packet_produced(self) -> Option<StreamPacket>
pub fn into_on_end_of_stream(self) -> Option<()>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for StreamSourceEvent
impl Send for StreamSourceEvent
impl Sync for StreamSourceEvent
impl Unpin for StreamSourceEvent
impl UnwindSafe for StreamSourceEvent
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