pub struct AccountPushConnection { /* private fields */ }Expand description
Persistent account connection for callers that already own blocking workers. Requests and notification waits use the same account admission and handoff barriers as ordinary operations. Reconnect after a credential generation changes; an old authenticated socket cannot adopt newer credentials.
Implementations§
Source§impl AccountPushConnection
impl AccountPushConnection
pub fn heartbeat(&mut self, cursor: &[u8]) -> Result<Heartbeat>
Sourcepub fn send_sticker_chunk_raw(
&mut self,
chunk: &StickerSendChunk<'_>,
) -> Result<Vec<u8>>
pub fn send_sticker_chunk_raw( &mut self, chunk: &StickerSendChunk<'_>, ) -> Result<Vec<u8>>
Submit one journaled sticker probe or byte continuation on this long
link. Same contract as AccountRequest::send_sticker_chunk_raw: return
raw bytes for durable retention before validating the acknowledgement.
A transport error after submission leaves the outcome uncertain.
pub fn sync(&mut self, cursor: &[u8], scene: u32) -> Result<SyncBatch>
Auto Trait Implementations§
impl !RefUnwindSafe for AccountPushConnection
impl !UnwindSafe for AccountPushConnection
impl Forget for AccountPushConnection
impl Freeze for AccountPushConnection
impl Move for AccountPushConnection
impl Send for AccountPushConnection
impl Sync for AccountPushConnection
impl Unpin for AccountPushConnection
impl UnsafeUnpin for AccountPushConnection
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