pub struct Connect<'a> {
pub clean_session: bool,
pub keep_alive: u16,
pub client_id: &'a str,
/* private fields */
}Fields§
§clean_session: bool§keep_alive: u16§client_id: &'a strImplementations§
Trait Implementations§
Source§impl<'a> DecodePacket<'a> for Connect<'a>
impl<'a> DecodePacket<'a> for Connect<'a>
fn decode( buf: &'a [u8], version: MqttVersion, ) -> Result<Self, MqttError<ErrorPlaceHolder>>
Source§impl<'a> EncodePacket for Connect<'a>
impl<'a> EncodePacket for Connect<'a>
fn encode( &self, buf: &mut [u8], version: MqttVersion, ) -> Result<usize, MqttError<ErrorPlaceHolder>>
Auto Trait Implementations§
impl<'a> Freeze for Connect<'a>
impl<'a> RefUnwindSafe for Connect<'a>
impl<'a> Send for Connect<'a>
impl<'a> Sync for Connect<'a>
impl<'a> Unpin for Connect<'a>
impl<'a> UnwindSafe for Connect<'a>
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