pub struct RouterPeer { /* private fields */ }Expand description
A child router (what routing holds) as a peer.
Implementations§
Source§impl RouterPeer
impl RouterPeer
pub fn new(router: Box<dyn ChildRouter>) -> Self
Trait Implementations§
Source§impl Peer for RouterPeer
impl Peer for RouterPeer
Source§fn call<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
method: &'life1 str,
params: Value,
auth: Option<&'life2 AuthContext>,
) -> Pin<Box<dyn Future<Output = Result<PlexusStream, PlexusError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn call<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
method: &'life1 str,
params: Value,
auth: Option<&'life2 AuthContext>,
) -> Pin<Box<dyn Future<Output = Result<PlexusStream, PlexusError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Call one of its methods (
repos, or a path below it: child.m).Auto Trait Implementations§
impl !RefUnwindSafe for RouterPeer
impl !UnwindSafe for RouterPeer
impl Forget for RouterPeer
impl Freeze for RouterPeer
impl Send for RouterPeer
impl Sync for RouterPeer
impl Unpin for RouterPeer
impl UnsafeUnpin for RouterPeer
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