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