Enum openssh_sftp_client::Data
source · [−]Variants
Buffer(Buffer)
The buffer that stores the response of Read.
It will be returned if you provided a buffer to
crate::WriteEnd::send_read_request
.
AllocatedBox(Box<[u8]>)
This is a fallback that is returned
if Buffer
isn’t provided or it isn’t large enough.
Eof
EOF is reached before any data can be read.
Trait Implementations
Auto Trait Implementations
impl<Buffer> RefUnwindSafe for Data<Buffer> where
Buffer: RefUnwindSafe,
impl<Buffer> Send for Data<Buffer> where
Buffer: Send,
impl<Buffer> Sync for Data<Buffer> where
Buffer: Sync,
impl<Buffer> Unpin for Data<Buffer> where
Buffer: Unpin,
impl<Buffer> UnwindSafe for Data<Buffer> where
Buffer: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more