pub struct ClientSubscriptionDialog { /* private fields */ }Implementations§
Source§impl ClientSubscriptionDialog
impl ClientSubscriptionDialog
pub fn id(&self) -> DialogId
pub fn state(&self) -> DialogState
pub fn cancel_token(&self) -> &CancellationToken
pub async fn subscribe( &self, headers: Option<Vec<Header>>, body: Option<Vec<u8>>, ) -> Result<Option<Response>>
pub async fn unsubscribe(&self) -> Result<()>
pub async fn unsubscribe_with_headers( &self, headers: Option<Vec<Header>>, ) -> Result<()>
pub async fn request( &self, method: Method, headers: Option<Vec<Header>>, body: Option<Vec<u8>>, ) -> Result<Option<Response>>
pub async fn refer( &self, refer_to: Uri, headers: Option<Vec<Header>>, body: Option<Vec<u8>>, ) -> Result<Option<Response>>
pub async fn message( &self, headers: Option<Vec<Header>>, body: Option<Vec<u8>>, ) -> Result<Option<Response>>
pub async fn handle(&mut self, tx: &mut Transaction) -> Result<()>
Trait Implementations§
Source§impl Clone for ClientSubscriptionDialog
impl Clone for ClientSubscriptionDialog
Source§fn clone(&self) -> ClientSubscriptionDialog
fn clone(&self) -> ClientSubscriptionDialog
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 ClientSubscriptionDialog
impl !RefUnwindSafe for ClientSubscriptionDialog
impl Send for ClientSubscriptionDialog
impl Sync for ClientSubscriptionDialog
impl Unpin for ClientSubscriptionDialog
impl UnsafeUnpin for ClientSubscriptionDialog
impl !UnwindSafe for ClientSubscriptionDialog
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