pub enum DroughterResult {
    Handle(Response<Vec<u8>>),
    Ignore,
    Drop,
    DropWith(Response<Vec<u8>>),
}

Variants§

§

Handle(Response<Vec<u8>>)

Indicates that the response should be sent back to the client.

§

Ignore

Indicates that the calling server should not reply to the request, as the droughter has already handled it. This is primarily intended for protocols such as websockets which bootstrap over HTTP.

§

Drop

Indicates that the connection in question should immediately be dropped.

§

DropWith(Response<Vec<u8>>)

Indicates that the response should be sent, prior to dropping the connection.

Trait Implementations§

Formats the value using the given formatter. 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

Returns the argument unchanged.

Calls U::from(self).

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

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.