Struct x11rb_protocol::protocol::xproto::ForceScreenSaverRequest
source · [−]pub struct ForceScreenSaverRequest {
pub mode: ScreenSaver,
}
Fields
mode: ScreenSaver
Implementations
sourceimpl ForceScreenSaverRequest
impl ForceScreenSaverRequest
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 ForceScreenSaverRequest
impl Clone for ForceScreenSaverRequest
sourcefn clone(&self) -> ForceScreenSaverRequest
fn clone(&self) -> ForceScreenSaverRequest
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 ForceScreenSaverRequest
impl Debug for ForceScreenSaverRequest
sourceimpl Default for ForceScreenSaverRequest
impl Default for ForceScreenSaverRequest
sourcefn default() -> ForceScreenSaverRequest
fn default() -> ForceScreenSaverRequest
Returns the “default value” for a type. Read more
sourceimpl Hash for ForceScreenSaverRequest
impl Hash for ForceScreenSaverRequest
sourceimpl Ord for ForceScreenSaverRequest
impl Ord for ForceScreenSaverRequest
sourceimpl PartialEq<ForceScreenSaverRequest> for ForceScreenSaverRequest
impl PartialEq<ForceScreenSaverRequest> for ForceScreenSaverRequest
sourcefn eq(&self, other: &ForceScreenSaverRequest) -> bool
fn eq(&self, other: &ForceScreenSaverRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ForceScreenSaverRequest) -> bool
fn ne(&self, other: &ForceScreenSaverRequest) -> bool
This method tests for !=
.
sourceimpl PartialOrd<ForceScreenSaverRequest> for ForceScreenSaverRequest
impl PartialOrd<ForceScreenSaverRequest> for ForceScreenSaverRequest
sourcefn partial_cmp(&self, other: &ForceScreenSaverRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &ForceScreenSaverRequest) -> 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 ForceScreenSaverRequest
impl Request for ForceScreenSaverRequest
impl Copy for ForceScreenSaverRequest
impl Eq for ForceScreenSaverRequest
impl StructuralEq for ForceScreenSaverRequest
impl StructuralPartialEq for ForceScreenSaverRequest
impl VoidRequest for ForceScreenSaverRequest
Auto Trait Implementations
impl RefUnwindSafe for ForceScreenSaverRequest
impl Send for ForceScreenSaverRequest
impl Sync for ForceScreenSaverRequest
impl Unpin for ForceScreenSaverRequest
impl UnwindSafe for ForceScreenSaverRequest
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