pub struct Host { /* private fields */ }Expand description
Host-side handshake FSM
Implementations§
Source§impl Host
impl Host
pub fn new() -> Self
pub fn state(&self) -> &HandshakeState
pub fn process( &mut self, input: HandshakeInput, ) -> Result<Option<HandshakeOutput>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Host
impl RefUnwindSafe for Host
impl Send for Host
impl Sync for Host
impl Unpin for Host
impl UnsafeUnpin for Host
impl UnwindSafe for Host
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