Type Alias niri_ipc::Reply

source ·
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 an Ok(()).
  • Otherwise, it will be Reply::Ok(response) with one of the other Response variants.

Aliased Type§

enum Reply {
    Ok(Response),
    Err(String),
}

Variants§

§1.0.0

Ok(Response)

Contains the success value

§1.0.0

Err(String)

Contains the error value