Trait hapi_rs::session::EnvVariable
source · pub trait EnvVariable {
type Type: ?Sized + ToOwned;
fn get_value(
session: &Session,
key: impl AsRef<str>
) -> Result<<Self::Type as ToOwned>::Owned>;
fn set_value(
session: &Session,
key: impl AsRef<str>,
val: &Self::Type
) -> Result<()>;
}
Expand description
Trait bound for Session::get_server_var()
and Session::set_server_var()