pub struct FailureInjectorTransport { /* private fields */ }Implementations§
Source§impl FailureInjectorTransport
impl FailureInjectorTransport
pub fn new(inner: Arc<dyn Transport>, mode: InjectionMode) -> Arc<Self> ⓘ
pub fn set_mode(&self, mode: InjectionMode)
Trait Implementations§
Source§impl Transport for FailureInjectorTransport
impl Transport for FailureInjectorTransport
Source§fn listen<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Address, TransportError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn listen<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Address, TransportError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Bind a listener and return the local
Address.Source§fn associate<'life0, 'life1, 'async_trait>(
&'life0 self,
target: &'life1 Address,
) -> Pin<Box<dyn Future<Output = Result<(), TransportError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn associate<'life0, 'life1, 'async_trait>(
&'life0 self,
target: &'life1 Address,
) -> Pin<Box<dyn Future<Output = Result<(), TransportError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Open (or reuse) an outbound association to
target.Source§fn send<'life0, 'life1, 'async_trait>(
&'life0 self,
target: &'life1 Address,
pdu: AkkaPdu,
) -> Pin<Box<dyn Future<Output = Result<(), TransportError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send<'life0, 'life1, 'async_trait>(
&'life0 self,
target: &'life1 Address,
pdu: AkkaPdu,
) -> Pin<Box<dyn Future<Output = Result<(), TransportError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send a single PDU to the peer at
target. Implementations are
expected to associate lazily if needed.Source§fn inbound(&self) -> UnboundedReceiver<InboundFrame>
fn inbound(&self) -> UnboundedReceiver<InboundFrame>
Take ownership of the inbound stream. Calling more than once
returns an empty channel.
Auto Trait Implementations§
impl Freeze for FailureInjectorTransport
impl !RefUnwindSafe for FailureInjectorTransport
impl Send for FailureInjectorTransport
impl Sync for FailureInjectorTransport
impl Unpin for FailureInjectorTransport
impl UnsafeUnpin for FailureInjectorTransport
impl !UnwindSafe for FailureInjectorTransport
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