pub struct RecordBuilder { /* private fields */ }Implementations§
Source§impl RecordBuilder
impl RecordBuilder
pub const fn new() -> Self
pub fn with_version(self, version: String) -> Self
pub fn with_to_id(self, id: String) -> Self
pub fn with_from_id(self, id: String) -> Self
pub fn with_sender_cert(self, sender_cert: Vec<u8>) -> Self
pub fn with_mac_signature(self, mac_signature: Vec<u8>) -> Self
pub const fn with_payload_security_tls12(self) -> Self
pub fn with_session_context_builder( self, session_context: SessionContextBuilder, ) -> Self
pub fn with_no_session_context_payload(self, msg: &Msg) -> Self
pub fn with_no_session_context_payload_bytes(self, buf: Vec<u8>) -> Self
pub fn as_websocket_connect_record(self) -> Self
pub fn as_mqtt_connect_record( self, version: MQTTVersion, subscribed_topic: String, ) -> Self
pub fn as_stomp_connect_record( self, version: STOMPVersion, subscribed_destination: String, ) -> Self
pub fn as_disconnect_record(self, reason: String, reason_code: u32) -> Self
pub fn as_uds_connect_record(self) -> Self
pub fn build(self) -> Result<Record>
Trait Implementations§
Source§impl Clone for RecordBuilder
impl Clone for RecordBuilder
Source§fn clone(&self) -> RecordBuilder
fn clone(&self) -> RecordBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RecordBuilder
impl RefUnwindSafe for RecordBuilder
impl Send for RecordBuilder
impl Sync for RecordBuilder
impl Unpin for RecordBuilder
impl UnwindSafe for RecordBuilder
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