pub enum PreloadEvents {
RuleSetUpdated(RuleSetUpdated),
RuleSetRemoved(RuleSetRemoved),
PreloadEnabledStateUpdated(PreloadEnabledStateUpdated),
PrefetchStatusUpdated(PrefetchStatusUpdated),
PrerenderStatusUpdated(PrerenderStatusUpdated),
PreloadingAttemptSourcesUpdated(PreloadingAttemptSourcesUpdated),
}Variants§
RuleSetUpdated(RuleSetUpdated)
RuleSetRemoved(RuleSetRemoved)
PreloadEnabledStateUpdated(PreloadEnabledStateUpdated)
PrefetchStatusUpdated(PrefetchStatusUpdated)
PrerenderStatusUpdated(PrerenderStatusUpdated)
PreloadingAttemptSourcesUpdated(PreloadingAttemptSourcesUpdated)
Implementations§
Source§impl PreloadEvents
impl PreloadEvents
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for PreloadEvents
impl Clone for PreloadEvents
Source§fn clone(&self) -> PreloadEvents
fn clone(&self) -> PreloadEvents
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 PreloadEvents
impl Debug for PreloadEvents
Source§impl<'de> Deserialize<'de> for PreloadEvents
impl<'de> Deserialize<'de> for PreloadEvents
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<PrefetchStatusUpdated> for PreloadEvents
impl From<PrefetchStatusUpdated> for PreloadEvents
Source§fn from(v: PrefetchStatusUpdated) -> Self
fn from(v: PrefetchStatusUpdated) -> Self
Converts to this type from the input type.
Source§impl From<PreloadEnabledStateUpdated> for PreloadEvents
impl From<PreloadEnabledStateUpdated> for PreloadEvents
Source§fn from(v: PreloadEnabledStateUpdated) -> Self
fn from(v: PreloadEnabledStateUpdated) -> Self
Converts to this type from the input type.
Source§impl From<PreloadEvents> for BrowserProtocolEvents
impl From<PreloadEvents> for BrowserProtocolEvents
Source§fn from(v: PreloadEvents) -> Self
fn from(v: PreloadEvents) -> Self
Converts to this type from the input type.
Source§impl From<PreloadEvents> for Event
impl From<PreloadEvents> for Event
Source§fn from(v: PreloadEvents) -> Self
fn from(v: PreloadEvents) -> Self
Converts to this type from the input type.
Source§impl From<PreloadingAttemptSourcesUpdated> for PreloadEvents
impl From<PreloadingAttemptSourcesUpdated> for PreloadEvents
Source§fn from(v: PreloadingAttemptSourcesUpdated) -> Self
fn from(v: PreloadingAttemptSourcesUpdated) -> Self
Converts to this type from the input type.
Source§impl From<PrerenderStatusUpdated> for PreloadEvents
impl From<PrerenderStatusUpdated> for PreloadEvents
Source§fn from(v: PrerenderStatusUpdated) -> Self
fn from(v: PrerenderStatusUpdated) -> Self
Converts to this type from the input type.
Source§impl From<RuleSetRemoved> for PreloadEvents
impl From<RuleSetRemoved> for PreloadEvents
Source§fn from(v: RuleSetRemoved) -> Self
fn from(v: RuleSetRemoved) -> Self
Converts to this type from the input type.
Source§impl From<RuleSetUpdated> for PreloadEvents
impl From<RuleSetUpdated> for PreloadEvents
Source§fn from(v: RuleSetUpdated) -> Self
fn from(v: RuleSetUpdated) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PreloadEvents
impl PartialEq for PreloadEvents
Source§impl Serialize for PreloadEvents
impl Serialize for PreloadEvents
Source§impl TryFrom<BrowserProtocolEvents> for PreloadEvents
impl TryFrom<BrowserProtocolEvents> for PreloadEvents
Source§type Error = BrowserProtocolEvents
type Error = BrowserProtocolEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolEvents,
) -> Result<Self, <PreloadEvents as TryFrom<BrowserProtocolEvents>>::Error>
fn try_from( e: BrowserProtocolEvents, ) -> Result<Self, <PreloadEvents as TryFrom<BrowserProtocolEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<Event> for PreloadEvents
impl TryFrom<Event> for PreloadEvents
Source§impl TryFrom<PreloadEvents> for PrefetchStatusUpdated
impl TryFrom<PreloadEvents> for PrefetchStatusUpdated
Source§type Error = PreloadEvents
type Error = PreloadEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: PreloadEvents,
) -> Result<Self, <PrefetchStatusUpdated as TryFrom<PreloadEvents>>::Error>
fn try_from( e: PreloadEvents, ) -> Result<Self, <PrefetchStatusUpdated as TryFrom<PreloadEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<PreloadEvents> for PreloadEnabledStateUpdated
impl TryFrom<PreloadEvents> for PreloadEnabledStateUpdated
Source§type Error = PreloadEvents
type Error = PreloadEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: PreloadEvents,
) -> Result<Self, <PreloadEnabledStateUpdated as TryFrom<PreloadEvents>>::Error>
fn try_from( e: PreloadEvents, ) -> Result<Self, <PreloadEnabledStateUpdated as TryFrom<PreloadEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<PreloadEvents> for PreloadingAttemptSourcesUpdated
impl TryFrom<PreloadEvents> for PreloadingAttemptSourcesUpdated
Source§type Error = PreloadEvents
type Error = PreloadEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: PreloadEvents,
) -> Result<Self, <PreloadingAttemptSourcesUpdated as TryFrom<PreloadEvents>>::Error>
fn try_from( e: PreloadEvents, ) -> Result<Self, <PreloadingAttemptSourcesUpdated as TryFrom<PreloadEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<PreloadEvents> for PrerenderStatusUpdated
impl TryFrom<PreloadEvents> for PrerenderStatusUpdated
Source§type Error = PreloadEvents
type Error = PreloadEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: PreloadEvents,
) -> Result<Self, <PrerenderStatusUpdated as TryFrom<PreloadEvents>>::Error>
fn try_from( e: PreloadEvents, ) -> Result<Self, <PrerenderStatusUpdated as TryFrom<PreloadEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<PreloadEvents> for RuleSetRemoved
impl TryFrom<PreloadEvents> for RuleSetRemoved
Source§type Error = PreloadEvents
type Error = PreloadEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: PreloadEvents,
) -> Result<Self, <RuleSetRemoved as TryFrom<PreloadEvents>>::Error>
fn try_from( e: PreloadEvents, ) -> Result<Self, <RuleSetRemoved as TryFrom<PreloadEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<PreloadEvents> for RuleSetUpdated
impl TryFrom<PreloadEvents> for RuleSetUpdated
Source§type Error = PreloadEvents
type Error = PreloadEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: PreloadEvents,
) -> Result<Self, <RuleSetUpdated as TryFrom<PreloadEvents>>::Error>
fn try_from( e: PreloadEvents, ) -> Result<Self, <RuleSetUpdated as TryFrom<PreloadEvents>>::Error>
Performs the conversion.
impl StructuralPartialEq for PreloadEvents
Auto Trait Implementations§
impl Freeze for PreloadEvents
impl RefUnwindSafe for PreloadEvents
impl Send for PreloadEvents
impl Sync for PreloadEvents
impl Unpin for PreloadEvents
impl UnsafeUnpin for PreloadEvents
impl UnwindSafe for PreloadEvents
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