[][src]Trait websocket::header::HeaderFormat

pub trait HeaderFormat: HeaderClone + Send + Sync + Any + Debug + Typeable {
    fn fmt_header(&self, f: &mut Formatter) -> Result<(), Error>;
}

A trait for any object that will represent a header field and value.

This trait represents the formatting of a Header for output to a TcpStream.

Required Methods

Format a header to be output into a TcpStream.

This method is not allowed to introduce an Err not produced by the passed-in Formatter.

Trait Implementations

impl<'a> Display for &'a (dyn HeaderFormat + 'static + Send + Sync)
[src]

Formats the value using the given formatter. Read more

Implementors

impl HeaderFormat for AccessControlAllowOrigin
[src]

impl HeaderFormat for Expect
[src]

impl HeaderFormat for IfMatch
[src]

impl HeaderFormat for IfNoneMatch
[src]

impl HeaderFormat for IfRange
[src]

impl HeaderFormat for Pragma
[src]

impl HeaderFormat for Range
[src]

impl HeaderFormat for ReferrerPolicy
[src]

impl HeaderFormat for Vary
[src]

impl HeaderFormat for WebSocketVersion
[src]

impl HeaderFormat for WebSocketExtensions
[src]

impl HeaderFormat for Accept
[src]

impl HeaderFormat for AcceptCharset
[src]

impl HeaderFormat for AcceptEncoding
[src]

impl HeaderFormat for AcceptLanguage
[src]

impl HeaderFormat for AcceptRanges
[src]

impl HeaderFormat for AccessControlAllowCredentials
[src]

impl HeaderFormat for AccessControlAllowHeaders
[src]

impl HeaderFormat for AccessControlAllowMethods
[src]

impl HeaderFormat for AccessControlExposeHeaders
[src]

impl HeaderFormat for AccessControlMaxAge
[src]

impl HeaderFormat for AccessControlRequestHeaders
[src]

impl HeaderFormat for AccessControlRequestMethod
[src]

impl HeaderFormat for Allow
[src]

impl HeaderFormat for CacheControl
[src]

impl HeaderFormat for Connection
[src]

impl HeaderFormat for ContentDisposition
[src]

impl HeaderFormat for ContentEncoding
[src]

impl HeaderFormat for ContentLanguage
[src]

impl HeaderFormat for ContentLength
[src]

impl HeaderFormat for ContentRange
[src]

impl HeaderFormat for ContentType
[src]

impl HeaderFormat for Cookie
[src]

impl HeaderFormat for Date
[src]

impl HeaderFormat for ETag
[src]

impl HeaderFormat for Expires
[src]

impl HeaderFormat for From
[src]

impl HeaderFormat for Host
[src]

impl HeaderFormat for IfModifiedSince
[src]

impl HeaderFormat for IfUnmodifiedSince
[src]

impl HeaderFormat for LastModified
[src]

impl HeaderFormat for Link
[src]

impl HeaderFormat for Location
[src]

impl HeaderFormat for websocket::header::Origin
[src]

impl HeaderFormat for websocket::header::Origin
[src]

impl HeaderFormat for Prefer
[src]

impl HeaderFormat for PreferenceApplied
[src]

impl HeaderFormat for Referer
[src]

impl HeaderFormat for Server
[src]

impl HeaderFormat for SetCookie
[src]

impl HeaderFormat for StrictTransportSecurity
[src]

impl HeaderFormat for TransferEncoding
[src]

impl HeaderFormat for Upgrade
[src]

impl HeaderFormat for UserAgent
[src]

impl HeaderFormat for WebSocketAccept
[src]

impl HeaderFormat for WebSocketKey
[src]

impl HeaderFormat for WebSocketProtocol
[src]

impl<S> HeaderFormat for Authorization<S> where
    S: Scheme + Any,
    <S as FromStr>::Err: 'static, 
[src]