pub struct Origin(/* private fields */);Expand description
A crate::Origin builder.
Implementations§
Source§impl Origin
impl Origin
Sourcepub fn with_ip_addr(
sess_id: impl ToString,
sess_version: u64,
unicast_address: impl Into<IpAddr>,
) -> Self
pub fn with_ip_addr( sess_id: impl ToString, sess_version: u64, unicast_address: impl Into<IpAddr>, ) -> Self
Construct an crate::builders::Origin with the specified IP unicast_address
Sourcepub fn new(
sess_id: impl ToString,
sess_version: u64,
nettype: NetType,
addrtype: AddrType,
unicast_address: impl ToString,
) -> Self
pub fn new( sess_id: impl ToString, sess_version: u64, nettype: NetType, addrtype: AddrType, unicast_address: impl ToString, ) -> Self
Construct an crate::builders::Origin
See also crate::Origin::builder_with_ip_addr
pub fn username(self, username: impl ToString) -> Self
pub fn username_if(self, username: impl ToString, predicate: bool) -> Self
pub fn username_if_some(self, username: Option<impl ToString>) -> Self
pub fn build(self) -> Origin
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Origin
impl RefUnwindSafe for Origin
impl Send for Origin
impl Sync for Origin
impl Unpin for Origin
impl UnsafeUnpin for Origin
impl UnwindSafe for Origin
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