Expand description
The ADJ
(adjust) request.
Tries to parse a slice of bytes into a Request.
parse
will error if the string is not a valid FCP request.
use fancp::{Request, SetRequest};
let req = "SET %25";
assert_eq!(Ok(Request::Set(SetRequest::Percentage(25))), Request::parse(req));
pub fn method(&self) -> &'static str
Returns the method name, as a static &str.
use fancp::{Request, GetRequest};
let req = Request::Get(GetRequest::Config);
assert_eq!("GET", req.method());
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
The associated error which can be returned from parsing.
Parses a string s
to return a value of this type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.