pub struct Context(/* private fields */);Implementations§
Source§impl Context
impl Context
pub fn new(socket: UnixStream) -> Result<Self>
pub fn connect_to_env() -> Result<Option<Self>>
pub fn pending_event(&self) -> Option<PendingRequestResult<Event>>
pub fn handshake(&self) -> Handshake
pub fn flush(&self) -> Result<()>
Source§impl Context
impl Context
pub fn handshake_blocking( &self, name: &str, context_type: ContextType, ) -> Result<(Connection, EiConvertEventIterator), Error>
Trait Implementations§
Source§impl AsFd for Context
impl AsFd for Context
Source§fn as_fd(&self) -> BorrowedFd<'_>
fn as_fd(&self) -> BorrowedFd<'_>
Borrows the file descriptor. Read more
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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