Struct grpc::rt::ServerServiceDefinition
source · pub struct ServerServiceDefinition {
pub prefix: String,
pub methods: Vec<ServerMethod>,
}
Fields
prefix: String
methods: Vec<ServerMethod>
Implementations
sourceimpl ServerServiceDefinition
impl ServerServiceDefinition
pub fn new(prefix: &str, methods: Vec<ServerMethod>) -> ServerServiceDefinition
pub fn find_method(&self, name: &str) -> Option<&ServerMethod>
pub fn handle_method(
&self,
name: &str,
o: RequestOptions,
message: StreamingRequest<Bytes>
) -> StreamingResponse<Vec<u8>>
Auto Trait Implementations
impl !RefUnwindSafe for ServerServiceDefinition
impl Send for ServerServiceDefinition
impl Sync for ServerServiceDefinition
impl Unpin for ServerServiceDefinition
impl !UnwindSafe for ServerServiceDefinition
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more