Struct ratchet_rs::NoExtProvider [−][src]
pub struct NoExtProvider;
Expand description
An extension provider stub that will always succeed with NoExt
.
Trait Implementations
type Error = Infallible
type Error = Infallible
The error produced by this extension if the handshake failed.
Apply this extension’s headers to a request.
pub fn negotiate_client(
&self,
_headers: &[Header<'_>]
) -> Result<Option<<NoExtProvider as ExtensionProvider>::Extension>, <NoExtProvider as ExtensionProvider>::Error>
pub fn negotiate_client(
&self,
_headers: &[Header<'_>]
) -> Result<Option<<NoExtProvider as ExtensionProvider>::Extension>, <NoExtProvider as ExtensionProvider>::Error>
Negotiate the headers that the server responded with. Read more
pub fn negotiate_server(
&self,
_headers: &[Header<'_>]
) -> Result<Option<(<NoExtProvider as ExtensionProvider>::Extension, HeaderValue)>, <NoExtProvider as ExtensionProvider>::Error>
pub fn negotiate_server(
&self,
_headers: &[Header<'_>]
) -> Result<Option<(<NoExtProvider as ExtensionProvider>::Extension, HeaderValue)>, <NoExtProvider as ExtensionProvider>::Error>
Negotiate the headers that a client has sent. Read more
Auto Trait Implementations
impl RefUnwindSafe for NoExtProvider
impl Send for NoExtProvider
impl Sync for NoExtProvider
impl Unpin for NoExtProvider
impl UnwindSafe for NoExtProvider
Blanket Implementations
Mutably borrows from an owned value. Read more