pub enum MilkyTransportEvent {
Push(Event),
Open,
Reconnecting {
attempt: usize,
next_delay: Duration,
},
Reconnected,
}Expand description
事件流中产生的状态变化或事件。
Variants§
Trait Implementations§
Source§impl Clone for MilkyTransportEvent
impl Clone for MilkyTransportEvent
Source§fn clone(&self) -> MilkyTransportEvent
fn clone(&self) -> MilkyTransportEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MilkyTransportEvent
impl Debug for MilkyTransportEvent
Source§impl PartialEq for MilkyTransportEvent
impl PartialEq for MilkyTransportEvent
impl StructuralPartialEq for MilkyTransportEvent
Auto Trait Implementations§
impl Freeze for MilkyTransportEvent
impl RefUnwindSafe for MilkyTransportEvent
impl Send for MilkyTransportEvent
impl Sync for MilkyTransportEvent
impl Unpin for MilkyTransportEvent
impl UnsafeUnpin for MilkyTransportEvent
impl UnwindSafe for MilkyTransportEvent
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