pub struct Session { /* private fields */ }
Implementations§
Source§impl Session
impl Session
pub async fn connect( session: Session, ) -> Result<(Session, Publisher, Subscriber), SessionError>
pub async fn connect_role( session: Session, role: Role, ) -> Result<(Session, Option<Publisher>, Option<Subscriber>), SessionError>
pub async fn accept( session: Session, ) -> Result<(Session, Option<Publisher>, Option<Subscriber>), SessionError>
pub async fn accept_role( session: Session, role: Role, ) -> Result<(Session, Option<Publisher>, Option<Subscriber>), SessionError>
pub async fn run(self) -> Result<(), SessionError>
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnwindSafe for Session
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