[][src]Struct rocket_client::SyncClient

pub struct SyncClient { /* fields omitted */ }

Methods

impl SyncClient[src]

pub fn new(address: &str) -> Result<SyncClient, Box<dyn Error>>[src]

Connects to the Rocket Editor server and shakes hand with it

pub fn update(
    &mut self,
    device: &mut SyncDevice
) -> Result<bool, Box<dyn Error>>
[src]

Read from the stream and process commands until the server runs out of things to send.

Returns an Ok(true) if there should be a redraw.

pub fn send_row(&mut self, device: &SyncDevice) -> Result<(), Box<dyn Error>>[src]

pub fn send_track_names(
    &mut self,
    track_names: &Vec<String>
) -> Result<(), Box<dyn Error>>
[src]

Send track names to Rocket, including group prefix

pub fn handle_set_key_cmd(
    &mut self,
    device: &mut SyncDevice
) -> Result<(), Box<dyn Error>>
[src]

Adds a key frame to a track

pub fn handle_del_key_cmd(
    &mut self,
    device: &mut SyncDevice
) -> Result<(), Box<dyn Error>>
[src]

Deletes a key from a track

pub fn handle_set_row_cmd(
    &mut self,
    device: &mut SyncDevice
) -> Result<(), Box<dyn Error>>
[src]

Sets the current row from server. Sets the current time based on the row and rps.

pub fn handle_pause_cmd(
    &mut self,
    device: &mut SyncDevice
) -> Result<(), Box<dyn Error>>
[src]

Auto Trait Implementations

impl Send for SyncClient

impl Sync for SyncClient

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]