pub struct AllocationInfo {
pub five_tuple: FiveTuple,
pub username: String,
pub relay_addr: SocketAddr,
}Expand description
Information about an Allocation.
Fields§
§five_tuple: FiveTupleFiveTuple of this Allocation.
username: StringUsername of this Allocation.
relay_addr: SocketAddrRelay address of this Allocation.
Implementations§
Source§impl AllocationInfo
impl AllocationInfo
Sourcepub fn new(
five_tuple: FiveTuple,
username: String,
relay_addr: SocketAddr,
) -> Self
pub fn new( five_tuple: FiveTuple, username: String, relay_addr: SocketAddr, ) -> Self
Creates a new AllocationInfo.
Trait Implementations§
Source§impl Clone for AllocationInfo
impl Clone for AllocationInfo
Source§fn clone(&self) -> AllocationInfo
fn clone(&self) -> AllocationInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AllocationInfo
impl RefUnwindSafe for AllocationInfo
impl Send for AllocationInfo
impl Sync for AllocationInfo
impl Unpin for AllocationInfo
impl UnsafeUnpin for AllocationInfo
impl UnwindSafe for AllocationInfo
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