pub struct Hello {
pub addr: SocketAddr,
}Expand description
Hello, used to initiate network channels
Fields§
§addr: SocketAddrThe Cannonical Address of the host saying Hello
Implementations§
Source§impl Hello
impl Hello
Sourcepub fn new(addr: SocketAddr) -> Hello
pub fn new(addr: SocketAddr) -> Hello
Create a new hello message
Sourcepub fn addr(&self) -> SocketAddr
pub fn addr(&self) -> SocketAddr
Get the address sent in the Hello message
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Hello
impl RefUnwindSafe for Hello
impl Send for Hello
impl Sync for Hello
impl Unpin for Hello
impl UnsafeUnpin for Hello
impl UnwindSafe for Hello
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