Enum ExtensionData

#[non_exhaustive]
pub enum ExtensionData

Extension data.

Variants

Control { flags: u8, delay: u16, trns: u8 }

Control extension. Use ExtensionData::new_control_ext to construct.

Repetitions(Repeat)

Sets the number of repetitions

Implementations

impl ExtensionData

fn new_control_ext(delay: u16, dispose: DisposalMethod, needs_user_input: bool, trns: Option<u8>) -> Self

Constructor for control extension data.

delay is given in units of 10 ms.

Auto Trait Implementations

impl Freeze for ExtensionData

impl RefUnwindSafe for ExtensionData

impl Send for ExtensionData

impl Sync for ExtensionData

impl Unpin for ExtensionData

impl UnsafeUnpin for ExtensionData

impl UnwindSafe for ExtensionData

Blanket Implementations

impl<T> Any for ExtensionData where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for ExtensionData where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for ExtensionData where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for ExtensionData

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for ExtensionData where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for ExtensionData where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for ExtensionData where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>