pub struct PusherAuth { /* private fields */ }
Implementations§
Source§impl PusherAuth
impl PusherAuth
pub fn new(key: &str, secret: &str) -> Self
pub fn authenticate_socket( &self, socket_id: &str, channel_name: &str, ) -> PusherResult<String>
pub fn authenticate_presence_channel( &self, socket_id: &str, channel_name: &str, user_id: &str, user_info: Option<&Value>, ) -> PusherResult<String>
pub fn authenticate_private_encrypted_channel( &self, socket_id: &str, channel_name: &str, ) -> PusherResult<String>
pub fn authenticate_request( &self, method: &str, path: &str, body: &Value, ) -> PusherResult<BTreeMap<String, String>>
Auto Trait Implementations§
impl Freeze for PusherAuth
impl RefUnwindSafe for PusherAuth
impl Send for PusherAuth
impl Sync for PusherAuth
impl Unpin for PusherAuth
impl UnwindSafe for PusherAuth
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