pub struct Origin<'a> {
pub user_name: Cow<'a, str>,
pub session_id: u64,
pub session_version: u32,
pub net_type: Cow<'a, str>,
pub ip_ver: IpVer,
pub addr: IpAddr,
}
Expand description
Origin
o=- 20518 0 IN IP4 203.0.113.1
Fields
user_name: Cow<'a, str>
session_id: u64
session_version: u32
net_type: Cow<'a, str>
ip_ver: IpVer
addr: IpAddr
Implementations
sourceimpl<'a> Origin<'a>
impl<'a> Origin<'a>
sourcepub fn into_owned(self) -> Origin<'static>
pub fn into_owned(self) -> Origin<'static>
Returns a version of self
with all fields converted to owning versions.
Trait Implementations
impl<'a> Eq for Origin<'a>
impl<'a> StructuralEq for Origin<'a>
impl<'a> StructuralPartialEq for Origin<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Origin<'a>
impl<'a> Send for Origin<'a>
impl<'a> Sync for Origin<'a>
impl<'a> Unpin for Origin<'a>
impl<'a> UnwindSafe for Origin<'a>
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