Struct conjure_runtime::UserAgent
source · pub struct UserAgent { /* private fields */ }
Expand description
A representation of an HTTP User-Agent
header value.
Implementations§
source§impl UserAgent
impl UserAgent
sourcepub fn push_agent(&mut self, agent: Agent)
pub fn push_agent(&mut self, agent: Agent)
Adds an additional informational agent to the User-Agent
.
sourcepub fn set_node_id(&mut self, node_id: &str)
pub fn set_node_id(&mut self, node_id: &str)
Sets the identifier of this node.
For example, this could be the node’s IP address.
sourcepub fn informational(&self) -> &[Agent]
pub fn informational(&self) -> &[Agent]
Returns additional informational agents.
Trait Implementations§
source§impl PartialEq for UserAgent
impl PartialEq for UserAgent
impl Eq for UserAgent
impl StructuralPartialEq for UserAgent
Auto Trait Implementations§
impl Freeze for UserAgent
impl RefUnwindSafe for UserAgent
impl Send for UserAgent
impl Sync for UserAgent
impl Unpin for UserAgent
impl UnwindSafe for UserAgent
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.