omaha_client::cup_ecdsa

Trait CupRequest

Source
pub trait CupRequest {
    // Required methods
    fn get_uri(&self) -> &str;
    fn set_uri(&mut self, uri: String);
    fn get_serialized_body(&self) -> Result<Vec<u8>>;
}
Expand description

An interface to an under-construction server request, providing read/write access to the URI and read access to the serialized request body.

Required Methods§

Source

fn get_uri(&self) -> &str

Get the request URI.

Source

fn set_uri(&mut self, uri: String)

Set a new request URI.

Source

fn get_serialized_body(&self) -> Result<Vec<u8>>

Get a serialized copy of the request body.

Implementors§