Struct conjure_runtime::UserAgent [−][src]
pub struct UserAgent { /* fields omitted */ }A representation of an HTTP User-Agent header value.
Implementations
impl UserAgent[src]
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
Auto Trait Implementations
impl RefUnwindSafe for UserAgent
impl RefUnwindSafe for UserAgentimpl UnwindSafe for UserAgent
impl UnwindSafe for UserAgentBlanket Implementations
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,