pub struct RequestUtils { /* private fields */ }Implementations§
Source§impl RequestUtils
impl RequestUtils
pub fn new(unique_id: String) -> Self
pub fn with_counter(unique_id: String, id_counter: Arc<AtomicU64>) -> Self
pub fn generate_request_id(&self) -> String
pub fn generate_message_id(&self, user_jid: Option<&Jid>) -> String
pub fn build_iq_node( &self, query: &InfoQuery<'_>, req_id: Option<String>, ) -> Node
pub fn parse_iq_response( &self, response_node: &Node, ) -> Box<Result<(), IqError>>
Auto Trait Implementations§
impl Freeze for RequestUtils
impl RefUnwindSafe for RequestUtils
impl Send for RequestUtils
impl Sync for RequestUtils
impl Unpin for RequestUtils
impl UnwindSafe for RequestUtils
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more