Struct openssh_sftp_client::WriteEnd [−][src]
pub struct WriteEnd<Buffer: ToBuffer + 'static> { /* fields omitted */ }
Expand description
TODO:
- Support IoSlice for data in
send_write_request
It is recommended to create at most oneWriteEnd
per thread.
Implementations
Create a useable response id.
Return true if reserve succeeds, false otherwise.
Return true if reserve succeeds, false otherwise.
pub async fn send_open_file_request(
&mut self,
id: Id<Buffer>,
params: OpenFile<'_>
) -> Result<AwaitableHandle<Buffer>, Error>
pub async fn send_open_file_request(
&mut self,
id: Id<Buffer>,
params: OpenFile<'_>
) -> Result<AwaitableHandle<Buffer>, Error>
Cancel Safety
This function is not cancel safe
pub async fn send_close_request(
&mut self,
id: Id<Buffer>,
handle: Cow<'_, Handle>
) -> Result<AwaitableStatus<Buffer>, Error>
pub async fn send_close_request(
&mut self,
id: Id<Buffer>,
handle: Cow<'_, Handle>
) -> Result<AwaitableStatus<Buffer>, Error>
Cancel Safety
This function is not cancel safe
Cancel Safety
This function is not cancel safe
pub async fn send_remove_request(
&mut self,
id: Id<Buffer>,
path: Cow<'_, Path>
) -> Result<AwaitableStatus<Buffer>, Error>
pub async fn send_remove_request(
&mut self,
id: Id<Buffer>,
path: Cow<'_, Path>
) -> Result<AwaitableStatus<Buffer>, Error>
Cancel Safety
This function is not cancel safe
pub async fn send_rename_request(
&mut self,
id: Id<Buffer>,
oldpath: Cow<'_, Path>,
newpath: Cow<'_, Path>
) -> Result<AwaitableStatus<Buffer>, Error>
pub async fn send_rename_request(
&mut self,
id: Id<Buffer>,
oldpath: Cow<'_, Path>,
newpath: Cow<'_, Path>
) -> Result<AwaitableStatus<Buffer>, Error>
Cancel Safety
This function is not cancel safe
pub async fn send_mkdir_request(
&mut self,
id: Id<Buffer>,
path: Cow<'_, Path>,
attrs: FileAttrs
) -> Result<AwaitableStatus<Buffer>, Error>
pub async fn send_mkdir_request(
&mut self,
id: Id<Buffer>,
path: Cow<'_, Path>,
attrs: FileAttrs
) -> Result<AwaitableStatus<Buffer>, Error>
pub async fn send_rmdir_request(
&mut self,
id: Id<Buffer>,
path: Cow<'_, Path>
) -> Result<AwaitableStatus<Buffer>, Error>
pub async fn send_rmdir_request(
&mut self,
id: Id<Buffer>,
path: Cow<'_, Path>
) -> Result<AwaitableStatus<Buffer>, Error>
Cancel Safety
This function is not cancel safe
pub async fn send_opendir_request(
&mut self,
id: Id<Buffer>,
path: Cow<'_, Path>
) -> Result<AwaitableHandle<Buffer>, Error>
pub async fn send_opendir_request(
&mut self,
id: Id<Buffer>,
path: Cow<'_, Path>
) -> Result<AwaitableHandle<Buffer>, Error>
Cancel Safety
This function is not cancel safe
pub async fn send_readdir_request(
&mut self,
id: Id<Buffer>,
handle: Cow<'_, Handle>
) -> Result<AwaitableNameEntries<Buffer>, Error>
pub async fn send_readdir_request(
&mut self,
id: Id<Buffer>,
handle: Cow<'_, Handle>
) -> Result<AwaitableNameEntries<Buffer>, Error>
Cancel Safety
This function is not cancel safe
pub async fn send_stat_request(
&mut self,
id: Id<Buffer>,
path: Cow<'_, Path>
) -> Result<AwaitableAttrs<Buffer>, Error>
pub async fn send_stat_request(
&mut self,
id: Id<Buffer>,
path: Cow<'_, Path>
) -> Result<AwaitableAttrs<Buffer>, Error>
Cancel Safety
This function is not cancel safe
pub async fn send_lstat_request(
&mut self,
id: Id<Buffer>,
path: Cow<'_, Path>
) -> Result<AwaitableAttrs<Buffer>, Error>
pub async fn send_lstat_request(
&mut self,
id: Id<Buffer>,
path: Cow<'_, Path>
) -> Result<AwaitableAttrs<Buffer>, Error>
pub async fn send_fstat_request(
&mut self,
id: Id<Buffer>,
handle: Cow<'_, Handle>
) -> Result<AwaitableAttrs<Buffer>, Error>
pub async fn send_fstat_request(
&mut self,
id: Id<Buffer>,
handle: Cow<'_, Handle>
) -> Result<AwaitableAttrs<Buffer>, Error>
handle
- Must be opened withFileMode::READ
.
Does not follow symlink
Cancel Safety
This function is not cancel safe
pub async fn send_setstat_request(
&mut self,
id: Id<Buffer>,
path: Cow<'_, Path>,
attrs: FileAttrs
) -> Result<AwaitableStatus<Buffer>, Error>
pub async fn send_setstat_request(
&mut self,
id: Id<Buffer>,
path: Cow<'_, Path>,
attrs: FileAttrs
) -> Result<AwaitableStatus<Buffer>, Error>
Cancel Safety
This function is not cancel safe
pub async fn send_fsetstat_request(
&mut self,
id: Id<Buffer>,
handle: Cow<'_, Handle>,
attrs: FileAttrs
) -> Result<AwaitableStatus<Buffer>, Error>
pub async fn send_fsetstat_request(
&mut self,
id: Id<Buffer>,
handle: Cow<'_, Handle>,
attrs: FileAttrs
) -> Result<AwaitableStatus<Buffer>, Error>
pub async fn send_readlink_request(
&mut self,
id: Id<Buffer>,
path: Cow<'_, Path>
) -> Result<AwaitableName<Buffer>, Error>
pub async fn send_readlink_request(
&mut self,
id: Id<Buffer>,
path: Cow<'_, Path>
) -> Result<AwaitableName<Buffer>, Error>
Cancel Safety
This function is not cancel safe
pub async fn send_realpath_request(
&mut self,
id: Id<Buffer>,
path: Cow<'_, Path>
) -> Result<AwaitableName<Buffer>, Error>
pub async fn send_realpath_request(
&mut self,
id: Id<Buffer>,
path: Cow<'_, Path>
) -> Result<AwaitableName<Buffer>, Error>
Cancel Safety
This function is not cancel safe
pub async fn send_symlink_request(
&mut self,
id: Id<Buffer>,
targetpath: Cow<'_, Path>,
linkpath: Cow<'_, Path>
) -> Result<AwaitableStatus<Buffer>, Error>
pub async fn send_symlink_request(
&mut self,
id: Id<Buffer>,
targetpath: Cow<'_, Path>,
linkpath: Cow<'_, Path>
) -> Result<AwaitableStatus<Buffer>, Error>
Trait Implementations
Auto Trait Implementations
impl<Buffer> !RefUnwindSafe for WriteEnd<Buffer>
impl<Buffer> !UnwindSafe for WriteEnd<Buffer>
Blanket Implementations
Mutably borrows from an owned value. Read more