pub struct Origin {
pub id: u64,
}Expand description
A relay origin, identified by a 62-bit varint on the wire.
id must be non-zero for a real origin; id == 0 is reserved as a
placeholder for Lite03-style hops where the actual value isn’t carried.
Encoding a value outside the 62-bit range (>= 2^62) will fail at the
varint layer; Origin::random picks a valid random nonzero id.
Fields§
§id: u64Non-zero 62-bit identifier. Encoded as a QUIC varint on the wire.
Implementations§
Trait Implementations§
impl Copy for Origin
impl Eq for Origin
impl StructuralPartialEq for Origin
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