pub struct Input<T>(pub T);Expand description
An input port of kind T.
Recursively overrides the direction of all components of T to be Input
Tuple Fields§
§0: TTrait Implementations§
Source§impl<'de, T> Deserialize<'de> for Input<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Input<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: HasBundleKind> HasBundleKind for Input<T>
impl<T: HasBundleKind> HasBundleKind for Input<T>
Source§type BundleKind = <T as HasBundleKind>::BundleKind
type BundleKind = <T as HasBundleKind>::BundleKind
The Rust type of the
BundleKind associated with this bundle.Source§fn kind(&self) -> Self::BundleKind
fn kind(&self) -> Self::BundleKind
Returns the
BundleKind of this bundle.Source§impl<T: HasNameTree> HasNameTree for Input<T>
impl<T: HasNameTree> HasNameTree for Input<T>
Source§impl<T: HasNodeBundle> HasNodeBundle for Input<T>
impl<T: HasNodeBundle> HasNodeBundle for Input<T>
Source§type NodeBundle = <T as HasNodeBundle>::NodeBundle
type NodeBundle = <T as HasNodeBundle>::NodeBundle
The associated node bundle.
Source§impl<T: HasTerminalBundle> HasTerminalBundle for Input<T>
impl<T: HasTerminalBundle> HasTerminalBundle for Input<T>
Source§type TerminalBundle = <T as HasTerminalBundle>::TerminalBundle
type TerminalBundle = <T as HasTerminalBundle>::TerminalBundle
The associated terminal bundle.
Source§impl<T: Ord> Ord for Input<T>
impl<T: Ord> Ord for Input<T>
Source§impl<T: PartialOrd> PartialOrd for Input<T>
impl<T: PartialOrd> PartialOrd for Input<T>
impl<T: Copy> Copy for Input<T>
impl<T: Eq> Eq for Input<T>
impl<T> StructuralPartialEq for Input<T>
Auto Trait Implementations§
impl<T> Freeze for Input<T>where
T: Freeze,
impl<T> RefUnwindSafe for Input<T>where
T: RefUnwindSafe,
impl<T> Send for Input<T>where
T: Send,
impl<T> Sync for Input<T>where
T: Sync,
impl<T> Unpin for Input<T>where
T: Unpin,
impl<T> UnwindSafe for Input<T>where
T: UnwindSafe,
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].