fn new() -> Result<WaylandClipboardContext> {
        let supports_primary_selection = match utils::is_primary_selection_supported() {
            Ok(v) => v,
            Err(e) => match e {
                utils::PrimarySelectionCheckError::NoSeats => false,
                _ => return Err(into_boxed_error(e)),
            },
        };

        Ok(WaylandClipboardContext {
            supports_primary_selection,
        })
    }
/// Constructs a new `WaylandClipboardContext` that operates on all
/// seats using the data-control clipboard protocol.  This is
/// intended for CLI applications that do not create Wayland
/// windows.
///
/// Attempts to detect whether the primary selection is supported.
/// Assumes no primary selection support if no seats are available.
/// In addition to returning Err on communication errors (such as
/// when operating in an X11 environment), will also return Err if
/// the compositor does not support the data-control protocol.
Constructs a new `WaylandClipboardContext` that operates on all
seats using the data-control clipboard protocol.  This is
intended for CLI applications that do not create Wayland
windows.

Attempts to detect whether the primary selection is supported.
Assumes no primary selection support if no seats are available.
In addition to returning Err on communication errors (such as
when operating in an X11 environment), will also return Err if
the compositor does not support the data-control protocol.
Constructs a new ` WaylandClipboardContext ` that operates on all seats using the data - control clipboard protocol . This is intended for CLI applications that do not create Wayland windows . Attempts to detect whether the primary selection is supported . Assumes no primary selection support if no seats are available . In addition to returning Err on communication errors ( such as when operating in an X11 environment ) will also return Err if the compositor does not support the data - control protocol .
fn new() -> Result<WaylandClipboardContext> {
        let supports_primary_selection = match utils::is_primary_selection_supported() {
            Ok(v) => v,
            Err(e) => match e {
                utils::PrimarySelectionCheckError::NoSeats => false,
                _ => return Err(into_boxed_error(e)),
            },
        };
        Ok(WaylandClipboardContext {
            supports_primary_selection,
        })
    }
fn new ( ) -> Result < WaylandClipboardContext > { let supports_primary_selection = match utils :: is_primary_selection_supported ( ) { Ok ( v ) => v , Err ( e ) => match e { utils :: PrimarySelectionCheckError :: NoSeats => false , _ => return Err ( into_boxed_error ( e ) ) , } , } ; Ok ( WaylandClipboardContext { supports_primary_selection , } ) }
Constructs a new `WaylandClipboardContext` that operates on all
seats using the data-control clipboard protocol.
Constructs a new ` WaylandClipboardContext ` that operates on all seats using the data - control clipboard protocol .