pub struct ServerSubscriptionDialog { /* private fields */ }Implementations§
Source§impl ServerSubscriptionDialog
impl ServerSubscriptionDialog
pub fn id(&self) -> DialogId
pub fn state(&self) -> DialogState
pub fn cancel_token(&self) -> &CancellationToken
pub fn accept( &self, headers: Option<Vec<Header>>, body: Option<Vec<u8>>, ) -> Result<()>
pub async fn notify( &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 ServerSubscriptionDialog
impl Clone for ServerSubscriptionDialog
Source§fn clone(&self) -> ServerSubscriptionDialog
fn clone(&self) -> ServerSubscriptionDialog
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 ServerSubscriptionDialog
impl !RefUnwindSafe for ServerSubscriptionDialog
impl Send for ServerSubscriptionDialog
impl Sync for ServerSubscriptionDialog
impl Unpin for ServerSubscriptionDialog
impl UnsafeUnpin for ServerSubscriptionDialog
impl !UnwindSafe for ServerSubscriptionDialog
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