pub struct SqlComponent { /* private fields */ }
Expand description
The Azure SQL Wick component.
Implementations§
Source§impl SqlComponent
impl SqlComponent
Sourcepub async fn new(
config: SqlComponentConfig,
root_config: Option<RuntimeConfig>,
metadata: Option<Metadata>,
resolver: &Resolver,
) -> Result<Self, ComponentError>
pub async fn new( config: SqlComponentConfig, root_config: Option<RuntimeConfig>, metadata: Option<Metadata>, resolver: &Resolver, ) -> Result<Self, ComponentError>
Instantiate a new Azure SQL component.
Trait Implementations§
Source§impl Clone for SqlComponent
impl Clone for SqlComponent
Source§fn clone(&self) -> SqlComponent
fn clone(&self) -> SqlComponent
Returns a copy 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 Component for SqlComponent
impl Component for SqlComponent
Source§fn handle(
&self,
invocation: Invocation,
_data: Option<RuntimeConfig>,
_callback: LocalScope,
) -> BoxFuture<'_, Result<PacketStream, ComponentError>>
fn handle( &self, invocation: Invocation, _data: Option<RuntimeConfig>, _callback: LocalScope, ) -> BoxFuture<'_, Result<PacketStream, ComponentError>>
The
handle
method is called when a component’s operation is invoked. The component is expected to delegate to the appopriate operation based on the Invocation target.Source§fn signature(&self) -> &ComponentSignature
fn signature(&self) -> &ComponentSignature
The
signature
method returns the ComponentSignature for the component.Auto Trait Implementations§
impl Freeze for SqlComponent
impl !RefUnwindSafe for SqlComponent
impl Send for SqlComponent
impl Sync for SqlComponent
impl Unpin for SqlComponent
impl !UnwindSafe for SqlComponent
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> 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 more