Enum osc_address::OscTime
[−]
[src]
pub enum OscTime { Now, At(AbsOscTime), }
Time tag assigned to each OscBundle
.
Variants
Now
Indication to execute the bundle contents immediately upon receipt.
At(AbsOscTime)
Execute the bundle contents at a specified time.
Methods
impl OscTime
[src]
fn new(sec: u32, frac: u32) -> Self
Create a OSC time from seconds and a fraction of a second.
In the special case that sec == 0
and frac == 1
, this is to be interpreted
as "now" or "immediately upon the time of message receipt."
fn as_system_time(&self) -> Option<SystemTime>
Convert the OSC time tag into a type from the std::time library.
If self == OscTime::now
, it will return the current system time.
Note that this can fail to unrepresentable times, in which case None
is returned.
See AbsOscTime::as_system_time for more details.
Trait Implementations
impl Copy for OscTime
[src]
impl Clone for OscTime
[src]
fn clone(&self) -> OscTime
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more