Struct conjure_runtime::UserAgent
source · [−]pub struct UserAgent { /* private fields */ }Expand description
A representation of an HTTP User-Agent header value.
Implementations
sourceimpl 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
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more