pub struct ReceiveRequest {
    pub filename: PathBuf,
    pub filesize: u64,
    /* private fields */
}
Expand description

A pending files send offer from the other side

You should consume this object, either by calling accept or reject.

Fields

filename: PathBuf

Security warning: this is untrusted and unverified input

filesize: u64

Implementations

Accept the file offer

This will transfer the file and save it on disk.

Reject the file offer

This will send an error message to the other side so that it knows the transfer failed.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

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.