pub struct SessionHandle {
pub id: SessionId,
/* private fields */
}Expand description
Cheap, cloneable handle to a running session task.
Fields§
§id: SessionIdImplementations§
Source§impl SessionHandle
impl SessionHandle
Sourcepub async fn send(&self, msg: Message) -> Result<()>
pub async fn send(&self, msg: Message) -> Result<()>
Send an application message on this session. Resolves once the session has accepted (sequenced and persisted) it.
pub async fn logout(&self) -> Result<()>
pub async fn status(&self) -> Result<SessionStatus>
pub async fn is_logged_on(&self) -> bool
Sourcepub async fn set_next_sender_seq_num(&self, n: u64) -> Result<()>
pub async fn set_next_sender_seq_num(&self, n: u64) -> Result<()>
Set the next outbound sequence number (operational reset).
Sourcepub async fn set_next_target_seq_num(&self, n: u64) -> Result<()>
pub async fn set_next_target_seq_num(&self, n: u64) -> Result<()>
Set the next expected inbound sequence number (operational reset).
Trait Implementations§
Source§impl Clone for SessionHandle
impl Clone for SessionHandle
Source§fn clone(&self) -> SessionHandle
fn clone(&self) -> SessionHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SessionHandle
impl RefUnwindSafe for SessionHandle
impl Send for SessionHandle
impl Sync for SessionHandle
impl Unpin for SessionHandle
impl UnsafeUnpin for SessionHandle
impl UnwindSafe for SessionHandle
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