Struct naia_client::internal::HandshakeManager
source · [−]pub struct HandshakeManager<P: Protocolize> {
pub connection_state: HandshakeState,
/* private fields */
}
Fields
connection_state: HandshakeState
Implementations
sourceimpl<P: Protocolize> HandshakeManager<P>
impl<P: Protocolize> HandshakeManager<P>
pub fn new(send_interval: Duration) -> Self
pub fn set_auth_message(&mut self, auth: P)
pub fn is_connected(&self) -> bool
pub fn send(&mut self, io: &mut Io)
pub fn recv(&mut self, reader: &mut BitReader<'_>) -> bool
pub fn write_challenge_request(&self) -> BitWriter
pub fn recv_challenge_response(&mut self, reader: &mut BitReader<'_>)
pub fn write_connect_request(&self) -> BitWriter
pub fn recv_connect_response(&mut self) -> bool
pub fn write_disconnect(&self) -> BitWriter
Auto Trait Implementations
impl<P> RefUnwindSafe for HandshakeManager<P> where
P: RefUnwindSafe,
impl<P> Send for HandshakeManager<P>
impl<P> Sync for HandshakeManager<P>
impl<P> Unpin for HandshakeManager<P> where
P: Unpin,
impl<P> UnwindSafe for HandshakeManager<P> where
P: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more