#[repr(transparent)]pub struct WrpcRpcImpl<T>(pub T);
Expand description
Wrapper struct, for which [crate::bindings::wrpc::transport::transport::Host] is implemented
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T: WrpcView> Host for WrpcRpcImpl<T>
impl<T: WrpcView> Host for WrpcRpcImpl<T>
Source§impl<T: WrpcView> HostContext for WrpcRpcImpl<T>
impl<T: WrpcView> HostContext for WrpcRpcImpl<T>
Source§impl<T: WrpcView> HostError for WrpcRpcImpl<T>
impl<T: WrpcView> HostError for WrpcRpcImpl<T>
Source§fn from_io_error(
&mut self,
error: Resource<IoError>,
) -> Result<Result<Resource<Error>, Resource<IoError>>>
fn from_io_error( &mut self, error: Resource<IoError>, ) -> Result<Result<Resource<Error>, Resource<IoError>>>
Source§fn to_debug_string(&mut self, error: Resource<Error>) -> Result<String>
fn to_debug_string(&mut self, error: Resource<Error>) -> Result<String>
Returns a string that is suitable to assist humans in debugging
this error. Read more
fn drop(&mut self, error: Resource<Error>) -> Result<()>
Source§impl<T: WrpcView> HostIncomingChannel for WrpcRpcImpl<T>
impl<T: WrpcView> HostIncomingChannel for WrpcRpcImpl<T>
fn data( &mut self, incoming: Resource<IncomingChannel>, ) -> Result<Option<Resource<InputStream>>>
fn index( &mut self, incoming: Resource<IncomingChannel>, path: Vec<u32>, ) -> Result<Result<Resource<IncomingChannel>, Resource<Error>>>
fn drop(&mut self, incoming: Resource<IncomingChannel>) -> Result<()>
Source§impl<T: WrpcView> HostInvocation for WrpcRpcImpl<T>
impl<T: WrpcView> HostInvocation for WrpcRpcImpl<T>
Source§fn subscribe(
&mut self,
invocation: Resource<Invocation>,
) -> Result<Resource<Pollable>>
fn subscribe( &mut self, invocation: Resource<Invocation>, ) -> Result<Resource<Pollable>>
Returns a pollable, which will be ready once the invocation has been transmitted
Source§async fn finish(
&mut self,
invocation: Resource<Invocation>,
) -> Result<Result<(Resource<OutgoingChannel>, Resource<IncomingChannel>), Resource<Error>>>
async fn finish( &mut self, invocation: Resource<Invocation>, ) -> Result<Result<(Resource<OutgoingChannel>, Resource<IncomingChannel>), Resource<Error>>>
Finish will consume this invocation returning an error, if any.
fn drop(&mut self, invocation: Resource<Invocation>) -> Result<()>
Source§impl<T: WrpcView> HostOutgoingChannel for WrpcRpcImpl<T>
impl<T: WrpcView> HostOutgoingChannel for WrpcRpcImpl<T>
fn data( &mut self, outgoing: Resource<OutgoingChannel>, ) -> Result<Option<Resource<OutputStream>>>
fn index( &mut self, outgoing: Resource<OutgoingChannel>, path: Vec<u32>, ) -> Result<Result<Resource<OutgoingChannel>, Resource<Error>>>
fn drop(&mut self, outgoing: Resource<OutgoingChannel>) -> Result<()>
impl<T: WrpcView> Host for WrpcRpcImpl<T>
impl<T: WrpcView> Host for WrpcRpcImpl<T>
impl<T: WrpcView> Host for WrpcRpcImpl<T>
Auto Trait Implementations§
impl<T> Freeze for WrpcRpcImpl<T>where
T: Freeze,
impl<T> RefUnwindSafe for WrpcRpcImpl<T>where
T: RefUnwindSafe,
impl<T> Send for WrpcRpcImpl<T>where
T: Send,
impl<T> Sync for WrpcRpcImpl<T>where
T: Sync,
impl<T> Unpin for WrpcRpcImpl<T>where
T: Unpin,
impl<T> UnwindSafe for WrpcRpcImpl<T>where
T: 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
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self
file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self
file descriptor. Read moreSource§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