pub enum Success {
Bytes {
bytes: usize,
start: SystemTime,
},
Unblock {
blocks: usize,
block_size: usize,
start: SystemTime,
},
Block {
lines: usize,
truncated: usize,
padded: usize,
block_size: usize,
start: SystemTime,
},
}
Expand description
A successful output from dd
Variants
Bytes
Normal operation reports the number of bytes copied.
Corresponds to opts::Mode::Standard
Unblock
Fields
blocks: usize
number of blocks successfully written
block_size: usize
block size (in bytes) of fixed-sized records
start: SystemTime
Unblock reports the number of fixed-sized records copied and the block
size. Corresponds to opts::Mode::Unblock
Block
Fields
lines: usize
number of newline or EOF-terminated lines
truncated: usize
lines truncated to block_size
padded: usize
lines padded with spaces to block_size
block_size: usize
block_size (in bytes)
start: SystemTime
system time at start of operation
Trait Implementations
impl Eq for Success
impl StructuralEq for Success
impl StructuralPartialEq for Success
Auto Trait Implementations
impl RefUnwindSafe for Success
impl Send for Success
impl Sync for Success
impl Unpin for Success
impl UnwindSafe for Success
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more