pub trait CommunicationChannel {
// Required methods
fn out_transfer<B: AsRef<[u8]>>(
&mut self,
bytes: B,
) -> Result<usize, ScsiError>;
fn in_transfer<B: AsMut<[u8]>>(
&mut self,
buffer: B,
) -> Result<usize, ScsiError>;
}Expand description
The trait that all communication devices should implement if they are to be used to transfer SCSI information.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.