pub struct MappedAddress;Expand description
The MAPPED-ADDRESS attribute indicates a reflexive transport address of the client. It consists of an 8-bit address family and a 16-bit port, followed by a fixed-length value representing the IP address. If the address family is IPv4, the address MUST be 32 bits. If the address family is IPv6, the address MUST be 128 bits. All fields must be in network byte order.
The address family can take on the following values:
0x01:IPv4 0x02:IPv6
The first 8 bits of the MAPPED-ADDRESS MUST be set to 0 and MUST be ignored by receivers. These bits are present for aligning parameters on natural 32-bit boundaries.
This attribute is used only by servers for achieving backwards compatibility with RFC3489 clients.
Trait Implementations§
Source§impl<'a> Attribute<'a> for MappedAddress
impl<'a> Attribute<'a> for MappedAddress
Source§const TYPE: AttributeType = AttributeType::MappedAddress
const TYPE: AttributeType = AttributeType::MappedAddress
current attribute type.
type Error = Error
Source§type Item = SocketAddr
type Item = SocketAddr
current attribute inner type.
Source§impl Clone for MappedAddress
impl Clone for MappedAddress
Source§fn clone(&self) -> MappedAddress
fn clone(&self) -> MappedAddress
Returns a duplicate 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 MappedAddress
impl Debug for MappedAddress
impl Copy for MappedAddress
Auto Trait Implementations§
impl Freeze for MappedAddress
impl RefUnwindSafe for MappedAddress
impl Send for MappedAddress
impl Sync for MappedAddress
impl Unpin for MappedAddress
impl UnwindSafe for MappedAddress
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request