pub struct OutputDefinition { /* private fields */ }
Expand description
An output definition.
Outputs are a combination of the output name and data type, which defines the data type (or types) of events that can be emitted from a particular component output.
Implementations§
Source§impl OutputDefinition
impl OutputDefinition
Sourcepub const fn default_output(event_ty: EventType) -> Self
pub const fn default_output(event_ty: EventType) -> Self
Creates a default output with the given data type.
Sourcepub fn named_output<S>(name: S, event_ty: EventType) -> Self
pub fn named_output<S>(name: S, event_ty: EventType) -> Self
Creates a named output with the given name and data type.
Sourcepub fn output_name(&self) -> Option<&str>
pub fn output_name(&self) -> Option<&str>
Returns the output name.
If this is a default output, None
is returned.
Trait Implementations§
Source§impl Clone for OutputDefinition
impl Clone for OutputDefinition
Source§fn clone(&self) -> OutputDefinition
fn clone(&self) -> OutputDefinition
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 moreAuto Trait Implementations§
impl Freeze for OutputDefinition
impl RefUnwindSafe for OutputDefinition
impl Send for OutputDefinition
impl Sync for OutputDefinition
impl Unpin for OutputDefinition
impl UnwindSafe for OutputDefinition
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
Source§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Track for T
impl<T> Track for T
§fn track_allocations(self, token: AllocationGroupToken) -> Tracked<Self>
fn track_allocations(self, token: AllocationGroupToken) -> Tracked<Self>
Instruments this type by attaching the given allocation group token, returning a
Tracked
wrapper. Read more§fn in_current_allocation_group(self) -> Tracked<Self>
fn in_current_allocation_group(self) -> Tracked<Self>
Instruments this type by attaching the current allocation group, returning a
Tracked
wrapper. Read more