pub struct RouteRequest {
pub pk: PublicKey,
}
Expand description
Sent by client to server.
Send a routing request to the server that we want to connect
to peer with public key where the public key is the public the peer
announced themselves as. The server must respond to this with a RouteResponse
.
Serialized form:
Length | Content |
---|---|
1 | 0x00 |
32 | Public Key |
Fields§
§pk: PublicKey
The requested PK
Trait Implementations§
Source§impl Clone for RouteRequest
impl Clone for RouteRequest
Source§fn clone(&self) -> RouteRequest
fn clone(&self) -> RouteRequest
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RouteRequest
impl Debug for RouteRequest
Source§impl FromBytes for RouteRequest
impl FromBytes for RouteRequest
Source§fn from_bytes(i: &[u8]) -> IResult<&[u8], RouteRequest, (&[u8], ErrorKind)>
fn from_bytes(i: &[u8]) -> IResult<&[u8], RouteRequest, (&[u8], ErrorKind)>
Deserialize struct using
nom
from raw bytesSource§impl PartialEq for RouteRequest
impl PartialEq for RouteRequest
Source§impl ToBytes for RouteRequest
impl ToBytes for RouteRequest
impl StructuralPartialEq for RouteRequest
Auto Trait Implementations§
impl Freeze for RouteRequest
impl RefUnwindSafe for RouteRequest
impl Send for RouteRequest
impl Sync for RouteRequest
impl Unpin for RouteRequest
impl UnwindSafe for RouteRequest
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