pub struct WeissAvc(/* private fields */);
Expand description
The implementation of AV/C transaction.
Implementations§
Source§impl WeissAvc
impl WeissAvc
Trait Implementations§
Source§impl Ta1394Avc<Error> for WeissAvc
impl Ta1394Avc<Error> for WeissAvc
Source§fn transaction(
&self,
command_frame: &[u8],
timeout_ms: u32,
) -> Result<Vec<u8>, Error>
fn transaction( &self, command_frame: &[u8], timeout_ms: u32, ) -> Result<Vec<u8>, Error>
Transmit given command frame and return received response frame. Read more
Source§const FRAME_SIZE: usize = 512usize
const FRAME_SIZE: usize = 512usize
The maximum size of frame in both command and response.
Source§const RESP_CODE_MASK: u8 = 15u8
const RESP_CODE_MASK: u8 = 15u8
The mask for first byte of response frame to detect status code. The rest bits express
Command/transaction set (CTS) but appears not to be used actually.
fn compose_command_frame( ctype: AvcCmdType, addr: &AvcAddr, opcode: u8, operands: &[u8], ) -> Result<Vec<u8>, Ta1394AvcError<T>>
fn detect_response_operands<'a>( frame: &'a [u8], addr: &AvcAddr, opcode: u8, ) -> Result<(AvcRespCode, &'a [u8]), AvcRespParseError>
fn control<O>(
&self,
addr: &AvcAddr,
op: &mut O,
timeout_ms: u32,
) -> Result<(), Ta1394AvcError<T>>where
O: AvcOp + AvcControl,
fn status<O>( &self, addr: &AvcAddr, op: &mut O, timeout_ms: u32, ) -> Result<(), Ta1394AvcError<T>>
fn specific_inquiry<O>(
&self,
addr: &AvcAddr,
op: &mut O,
timeout_ms: u32,
) -> Result<(), Ta1394AvcError<T>>where
O: AvcOp + AvcControl,
fn notify<O>( &self, addr: &AvcAddr, op: &mut O, timeout_ms: u32, ) -> Result<(), Ta1394AvcError<T>>
Auto Trait Implementations§
impl Freeze for WeissAvc
impl RefUnwindSafe for WeissAvc
impl !Send for WeissAvc
impl !Sync for WeissAvc
impl Unpin for WeissAvc
impl UnwindSafe for WeissAvc
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