Struct grr_plugin::Server
source · [−]pub struct Server { /* private fields */ }Implementations
pub async fn serve<S>(&mut self, plugin: S) -> Result<(), Error> where
S: Service<Request<Body>, Response = Response<BoxBody>> + NamedService + Clone + Send + 'static,
<S as Service<Request<Body>>>::Future: Send + 'static,
<S as Service<Request<Body>>>::Error: Into<Box<dyn Error + Send + Sync>> + Send,
Auto Trait Implementations
impl !RefUnwindSafe for Server
impl !UnwindSafe for Server
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more