Struct x11rb::protocol::xprint::CreateContextRequest [−][src]
pub struct CreateContextRequest<'input> {
pub context_id: u32,
pub printer_name: Cow<'input, [String8]>,
pub locale: Cow<'input, [String8]>,
}
Fields
context_id: u32
printer_name: Cow<'input, [String8]>
locale: Cow<'input, [String8]>
Implementations
pub fn send<Conn: ?Sized>(
self,
conn: &Conn
) -> Result<VoidCookie<'_, Conn>, ConnectionError> where
Conn: RequestConnection + ?Sized,
pub fn try_parse_request(
header: RequestHeader,
value: &'input [u8]
) -> Result<Self, ParseError>
pub fn try_parse_request(
header: RequestHeader,
value: &'input [u8]
) -> Result<Self, ParseError>
Parse this request given its header, its body, and any fds that go along with it
Clone all borrowed data in this CreateContextRequest.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<'input> RefUnwindSafe for CreateContextRequest<'input>
impl<'input> Send for CreateContextRequest<'input>
impl<'input> Sync for CreateContextRequest<'input>
impl<'input> Unpin for CreateContextRequest<'input>
impl<'input> UnwindSafe for CreateContextRequest<'input>
Blanket Implementations
Mutably borrows from an owned value. Read more