Trait ux::prelude::FileExtManual [−]
pub trait FileExtManual {
pub fn replace_contents_async<B, R, C>(
&self,
contents: B,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
cancellable: Option<&C>,
callback: R
)
where
C: IsA<Cancellable>,
B: 'static + AsRef<[u8]> + Send,
R: 'static + FnOnce(Result<(B, GString), (B, Error)>) + Send;
pub fn replace_contents_async_future<B>(
&self,
contents: B,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags
) -> Pin<Box<dyn Future<Output = Result<(B, GString), (B, Error)>> + 'static, Global>>
where
B: 'static + AsRef<[u8]> + Send;
}Required methods
pub fn replace_contents_async<B, R, C>(
&self,
contents: B,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
cancellable: Option<&C>,
callback: R
) where
C: IsA<Cancellable>,
B: 'static + AsRef<[u8]> + Send,
R: 'static + FnOnce(Result<(B, GString), (B, Error)>) + Send,
&self,
contents: B,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
cancellable: Option<&C>,
callback: R
) where
C: IsA<Cancellable>,
B: 'static + AsRef<[u8]> + Send,
R: 'static + FnOnce(Result<(B, GString), (B, Error)>) + Send,
pub fn replace_contents_async_future<B>(
&self,
contents: B,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags
) -> Pin<Box<dyn Future<Output = Result<(B, GString), (B, Error)>> + 'static, Global>> where
B: 'static + AsRef<[u8]> + Send,
&self,
contents: B,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags
) -> Pin<Box<dyn Future<Output = Result<(B, GString), (B, Error)>> + 'static, Global>> where
B: 'static + AsRef<[u8]> + Send,
Implementors
impl<O> FileExtManual for O where
O: IsA<File>,
O: IsA<File>,
pub fn replace_contents_async<B, R, C>(
&self,
contents: B,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
cancellable: Option<&C>,
callback: R
) where
C: IsA<Cancellable>,
B: 'static + AsRef<[u8]> + Send,
R: 'static + FnOnce(Result<(B, GString), (B, Error)>) + Send,
&self,
contents: B,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
cancellable: Option<&C>,
callback: R
) where
C: IsA<Cancellable>,
B: 'static + AsRef<[u8]> + Send,
R: 'static + FnOnce(Result<(B, GString), (B, Error)>) + Send,
pub fn replace_contents_async_future<B>(
&self,
contents: B,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags
) -> Pin<Box<dyn Future<Output = Result<(B, GString), (B, Error)>> + 'static, Global>> where
B: 'static + AsRef<[u8]> + Send,
&self,
contents: B,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags
) -> Pin<Box<dyn Future<Output = Result<(B, GString), (B, Error)>> + 'static, Global>> where
B: 'static + AsRef<[u8]> + Send,