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.
Sourcepub fn is_alive(&self) -> bool
pub fn is_alive(&self) -> bool
false once a socket worker has ended (the server closed it, the network dropped, the
server restarted). A dead link never revives by itself: the owner opens a new one.
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