Struct x11rb_protocol::protocol::xproto::ListHostsReply
source · [−]pub struct ListHostsReply {
pub mode: AccessControl,
pub sequence: u16,
pub length: u32,
pub hosts: Vec<Host>,
}
Fields
mode: AccessControl
sequence: u16
length: u32
hosts: Vec<Host>
Implementations
sourceimpl ListHostsReply
impl ListHostsReply
sourcepub fn hosts_len(&self) -> u16
pub fn hosts_len(&self) -> u16
Get the value of the hosts_len
field.
The hosts_len
field is used as the length field of the hosts
field.
This function computes the field’s value again based on the length of the list.
Panics
Panics if the value cannot be represented in the target type. This cannot happen with values of the struct received from the X11 server.
Trait Implementations
sourceimpl Clone for ListHostsReply
impl Clone for ListHostsReply
sourcefn clone(&self) -> ListHostsReply
fn clone(&self) -> ListHostsReply
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 ListHostsReply
impl Debug for ListHostsReply
sourceimpl Default for ListHostsReply
impl Default for ListHostsReply
sourcefn default() -> ListHostsReply
fn default() -> ListHostsReply
Returns the “default value” for a type. Read more
sourceimpl From<ListHostsReply> for Reply
impl From<ListHostsReply> for Reply
sourcefn from(reply: ListHostsReply) -> Reply
fn from(reply: ListHostsReply) -> Reply
Converts to this type from the input type.
sourceimpl Hash for ListHostsReply
impl Hash for ListHostsReply
sourceimpl Ord for ListHostsReply
impl Ord for ListHostsReply
sourceimpl PartialEq<ListHostsReply> for ListHostsReply
impl PartialEq<ListHostsReply> for ListHostsReply
sourcefn eq(&self, other: &ListHostsReply) -> bool
fn eq(&self, other: &ListHostsReply) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ListHostsReply) -> bool
fn ne(&self, other: &ListHostsReply) -> bool
This method tests for !=
.
sourceimpl PartialOrd<ListHostsReply> for ListHostsReply
impl PartialOrd<ListHostsReply> for ListHostsReply
sourcefn partial_cmp(&self, other: &ListHostsReply) -> Option<Ordering>
fn partial_cmp(&self, other: &ListHostsReply) -> 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 TryParse for ListHostsReply
impl TryParse for ListHostsReply
impl Eq for ListHostsReply
impl StructuralEq for ListHostsReply
impl StructuralPartialEq for ListHostsReply
Auto Trait Implementations
impl RefUnwindSafe for ListHostsReply
impl Send for ListHostsReply
impl Sync for ListHostsReply
impl Unpin for ListHostsReply
impl UnwindSafe for ListHostsReply
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