[−][src]Struct chicon::S3FileSystem
Structure implementing FileSystem
trait to store on an Amazon S3 API compliant
Methods
impl S3FileSystem
[src]
pub fn new(
access_key_id: String,
secret_access_key: String,
bucket: String,
region: String,
endpoint: String
) -> Self
[src]
access_key_id: String,
secret_access_key: String,
bucket: String,
region: String,
endpoint: String
) -> Self
Trait Implementations
impl FileSystem for S3FileSystem
[src]
type FSError = ChiconError
type File = S3File
type DirEntry = S3DirEntry
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 Send for S3FileSystem
impl Unpin for S3FileSystem
impl Sync for S3FileSystem
impl !UnwindSafe for S3FileSystem
impl !RefUnwindSafe for S3FileSystem
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