[][src]Struct conjure_runtime::UserAgent

pub struct UserAgent { /* fields omitted */ }

A representation of an HTTP User-Agent header value.

Methods

impl UserAgent[src]

pub fn new(primary: Agent) -> UserAgent[src]

Creates a new UserAgent.

pub fn push_agent(&mut self, agent: Agent)[src]

Adds an additional informational agent to the User-Agent.

pub fn set_node_id(&mut self, node_id: &str)[src]

Sets the identifier of this node.

For example, this could be the node's IP address.

pub fn node_id(&self) -> Option<&str>[src]

Returns the identifier of this node, if provided.

pub fn primary(&self) -> &Agent[src]

Returns the primary agent.

pub fn informational(&self) -> &[Agent][src]

Returns additional informational agents.

Trait Implementations

impl Clone for UserAgent[src]

impl Debug for UserAgent[src]

impl Display for UserAgent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,