Struct lightning_signer::util::status::Status
source · pub struct Status { /* private fields */ }
Expand description
gRPC compatible error status
Implementations§
source§impl Status
impl Status
sourcepub fn new(code: Code, message: impl Into<String>) -> Self
pub fn new(code: Code, message: impl Into<String>) -> Self
Create a new Status
with the associated code and message.
sourcepub fn invalid_argument(message: impl Into<String>) -> Status
pub fn invalid_argument(message: impl Into<String>) -> Status
Construct an invalid argument status
sourcepub fn failed_precondition(message: impl Into<String>) -> Status
pub fn failed_precondition(message: impl Into<String>) -> Status
Construct a failed precondition status, used for policy violation
Trait Implementations§
source§impl From<ValidationError> for Status
impl From<ValidationError> for Status
source§fn from(ve: ValidationError) -> Self
fn from(ve: ValidationError) -> Self
Converts to this type from the input type.