pub struct VecFileContents { /* private fields */ }

Implementations

Trait Implementations

The implementation-defined maximum size of the store corresponding to a FileContents implementation. Read more

The current number of bytes this FileContents describes.

Resize to hold new_size number of bytes, or error if this is not possible.

Read from the file from offset, filling a list of IoSlice. The returend size must not be more than the capactiy of iovs, and must not exceed the limit reported by self.max_size(). Read more

Write a list of IoSlice starting at offset. offset plus the total size of all iovs is guaranteed to not exceed max_size. Implementations must not indicate more bytes have been written than can be held by iovs. Read more

Read from the file at offset, filling buf. The returned size must not be more than the capacity of buf, and offset plus the returned size must not exceed self.max_size(). Read more

Write contents from buf to this file starting at offset. offset plus the length of buf is guaranteed to not exceed max_size. Implementations must not indicate more bytes have been written than the size of buf. 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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more