[−][src]Struct small_morse::Action
An Action
is how the library tells you what to signal.
In general, this library affords lots of flexibility in how the morse code is transmitted by leaving it entirely up to the user. Instead of doing it for you, it supplies an iterator of actions that need to be done.
In order to send morse code, you need to turn a signal on and off for different lengths of
time. An Action
, correspondingly, has two parts: the state
(whether it is on or off) and
the duration
.
Fields
duration: u8
The duration
of an action is measured in units of one dot-length. A dot-length is
typically around 50 to 100 milliseconds or so.
delay_type: DelayType
Whether the duration should use the regular speed or the Farnsworth speed
state: State
Whether it should be on or off
Trait Implementations
impl Clone for Action
[src]
fn clone(&self) -> Action
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Action
[src]
impl Debug for Action
[src]
impl Eq for Action
[src]
impl Hash for Action
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Action> for Action
[src]
impl StructuralEq for Action
[src]
impl StructuralPartialEq for Action
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,