Struct trapeze_codegen::TtrpcServiceGenerator
source · 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