pub struct XWorkspacesBuilder { /* private fields */ }
Expand description
Builder for XWorkspaces
.
Implementations§
Source§impl XWorkspacesBuilder
impl XWorkspacesBuilder
pub fn name(&mut self, value: &'static str) -> &mut Self
pub fn conn(&mut self, value: Arc<RustConnection>) -> &mut Self
pub fn screen(&mut self, value: usize) -> &mut Self
pub fn attrs(&mut self, value: XWorkspacesConfig<Attrs>) -> &mut Self
pub fn highlights(&mut self, value: XWorkspacesConfig<Highlight>) -> &mut Self
pub fn common(&mut self, value: PanelCommon) -> &mut Self
Sourcepub fn build(&self) -> Result<XWorkspaces, XWorkspacesBuilderError>
pub fn build(&self) -> Result<XWorkspaces, XWorkspacesBuilderError>
Trait Implementations§
Source§impl Clone for XWorkspacesBuilder
impl Clone for XWorkspacesBuilder
Source§fn clone(&self) -> XWorkspacesBuilder
fn clone(&self) -> XWorkspacesBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for XWorkspacesBuilder
impl RefUnwindSafe for XWorkspacesBuilder
impl !Send for XWorkspacesBuilder
impl !Sync for XWorkspacesBuilder
impl Unpin for XWorkspacesBuilder
impl UnwindSafe for XWorkspacesBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more