[−][src]Struct conjure_runtime::UserAgent
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
Auto Trait Implementations
impl RefUnwindSafe for UserAgent
impl Send for UserAgent
impl Sync for UserAgent
impl Unpin for UserAgent
impl UnwindSafe for UserAgent
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,