pub enum PreloadCommands {
Enable(Enable),
Disable(Disable),
}Variants§
Implementations§
Source§impl PreloadCommands
impl PreloadCommands
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for PreloadCommands
impl Clone for PreloadCommands
Source§fn clone(&self) -> PreloadCommands
fn clone(&self) -> PreloadCommands
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 PreloadCommands
impl Debug for PreloadCommands
Source§impl<'de> Deserialize<'de> for PreloadCommands
impl<'de> Deserialize<'de> for PreloadCommands
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<Disable> for PreloadCommands
impl From<Disable> for PreloadCommands
Source§impl From<Enable> for PreloadCommands
impl From<Enable> for PreloadCommands
Source§impl From<PreloadCommands> for BrowserProtocolCommands
impl From<PreloadCommands> for BrowserProtocolCommands
Source§fn from(v: PreloadCommands) -> Self
fn from(v: PreloadCommands) -> Self
Converts to this type from the input type.
Source§impl From<PreloadCommands> for Command
impl From<PreloadCommands> for Command
Source§fn from(v: PreloadCommands) -> Self
fn from(v: PreloadCommands) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PreloadCommands
impl PartialEq for PreloadCommands
Source§impl Serialize for PreloadCommands
impl Serialize for PreloadCommands
Source§impl TryFrom<BrowserProtocolCommands> for PreloadCommands
impl TryFrom<BrowserProtocolCommands> for PreloadCommands
Source§type Error = BrowserProtocolCommands
type Error = BrowserProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolCommands,
) -> Result<Self, <PreloadCommands as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <PreloadCommands as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for PreloadCommands
impl TryFrom<Command> for PreloadCommands
Source§impl TryFrom<PreloadCommands> for Disable
impl TryFrom<PreloadCommands> for Disable
Source§type Error = PreloadCommands
type Error = PreloadCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: PreloadCommands,
) -> Result<Self, <Disable as TryFrom<PreloadCommands>>::Error>
fn try_from( e: PreloadCommands, ) -> Result<Self, <Disable as TryFrom<PreloadCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<PreloadCommands> for Enable
impl TryFrom<PreloadCommands> for Enable
Source§type Error = PreloadCommands
type Error = PreloadCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: PreloadCommands,
) -> Result<Self, <Enable as TryFrom<PreloadCommands>>::Error>
fn try_from( e: PreloadCommands, ) -> Result<Self, <Enable as TryFrom<PreloadCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for PreloadCommands
Auto Trait Implementations§
impl Freeze for PreloadCommands
impl RefUnwindSafe for PreloadCommands
impl Send for PreloadCommands
impl Sync for PreloadCommands
impl Unpin for PreloadCommands
impl UnsafeUnpin for PreloadCommands
impl UnwindSafe for PreloadCommands
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