pub struct FileReaderConfig {
pub path: Option<PathBuf>,
pub block_size: u32,
pub identity_path: String,
}Fields§
§path: Option<PathBuf>§block_size: u32§identity_path: StringImplementations§
Source§impl FileReaderConfig
impl FileReaderConfig
pub fn new(path: impl AsRef<Path>, block_size: u32) -> GibbloxResult<Self>
pub fn with_identity_path( identity_path: String, block_size: u32, ) -> GibbloxResult<Self>
Trait Implementations§
Source§impl BlockReaderConfigIdentity for FileReaderConfig
impl BlockReaderConfigIdentity for FileReaderConfig
fn write_identity(&self, out: &mut dyn Write) -> Result
Source§impl Clone for FileReaderConfig
impl Clone for FileReaderConfig
Source§fn clone(&self) -> FileReaderConfig
fn clone(&self) -> FileReaderConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FileReaderConfig
impl RefUnwindSafe for FileReaderConfig
impl Send for FileReaderConfig
impl Sync for FileReaderConfig
impl Unpin for FileReaderConfig
impl UnsafeUnpin for FileReaderConfig
impl UnwindSafe for FileReaderConfig
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