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 otherResponsevariants.
Aliased Type§
pub enum Reply {
Ok(Response),
Err(String),
}