pub struct IrohTransport<A> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<A: Authorize> RpcTransport for IrohTransport<A>
impl<A: Authorize> RpcTransport for IrohTransport<A>
type Error = Error
type Reader = Reader
type Writer = Writer
async fn unary( &self, method: &'static MethodDescriptor, request: Vec<u8>, ) -> Result<Vec<u8>, Error>
async fn observe( &self, method: &'static MethodDescriptor, request: Vec<u8>, ) -> Result<Reader, Error>
async fn exchange( &self, method: &'static MethodDescriptor, opening: Vec<u8>, ) -> Result<(Writer, Reader), Error>
Auto Trait Implementations§
impl<A> Freeze for IrohTransport<A>where
A: Freeze,
impl<A> RefUnwindSafe for IrohTransport<A>where
A: RefUnwindSafe,
impl<A> Send for IrohTransport<A>where
A: Send,
impl<A> Sync for IrohTransport<A>where
A: Sync,
impl<A> Unpin for IrohTransport<A>where
A: Unpin,
impl<A> UnsafeUnpin for IrohTransport<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for IrohTransport<A>where
A: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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