[−][src]Struct rocket_client::SyncClient
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]
&mut self,
device: &mut SyncDevice
) -> Result<bool, Box<dyn Error>>
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]
&mut self,
track_names: &Vec<String>
) -> Result<(), Box<dyn Error>>
Send track names to Rocket, including group prefix
pub fn handle_set_key_cmd(
&mut self,
device: &mut SyncDevice
) -> Result<(), Box<dyn Error>>
[src]
&mut self,
device: &mut SyncDevice
) -> Result<(), Box<dyn Error>>
Adds a key frame to a track
pub fn handle_del_key_cmd(
&mut self,
device: &mut SyncDevice
) -> Result<(), Box<dyn Error>>
[src]
&mut self,
device: &mut SyncDevice
) -> Result<(), Box<dyn Error>>
Deletes a key from a track
pub fn handle_set_row_cmd(
&mut self,
device: &mut SyncDevice
) -> Result<(), Box<dyn Error>>
[src]
&mut self,
device: &mut SyncDevice
) -> Result<(), Box<dyn Error>>
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]
&mut self,
device: &mut SyncDevice
) -> Result<(), Box<dyn Error>>
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]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,