pub struct PartialWrite {
pub written: usize,
pub requested: usize,
pub device: String,
}Expand description
Payload of the io::ErrorKind::WouldBlock error a CiDataDevice::write
returns when the device buffer filled before all of the TS was accepted.
Read it back with partial_write_progress.
Fields§
§written: usizeBytes the device accepted — always a whole number of
TS_PACKET_LEN-byte packets (never a torn packet).
requested: usizeBytes the caller asked to write.
device: StringThe device, for the error message.
Trait Implementations§
Source§impl Clone for PartialWrite
impl Clone for PartialWrite
Source§impl Debug for PartialWrite
impl Debug for PartialWrite
Source§impl Display for PartialWrite
impl Display for PartialWrite
impl Eq for PartialWrite
Source§impl Error for PartialWrite
impl Error for PartialWrite
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for PartialWrite
impl PartialEq for PartialWrite
impl StructuralPartialEq for PartialWrite
Auto Trait Implementations§
impl Forget for PartialWrite
impl Freeze for PartialWrite
impl Move for PartialWrite
impl RefUnwindSafe for PartialWrite
impl Send for PartialWrite
impl Sync for PartialWrite
impl Unpin for PartialWrite
impl UnsafeUnpin for PartialWrite
impl UnwindSafe for PartialWrite
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