#[repr(u32)]pub enum ReqeestedTransport {
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 ReqeestedTransport
impl<'a> Attribute<'a> for ReqeestedTransport
Source§const TYPE: AttributeType = AttributeType::ReqeestedTransport
const TYPE: AttributeType = AttributeType::ReqeestedTransport
current attribute type.
type Error = Error
Source§type Item = ReqeestedTransport
type Item = ReqeestedTransport
current attribute inner type.
Source§impl Clone for ReqeestedTransport
impl Clone for ReqeestedTransport
Source§fn clone(&self) -> ReqeestedTransport
fn clone(&self) -> ReqeestedTransport
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 ReqeestedTransport
impl Debug for ReqeestedTransport
Source§impl Hash for ReqeestedTransport
impl Hash for ReqeestedTransport
Source§impl PartialEq for ReqeestedTransport
impl PartialEq for ReqeestedTransport
Source§impl TryFrom<u32> for ReqeestedTransport
impl TryFrom<u32> for ReqeestedTransport
Source§type Error = TryFromPrimitiveError<ReqeestedTransport>
type Error = TryFromPrimitiveError<ReqeestedTransport>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ReqeestedTransport
impl TryFromPrimitive for ReqeestedTransport
const NAME: &'static str = "ReqeestedTransport"
type Primitive = u32
type Error = TryFromPrimitiveError<ReqeestedTransport>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for ReqeestedTransport
impl Eq for ReqeestedTransport
impl StructuralPartialEq for ReqeestedTransport
Auto Trait Implementations§
impl Freeze for ReqeestedTransport
impl RefUnwindSafe for ReqeestedTransport
impl Send for ReqeestedTransport
impl Sync for ReqeestedTransport
impl Unpin for ReqeestedTransport
impl UnwindSafe for ReqeestedTransport
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> 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