Struct x11rb_protocol::protocol::xproto::SetScreenSaverRequest
source · [−]pub struct SetScreenSaverRequest {
pub timeout: i16,
pub interval: i16,
pub prefer_blanking: Blanking,
pub allow_exposures: Exposures,
}
Fields
timeout: i16
interval: i16
prefer_blanking: Blanking
allow_exposures: Exposures
Implementations
sourceimpl SetScreenSaverRequest
impl SetScreenSaverRequest
sourcepub fn serialize(self) -> BufWithFds<PiecewiseBuf<'static>>
pub fn serialize(self) -> BufWithFds<PiecewiseBuf<'static>>
Serialize this request into bytes for the provided connection
sourcepub fn try_parse_request(
header: RequestHeader,
value: &[u8]
) -> Result<Self, ParseError>
pub fn try_parse_request(
header: RequestHeader,
value: &[u8]
) -> Result<Self, ParseError>
Parse this request given its header, its body, and any fds that go along with it
Trait Implementations
sourceimpl Clone for SetScreenSaverRequest
impl Clone for SetScreenSaverRequest
sourcefn clone(&self) -> SetScreenSaverRequest
fn clone(&self) -> SetScreenSaverRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SetScreenSaverRequest
impl Debug for SetScreenSaverRequest
sourceimpl Default for SetScreenSaverRequest
impl Default for SetScreenSaverRequest
sourcefn default() -> SetScreenSaverRequest
fn default() -> SetScreenSaverRequest
Returns the “default value” for a type. Read more
sourceimpl Hash for SetScreenSaverRequest
impl Hash for SetScreenSaverRequest
sourceimpl Ord for SetScreenSaverRequest
impl Ord for SetScreenSaverRequest
sourceimpl PartialEq<SetScreenSaverRequest> for SetScreenSaverRequest
impl PartialEq<SetScreenSaverRequest> for SetScreenSaverRequest
sourcefn eq(&self, other: &SetScreenSaverRequest) -> bool
fn eq(&self, other: &SetScreenSaverRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SetScreenSaverRequest) -> bool
fn ne(&self, other: &SetScreenSaverRequest) -> bool
This method tests for !=
.
sourceimpl PartialOrd<SetScreenSaverRequest> for SetScreenSaverRequest
impl PartialOrd<SetScreenSaverRequest> for SetScreenSaverRequest
sourcefn partial_cmp(&self, other: &SetScreenSaverRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &SetScreenSaverRequest) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Request for SetScreenSaverRequest
impl Request for SetScreenSaverRequest
impl Copy for SetScreenSaverRequest
impl Eq for SetScreenSaverRequest
impl StructuralEq for SetScreenSaverRequest
impl StructuralPartialEq for SetScreenSaverRequest
impl VoidRequest for SetScreenSaverRequest
Auto Trait Implementations
impl RefUnwindSafe for SetScreenSaverRequest
impl Send for SetScreenSaverRequest
impl Sync for SetScreenSaverRequest
impl Unpin for SetScreenSaverRequest
impl UnwindSafe for SetScreenSaverRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more