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 Freeze for StreamSourceEvent
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