pub struct PassThroughCommand { /* private fields */ }Expand description
Pass-through (P) command: length, destination device, motor message id, three payload bytes, expected response length.
Built with crate::build_pass_through_command or crate::build_direct_motor_command.
Implementations§
Source§impl PassThroughCommand
impl PassThroughCommand
pub fn new(data: Vec<u8>) -> Self
pub fn inner(&self) -> &NexstarCommand
pub fn into_inner(self) -> NexstarCommand
pub fn command_data(&self) -> Vec<u8> ⓘ
pub fn msg_len(&self) -> Option<u8>
pub fn dest_id(&self) -> Option<u8>
pub fn msg_id(&self) -> Option<u8>
Sourcepub fn data_triple(&self) -> Option<[u8; 3]>
pub fn data_triple(&self) -> Option<[u8; 3]>
The three fixed payload bytes (padded).
Sourcepub fn response_bytes_len(&self) -> Option<u8>
pub fn response_bytes_len(&self) -> Option<u8>
Expected response payload length (excluding #), stored as last byte of arguments.
Source§impl PassThroughCommand
impl PassThroughCommand
Sourcepub fn parse_response(&self, response: &[u8]) -> NexstarParsedResponse
pub fn parse_response(&self, response: &[u8]) -> NexstarParsedResponse
Same as NexstarCommand::parse_response for the underlying pass-through frame.
Trait Implementations§
Source§impl Clone for PassThroughCommand
impl Clone for PassThroughCommand
Source§fn clone(&self) -> PassThroughCommand
fn clone(&self) -> PassThroughCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PassThroughCommand
impl Debug for PassThroughCommand
Source§impl PartialEq for PassThroughCommand
impl PartialEq for PassThroughCommand
impl Eq for PassThroughCommand
impl StructuralPartialEq for PassThroughCommand
Auto Trait Implementations§
impl Freeze for PassThroughCommand
impl RefUnwindSafe for PassThroughCommand
impl Send for PassThroughCommand
impl Sync for PassThroughCommand
impl Unpin for PassThroughCommand
impl UnsafeUnpin for PassThroughCommand
impl UnwindSafe for PassThroughCommand
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