pub struct OperationTarget { /* private fields */ }Expand description
A router’s operation target: its canonical schema, cached metadata and handler position.
Targets are assigned by the routing service and passed to protocol routers at construction.
Implementations§
Source§impl OperationTarget
impl OperationTarget
Sourcepub fn operation(self) -> &'static OperationSchema<'static>
pub fn operation(self) -> &'static OperationSchema<'static>
Returns the operation’s canonical schema.
Sourcepub fn has_streaming_input(self) -> bool
pub fn has_streaming_input(self) -> bool
Whether the operation consumes a streaming input.
Sourcepub fn has_streaming_blob_input(self) -> bool
pub fn has_streaming_blob_input(self) -> bool
Whether the operation consumes a streaming blob, rather than an event stream.
Sourcepub fn has_event_stream_input(self) -> bool
pub fn has_event_stream_input(self) -> bool
Whether the operation consumes an event stream, rather than a streaming blob.
Sourcepub fn has_streaming_output(self) -> bool
pub fn has_streaming_output(self) -> bool
Whether the operation produces a streaming output.
Sourcepub fn has_streaming_blob(self) -> bool
pub fn has_streaming_blob(self) -> bool
Whether either the input or output contains a streaming blob.
Trait Implementations§
Source§impl Clone for OperationTarget
impl Clone for OperationTarget
Source§fn clone(&self) -> OperationTarget
fn clone(&self) -> OperationTarget
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 OperationTarget
impl Debug for OperationTarget
impl Copy for OperationTarget
Auto Trait Implementations§
impl Freeze for OperationTarget
impl !RefUnwindSafe for OperationTarget
impl Send for OperationTarget
impl Sync for OperationTarget
impl Unpin for OperationTarget
impl UnsafeUnpin for OperationTarget
impl !UnwindSafe for OperationTarget
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<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>
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 moreCreates a shared type from an unshared type.