pub struct WriteEnd<Buffer: ToBuffer + 'static> { /* private fields */ }
Expand description

It is recommended to create at most one WriteEnd per thread using WriteEnd::clone.

Implementations

Create a useable response id.

Return true if reserve succeeds, false otherwise.

Return true if reserve succeeds, false otherwise.

Cancel Safety

This function is not cancel safe

Cancel Safety

This function is not cancel safe

  • buffer - If set to None or the buffer is not long enough, then Data::AllocatedBox will be returned. Return Data::Buffer if not EOF, otherwise returns Data::EOF.
Cancel Safety

This function is not cancel safe

Cancel Safety

This function is not cancel safe

Cancel Safety

This function is not cancel safe

  • attrs - attrs.get_size() must be equal to None.
Cancel Safety

This function is not cancel safe

Cancel Safety

This function is not cancel safe

Cancel Safety

This function is not cancel safe

Return all entries in the directory specified by the handle, including . and ...

The filename only contains the basename.

Cancel Safety

This function is not cancel safe

Cancel Safety

This function is not cancel safe

Does not follow symlink

Cancel Safety

This function is not cancel safe

  • handle - Must be opened with FileMode::READ.

Does not follow symlink

Cancel Safety

This function is not cancel safe

Cancel Safety

This function is not cancel safe

  • handle - Must be opened with OpenOptions::write set.
Cancel Safety

This function is not cancel safe

Cancel Safety

This function is not cancel safe

Cancel Safety

This function is not cancel safe

Create symlink

Cancel Safety

This function is not cancel safe

Send write requests

Cancel Safety

This function is not cancel safe

Return limits of the server

Precondition

Requires Extensions::limits to be true.

Cancel safety

This function is not cancel safe

This supports canonicalisation of relative paths and those that need tilde-expansion, i.e. “~”, “~/…” and “~user/…”.

These paths are expanded using shell-lilke rules and the resultant path is canonicalised similarly to WriteEnd::send_realpath_request.

Precondition

Requires Extensions::expand_path to be true.

Cancel safety

This function is not cancel safe

Precondition

Requires Extensions::fsync to be true.

Cancel safety

This function is not cancel safe

Precondition

Requires Extensions::hardlink to be true.

Cancel safety

This function is not cancel safe

Precondition

Requires Extensions::posix_rename to be true.

Cancel safety

This function is not cancel safe

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.