pub struct Handshake(/* private fields */);Implementations§
source§impl Handshake
impl Handshake
sourcepub fn handshake_version(&self, version: u32)
pub fn handshake_version(&self, version: u32)
This event is sent exactly once and immediately after connection to the EIS implementation.
In response, the client must send the ei_handshake.handshake_version request with any version up to including the version provided in this event. See the ei_handshake.handshake_version request for details on what happens next.
sourcepub fn interface_version(&self, name: &str, version: u32)
pub fn interface_version(&self, name: &str, version: u32)
Notifies the client that the EIS implementation supports the given named interface with the given maximum version number.
The client must not assume those interfaces are supported unless and until those versions have been received.
This request must not be sent for the “ei_handshake” interface, use the handshake_version event instead.
This event may be sent by the EIS implementation for any other supported interface (but not necessarily all supported interfaces) before the ei_handshake.connection event.
sourcepub fn connection(&self, serial: u32, version: u32) -> Connection
pub fn connection(&self, serial: u32, version: u32) -> Connection
Provides the client with the connection object that is the top-level object for all future requests and events.
This event is sent exactly once at some unspecified time after the client sends the ei_handshake.finish request to the EIS implementation.
The ei_handshake object will be destroyed by the EIS implementation immediately after this event has been sent, a client must not attempt to use it after that point.
The version sent by the EIS implementation is the version of the “ei_connection” interface as announced by ei_handshake.interface_version, or any lower version.
The serial number is the start value of the EIS implementation’s serial number sequence. Clients must not assume any specific value for this serial number. Any future serial number in any event is monotonically increasing by an unspecified amount.
Trait Implementations§
impl Eq for Handshake
impl StructuralPartialEq for Handshake
Auto Trait Implementations§
impl Freeze for Handshake
impl RefUnwindSafe for Handshake
impl Send for Handshake
impl Sync for Handshake
impl Unpin for Handshake
impl UnwindSafe for Handshake
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)