pub type Reply = Result<Response, String>;
Expand description
Reply from niri to client.
Every request gets one reply.
- If an error had occurred, it will be an
Reply::Err
. - If the request does not need any particular response, it will be
Reply::Ok(Response::Handled)
. Kind of like anOk(())
. - Otherwise, it will be
Reply::Ok(response)
with one of the otherResponse
variants.
Aliased Type§
enum Reply {
Ok(Response),
Err(String),
}