[−][src]Struct deep_learning_playground::utils::fetch_client::DirClient
A type that executes the specified file existence check and creation, path resolution, etc. based on the save destination directory.
Fields
file: HashMap<String, FileInfo<'a>>
Hash map with file name as key and related information as value
Methods
impl<'a> DirClient<'a>
[src]
pub fn new<T>(cfg: FConf<'a, T>) -> Result<Self> where
T: Iterator<Item = &'a RemoteFile<'a>> + ExactSizeIterator,
[src]
T: Iterator<Item = &'a RemoteFile<'a>> + ExactSizeIterator,
DirClient
constructor
pub fn file_path(&self, fname: &str) -> PathBuf
[src]
file_path
creates the path of file x under
the current directory from the specified file
name x
pub fn create(&self) -> Result<()>
[src]
create
creates directory
pub fn file_create(&self, dst: &str, src: &mut Bytes) -> Result<()>
[src]
file_create
creates file in directory
pub fn exists(&self) -> bool
[src]
exists
checks if the specified directory exists
pub fn file_exists(&self, fname: &str) -> bool
[src]
file_exists
checks if the specified file exists under the directory
pub fn rm_file(&self, fname: &str) -> Result<(), Error>
[src]
Delete the specified file under the directory
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for DirClient<'a>
impl<'a> Send for DirClient<'a>
impl<'a> Sync for DirClient<'a>
impl<'a> Unpin for DirClient<'a>
impl<'a> UnwindSafe for DirClient<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> FromPy<T> for T
fn from_py(t: T, Python) -> T
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> IntoPy<U> for T where
U: FromPy<T>,
U: FromPy<T>,
default fn into_py(self, py: Python) -> U
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,