Struct tungstenite::handshake::server::NoCallback [−][src]
pub struct NoCallback;
Expand description
Stub for callback that does nothing.
Trait Implementations
fn on_request(
self,
_request: &Request,
response: Response
) -> StdResult<Response, ErrorResponse>
fn on_request(
self,
_request: &Request,
response: Response
) -> StdResult<Response, ErrorResponse>
Called whenever the server read the request from the client and is ready to reply to it. May return additional reply headers. Returning an error resulting in rejecting the incoming connection. Read more
Auto Trait Implementations
impl RefUnwindSafe for NoCallback
impl Send for NoCallback
impl Sync for NoCallback
impl Unpin for NoCallback
impl UnwindSafe for NoCallback
Blanket Implementations
Mutably borrows from an owned value. Read more