Skip to content

Commit

Permalink
chore(qol): add From<GrpcRouteStatus> for HttpRouteStatus impl
Browse files Browse the repository at this point in the history
  • Loading branch information
the-wondersmith committed Apr 25, 2024
1 parent 2408bad commit 49065d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/exp/grpcroute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ pub struct GrpcRouteStatus {
pub inner: RouteStatus,
}

impl From<GrpcRouteStatus> for HttpRouteStatus {
fn from(route: GrpcRouteStatus) -> Self {
Self { inner: route.inner }
}
}

/// GrpcRouteRule defines the semantics for matching a gRPC request based on
/// conditions (matches), processing it (filters), and forwarding the request to
/// an API object (backendRefs).
Expand Down

0 comments on commit 49065d7

Please sign in to comment.