[−][src]Struct x11rb::cookie::VoidCookie
A handle to a possible error from the X11 server.
When sending a request for which no reply is expected, this library returns a VoidCookie
.
This VoidCookie
can then later be used to check if the X11 server sent an error.
Implementations
impl<'a, C: ?Sized> VoidCookie<'a, C> where
C: RequestConnection,
[src]
C: RequestConnection,
pub fn new(connection: &C, sequence_number: SequenceNumber) -> VoidCookie<C>
[src]
Construct a new cookie.
This function should only be used by implementations of
Connection::send_request_without_reply
.
pub fn sequence_number(&self) -> SequenceNumber
[src]
Get the sequence number of the request that generated this cookie.
pub fn check(self) -> Result<(), ReplyError>
[src]
Check if the original request caused an X11 error.
pub fn ignore_error(self)
[src]
Ignore all errors to this request.
Without calling this method, an error becomes available on the connection as an event after this cookie was dropped. This function causes errors to be ignored instead.
Trait Implementations
impl<'a, C: Debug + ?Sized> Debug for VoidCookie<'a, C> where
C: RequestConnection,
[src]
C: RequestConnection,
impl<'_, C: ?Sized> Drop for VoidCookie<'_, C> where
C: RequestConnection,
[src]
C: RequestConnection,
Auto Trait Implementations
impl<'a, C: ?Sized> RefUnwindSafe for VoidCookie<'a, C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
impl<'a, C: ?Sized> Send for VoidCookie<'a, C> where
C: Sync,
C: Sync,
impl<'a, C: ?Sized> Sync for VoidCookie<'a, C> where
C: Sync,
C: Sync,
impl<'a, C: ?Sized> Unpin for VoidCookie<'a, C>
impl<'a, C: ?Sized> UnwindSafe for VoidCookie<'a, C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,