pub struct Loopback {}Trait Implementations§
Source§impl Transform for Loopback
impl Transform for Loopback
Source§fn get_name(&self) -> &'static str
fn get_name(&self) -> &'static str
Name of the transform used in logs and displayed to the user
Source§fn transform<'shorter, 'longer, 'life0, 'async_trait>(
&'life0 mut self,
chain_state: &'shorter mut ChainState<'longer>,
) -> Pin<Box<dyn Future<Output = Result<Messages>> + Send + 'async_trait>>where
Self: 'async_trait,
'shorter: 'async_trait,
'longer: 'async_trait + 'shorter,
'life0: 'async_trait,
fn transform<'shorter, 'longer, 'life0, 'async_trait>(
&'life0 mut self,
chain_state: &'shorter mut ChainState<'longer>,
) -> Pin<Box<dyn Future<Output = Result<Messages>> + Send + 'async_trait>>where
Self: 'async_trait,
'shorter: 'async_trait,
'longer: 'async_trait + 'shorter,
'life0: 'async_trait,
In order to implement your transform you can modify the messages: Read more
Source§impl TransformBuilder for Loopback
impl TransformBuilder for Loopback
Source§fn build(
&self,
_transform_context: TransformContextBuilder,
) -> Box<dyn Transform>
fn build( &self, _transform_context: TransformContextBuilder, ) -> Box<dyn Transform>
Builds a single instance of the transform.
Shotover will create a new transform instance by calling this method for every time this transform is configured in the
topology.yaml.Source§fn get_name(&self) -> &'static str
fn get_name(&self) -> &'static str
Name of the transform used in logs and displayed to the user
fn is_terminating(&self) -> bool
Auto Trait Implementations§
impl Freeze for Loopback
impl RefUnwindSafe for Loopback
impl Send for Loopback
impl Sync for Loopback
impl Unpin for Loopback
impl UnsafeUnpin for Loopback
impl UnwindSafe for Loopback
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