pub struct PushLink { /* private fields */ }Implementations§
Source§impl PushLink
impl PushLink
Sourcepub fn open(
base_url: &str,
keep_prefix: bool,
tokens: Vec<String>,
separate: bool,
) -> Result<Self, AgentError>
pub fn open( base_url: &str, keep_prefix: bool, tokens: Vec<String>, separate: bool, ) -> Result<Self, AgentError>
One socket for all tokens, or with separate (product mode: a handshake
is vouched for one identity) one socket per token sharing one inbox.
pub fn drain(&self) -> Vec<(String, PushedRoomEvent)>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PushLink
impl !UnwindSafe for PushLink
impl Freeze for PushLink
impl Send for PushLink
impl Sync for PushLink
impl Unpin for PushLink
impl UnsafeUnpin for PushLink
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