[−][src]Struct chicon::SSHFileSystem
Structure implementing FileSystem
trait to store on a SSH server (via scp)
Methods
impl<'a> SSHFileSystem<'a>
[src]
pub fn new<P: AsRef<Path>>(
addr: String,
username: String,
passphrase: Option<&'a str>,
private_key: P,
public_key: P
) -> Self
[src]
addr: String,
username: String,
passphrase: Option<&'a str>,
private_key: P,
public_key: P
) -> Self
Trait Implementations
impl<'a> FileSystem for SSHFileSystem<'a>
[src]
type FSError = ChiconError
type File = SSHFile<'a>
type DirEntry = SSHDirEntry
fn chmod<P: AsRef<Path>>(
&self,
path: P,
perm: Permissions
) -> Result<(), Self::FSError>
[src]
&self,
path: P,
perm: Permissions
) -> Result<(), Self::FSError>
fn create_file<P: AsRef<Path>>(
&self,
path: P
) -> Result<Self::File, Self::FSError>
[src]
&self,
path: P
) -> Result<Self::File, Self::FSError>
fn create_dir<P: AsRef<Path>>(&self, path: P) -> Result<(), Self::FSError>
[src]
fn create_dir_all<P: AsRef<Path>>(&self, path: P) -> Result<(), Self::FSError>
[src]
fn open_file<P: AsRef<Path>>(
&self,
path: P
) -> Result<Self::File, Self::FSError>
[src]
&self,
path: P
) -> Result<Self::File, Self::FSError>
fn read_dir<P: AsRef<Path>>(
&self,
path: P
) -> Result<Vec<Self::DirEntry>, Self::FSError>
[src]
&self,
path: P
) -> Result<Vec<Self::DirEntry>, Self::FSError>
fn remove_file<P: AsRef<Path>>(&self, path: P) -> Result<(), Self::FSError>
[src]
fn remove_dir<P: AsRef<Path>>(&self, path: P) -> Result<(), Self::FSError>
[src]
fn remove_dir_all<P: AsRef<Path>>(&self, path: P) -> Result<(), Self::FSError>
[src]
fn rename<P: AsRef<Path>>(&self, from: P, to: P) -> Result<(), Self::FSError>
[src]
Auto Trait Implementations
impl<'a> Send for SSHFileSystem<'a>
impl<'a> Unpin for SSHFileSystem<'a>
impl<'a> Sync for SSHFileSystem<'a>
impl<'a> UnwindSafe for SSHFileSystem<'a>
impl<'a> RefUnwindSafe for SSHFileSystem<'a>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self