#[repr(u32)]pub enum RequestedTransport {
Tcp = 100_663_296,
Udp = 285_212_672,
}Expand description
This attribute is used by the client to request a specific transport protocol for the allocated transport address.
The Protocol field specifies the desired protocol. The codepoints used in this field are taken from those allowed in the Protocol field in the IPv4 header and the NextHeader field in the IPv6 header [Protocol-Numbers]. This specification only allows the use of codepoint 17 (User Datagram Protocol).
The RFFU field MUST be set to zero on transmission and MUST be ignored on reception. It is reserved for future uses.
Variants§
Trait Implementations§
Source§impl<'a> Attribute<'a> for RequestedTransport
impl<'a> Attribute<'a> for RequestedTransport
Source§const TYPE: AttributeType = AttributeType::RequestedTransport
const TYPE: AttributeType = AttributeType::RequestedTransport
current attribute type.
type Error = Error
Source§type Item = RequestedTransport
type Item = RequestedTransport
current attribute inner type.
Source§impl Clone for RequestedTransport
impl Clone for RequestedTransport
Source§fn clone(&self) -> RequestedTransport
fn clone(&self) -> RequestedTransport
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 RequestedTransport
impl Debug for RequestedTransport
Source§impl Hash for RequestedTransport
impl Hash for RequestedTransport
Source§impl PartialEq for RequestedTransport
impl PartialEq for RequestedTransport
Source§impl TryFrom<u32> for RequestedTransport
impl TryFrom<u32> for RequestedTransport
Source§type Error = TryFromPrimitiveError<RequestedTransport>
type Error = TryFromPrimitiveError<RequestedTransport>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for RequestedTransport
impl TryFromPrimitive for RequestedTransport
const NAME: &'static str = "RequestedTransport"
type Primitive = u32
type Error = TryFromPrimitiveError<RequestedTransport>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for RequestedTransport
impl Eq for RequestedTransport
impl StructuralPartialEq for RequestedTransport
Auto Trait Implementations§
impl Freeze for RequestedTransport
impl RefUnwindSafe for RequestedTransport
impl Send for RequestedTransport
impl Sync for RequestedTransport
impl Unpin for RequestedTransport
impl UnsafeUnpin for RequestedTransport
impl UnwindSafe for RequestedTransport
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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