pub struct GrpcSpec {
pub payload: GrpcPayloadCode,
pub status: GrpcStatusCode,
}Expand description
Represents grpc spec.
Fields§
§payload: GrpcPayloadCodeThe payload value.
status: GrpcStatusCodeThe status value.
Implementations§
Source§impl GrpcSpec
impl GrpcSpec
Sourcepub const fn new(payload: GrpcPayloadCode, status: GrpcStatusCode) -> Self
pub const fn new(payload: GrpcPayloadCode, status: GrpcStatusCode) -> Self
Creates a new GrpcSpec.
Trait Implementations§
impl Copy for GrpcSpec
impl Eq for GrpcSpec
Source§impl Ord for GrpcSpec
impl Ord for GrpcSpec
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for GrpcSpec
impl PartialOrd for GrpcSpec
impl StructuralPartialEq for GrpcSpec
Auto Trait Implementations§
impl Freeze for GrpcSpec
impl RefUnwindSafe for GrpcSpec
impl Send for GrpcSpec
impl Sync for GrpcSpec
impl Unpin for GrpcSpec
impl UnsafeUnpin for GrpcSpec
impl UnwindSafe for GrpcSpec
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