pub struct DdConfig {
pub input: Option<String>,
pub output: Option<String>,
pub ibs: usize,
pub obs: usize,
pub count: Option<u64>,
pub skip: u64,
pub seek: u64,
pub conv: DdConv,
pub status: StatusLevel,
pub iflag: DdFlags,
pub oflag: DdFlags,
}Expand description
Configuration for a dd operation.
Fields§
§input: Option<String>Input file path (None = stdin).
output: Option<String>Output file path (None = stdout).
ibs: usizeInput block size in bytes.
obs: usizeOutput block size in bytes.
count: Option<u64>Copy only this many input blocks (None = unlimited).
skip: u64Skip this many ibs-sized blocks at start of input.
seek: u64Skip this many obs-sized blocks at start of output.
conv: DdConvConversion options.
status: StatusLevelStatus output level.
iflag: DdFlagsInput flags.
oflag: DdFlagsOutput flags.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DdConfig
impl RefUnwindSafe for DdConfig
impl Send for DdConfig
impl Sync for DdConfig
impl Unpin for DdConfig
impl UnsafeUnpin for DdConfig
impl UnwindSafe for DdConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more