Skip to main content

EncodeOsc

Trait EncodeOsc 

Source
pub trait EncodeOsc<T> {
    // Required methods
    fn encode_object_bundle<'a, I>(
        object_collection: I,
        source_name: String,
        frame_id: i32,
    ) -> T
       where I: IntoIterator<Item = &'a Object>;
    fn encode_cursor_bundle<'a, I>(
        cursor_collection: I,
        source_name: String,
        frame_id: i32,
    ) -> T
       where I: IntoIterator<Item = &'a Cursor>;
    fn encode_blob_bundle<'a, I>(
        blob_collection: I,
        source_name: String,
        frame_id: i32,
    ) -> T
       where I: IntoIterator<Item = &'a Blob>;
}
Expand description

Base trait to implement an OSC encoder

Required Methods§

Source

fn encode_object_bundle<'a, I>( object_collection: I, source_name: String, frame_id: i32, ) -> T
where I: IntoIterator<Item = &'a Object>,

Encodes an Object collection into an OSC bundle

§Arguments
  • object_collection - an iterable Object collection
  • source_name - the source’s name
  • frame_id - the current’s frame id
Source

fn encode_cursor_bundle<'a, I>( cursor_collection: I, source_name: String, frame_id: i32, ) -> T
where I: IntoIterator<Item = &'a Cursor>,

Encodes an Cursor collection into an OSC bundle

§Arguments
  • cursor_collection - an iterable Cursor collection
  • source_name - the source’s name
  • frame_id - the current’s frame id
Source

fn encode_blob_bundle<'a, I>( blob_collection: I, source_name: String, frame_id: i32, ) -> T
where I: IntoIterator<Item = &'a Blob>,

Encodes an Blob collection into an OSC bundle

§Arguments
  • blob_collection - an iterable Blob collection
  • source_name - the source’s name
  • frame_id - the current’s frame id

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§