pub struct SetupBuf { /* private fields */ }
Implementations
sourceimpl SetupBuf
impl SetupBuf
sourcepub fn new(
status: u8,
protocol_major_version: u16,
protocol_minor_version: u16,
length: u16,
release_number: u32,
resource_id_base: u32,
resource_id_mask: u32,
motion_buffer_size: u32,
maximum_request_length: u16,
image_byte_order: ImageOrder,
bitmap_format_bit_order: ImageOrder,
bitmap_format_scanline_unit: u8,
bitmap_format_scanline_pad: u8,
min_keycode: Keycode,
max_keycode: Keycode,
vendor: &[u8],
pixmap_formats: &[Format],
roots: &[ScreenBuf]
) -> SetupBuf
pub fn new(
status: u8,
protocol_major_version: u16,
protocol_minor_version: u16,
length: u16,
release_number: u32,
resource_id_base: u32,
resource_id_mask: u32,
motion_buffer_size: u32,
maximum_request_length: u16,
image_byte_order: ImageOrder,
bitmap_format_bit_order: ImageOrder,
bitmap_format_scanline_unit: u8,
bitmap_format_scanline_pad: u8,
min_keycode: Keycode,
max_keycode: Keycode,
vendor: &[u8],
pixmap_formats: &[Format],
roots: &[ScreenBuf]
) -> SetupBuf
Construct a new SetupBuf.
Methods from Deref<Target = Setup>
pub fn status(&self) -> u8
pub fn protocol_major_version(&self) -> u16
pub fn protocol_minor_version(&self) -> u16
pub fn length(&self) -> u16
pub fn release_number(&self) -> u32
pub fn resource_id_base(&self) -> u32
pub fn resource_id_mask(&self) -> u32
pub fn motion_buffer_size(&self) -> u32
pub fn maximum_request_length(&self) -> u16
pub fn image_byte_order(&self) -> ImageOrder
pub fn bitmap_format_bit_order(&self) -> ImageOrder
pub fn bitmap_format_scanline_unit(&self) -> u8
pub fn bitmap_format_scanline_pad(&self) -> u8
pub fn min_keycode(&self) -> Keycode
pub fn max_keycode(&self) -> Keycode
pub fn vendor(&self) -> &Lat1Str
pub fn pixmap_formats(&self) -> &[Format]
pub fn roots(&self) -> ScreenIterator<'_>ⓘNotable traits for ScreenIterator<'a>impl<'a> Iterator for ScreenIterator<'a> type Item = &'a Screen;
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SetupBuf
impl Send for SetupBuf
impl Sync for SetupBuf
impl Unpin for SetupBuf
impl UnwindSafe for SetupBuf
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more