Enum drought::droughter::DroughtResult
source · pub enum DroughtResult {
Handle(Response<Vec<u8>>),
NotFound,
Ignore,
Drop,
DropWith(Response<Vec<u8>>),
}
Variants§
Handle(Response<Vec<u8>>)
Indicates that the response should be sent back to the client.
NotFound
Indicates that the Drought
was unable to handle the request,
and another should be tried.
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.