pub struct TtrpcServiceGenerator;
Expand description
A service generator that takes a service descriptor and generates Rust code for a ttrpc
service.
It generates a trait describing methods of the service and implements the trait for a trapeze::Client
.
To implement a server, users should implement the trait on their own objects.
Trait Implementations§
Source§impl ServiceGenerator for TtrpcServiceGenerator
impl ServiceGenerator for TtrpcServiceGenerator
Auto Trait Implementations§
impl Freeze for TtrpcServiceGenerator
impl RefUnwindSafe for TtrpcServiceGenerator
impl Send for TtrpcServiceGenerator
impl Sync for TtrpcServiceGenerator
impl Unpin for TtrpcServiceGenerator
impl UnwindSafe for TtrpcServiceGenerator
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> 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