pub struct Connect<Io> { /* private fields */ }
Expand description
Connect message
Implementations§
Source§impl<Io> Connect<Io>
impl<Io> Connect<Io>
Sourcepub fn ack<St>(self, st: St, session_present: bool) -> ConnectAck<Io, St>
pub fn ack<St>(self, st: St, session_present: bool) -> ConnectAck<Io, St>
Ack connect message and set state
Sourcepub fn identifier_rejected<St>(self) -> ConnectAck<Io, St>
pub fn identifier_rejected<St>(self) -> ConnectAck<Io, St>
Create connect ack object with identifier rejected
return code
Sourcepub fn bad_username_or_pwd<St>(self) -> ConnectAck<Io, St>
pub fn bad_username_or_pwd<St>(self) -> ConnectAck<Io, St>
Create connect ack object with bad user name or password
return code
Create connect ack object with not authorized
return code
Trait Implementations§
Auto Trait Implementations§
impl<Io> !Freeze for Connect<Io>
impl<Io> !RefUnwindSafe for Connect<Io>
impl<Io> !Send for Connect<Io>
impl<Io> !Sync for Connect<Io>
impl<Io> Unpin for Connect<Io>
impl<Io> !UnwindSafe for Connect<Io>
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