pub struct MessageBuilderPositionSJOG { /* private fields */ }Expand description
This is a specialized version of the MessageBuilder which contains an ID and a position
request.
Implementations§
Source§impl MessageBuilderPositionSJOG
impl MessageBuilderPositionSJOG
Sourcepub fn s_jog(
&mut self,
mode: JogMode,
color: JogColor,
id: u8,
) -> Result<(), MessageBuilderError>
pub fn s_jog( &mut self, mode: JogMode, color: JogColor, id: u8, ) -> Result<(), MessageBuilderError>
Append a new SJOG command to this message.
§Errors
Return MessageBuilderError::MaximumDataReached if there is already 10 sjog command in this message.
§Invalid Values
The maximum id value is 0xFE.
The maximum playtime value is 0xFE.
Sourcepub fn build(self) -> HerkulexMessage
pub fn build(self) -> HerkulexMessage
Build the final message to be sent to the servomotor through a serial connection.
Auto Trait Implementations§
impl Freeze for MessageBuilderPositionSJOG
impl RefUnwindSafe for MessageBuilderPositionSJOG
impl Send for MessageBuilderPositionSJOG
impl Sync for MessageBuilderPositionSJOG
impl Unpin for MessageBuilderPositionSJOG
impl UnsafeUnpin for MessageBuilderPositionSJOG
impl UnwindSafe for MessageBuilderPositionSJOG
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more