pub struct SessionContextBuilder { /* private fields */ }Implementations§
Source§impl SessionContextBuilder
impl SessionContextBuilder
pub const fn new() -> Self
pub const fn with_session_id(self, session_id: u64) -> Self
pub const fn with_sequence_id(self, sequence_id: u64) -> Self
pub const fn with_expected_id(self, expected_id: u64) -> Self
pub const fn with_retransmit_id(self, retransmit_id: u64) -> Self
pub fn with_payload(self, payload: Vec<u8>) -> Self
pub fn build(self) -> Result<SessionContextRecord>
Trait Implementations§
Source§impl Clone for SessionContextBuilder
impl Clone for SessionContextBuilder
Source§fn clone(&self) -> SessionContextBuilder
fn clone(&self) -> SessionContextBuilder
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 SessionContextBuilder
impl RefUnwindSafe for SessionContextBuilder
impl Send for SessionContextBuilder
impl Sync for SessionContextBuilder
impl Unpin for SessionContextBuilder
impl UnwindSafe for SessionContextBuilder
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